Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

µBlock: How to Add a CSS-class in a Filter? [closed]

$
0
0

µBlock (uBlock) provides action operator :remove-class(), but how can I add a CSS-class?

On a site an element alternates between two CSS-classes. I have a rule with :remove-class() that is triggered every now and then, but then the page looks weird. Therefore, I want to remove one class as I do now, but also add the other CSS-class.

example.com##.ad_wrapper:watch-attr(class):remove-class(ad_wrapper-visible)!how to add class "ad_wrapper-hidden"?

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>