uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

[Firefox] Question - hiding elements

Open gituporabnik opened this issue 11 years ago • 2 comments

I have a question relating to hiding website elements.

When ads are blocked, there are often empty banners left and I hide them with uBlock element picker. The problem is, there are some webpages on which universal filter rules don't work: sometimes each subpage has different number/characters. Hence banners cannot be hidden by one filter rule, because rules for every subpage should be added manually.

Example: www.etiketamagazin.com###post-43421 > .banner.slide

Question: in the upper example, number "43421" changes with every subpage. Is there any way to replace this number with a universal sign? The asterisk sign (*) doesn't work, since this is not a URL.

gituporabnik avatar Jun 24 '15 10:06 gituporabnik

Cosmetic filters are CSS selectors prefixed with ##. So whatever is a valid CSS selector will work:

www.etiketamagazin.com##[id^="post-"] > .banner.slide

gorhill avatar Jun 24 '15 11:06 gorhill

It works. Thank you!

gituporabnik avatar Jun 24 '15 13:06 gituporabnik