Si vous souhaitez rejoindre la communauté, cliquez sur l'un de ces boutons !
Hi, I just wanted to offer a refactored version of your code. Of course you don't have to use it, but I thought I'd show it to you in case you wanted to use it (or parts of it). It should make maintaining the filter list and CSS easier.
I think the changes are pretty straightforward, but mainly you'll notice the
site object that's created based on which website you're on, and groups together some variables and functions. The CSS code had lot of duplication, so I separated out the common part. Then I removed the greasemonkey setValue and getValue function since it seemed you were already using localStorage and
@grant none. Besides that I just converted some things to ES6 like
for of loops. Oh, and in your CSS, the "!important" parts are not necessary since you're not overriding the site's style. I think that's about it.
If you decide to use it, make sure to remove the "refactored" part of
@version. Also, no need to credit me or anything.