luetage / vivaldi_modding

Custom modifications for Vivaldi web browser.
MIT License
81 stars 6 forks source link

How to combine multiple mods? #1

Closed aminought closed 5 years ago

aminought commented 5 years ago

I don't understand, how to combine multiple mods? Create mentioned user.css and user.js and copy-paste fragments of files or somehow include them via code?

luetage commented 5 years ago

Hey, you make one user.css file and just paste all css code into it. – That's all there is to it in case of css. For javascript you could do pretty much the same – paste everything into one js file and be done with it. But since there is some kind of loop needed to initialise the functions, you would paste multiple loops that do all the same thing. Therefore it's enough to paste all the functions and below one single loop and in this loop you call all functions. For example if you're using tabScroll.js you would call tabScroll() there etc. Just separate the calls by line and semicolon.

luetage commented 5 years ago

I'm gonna close this issue.