Blocking elements with spaces in their class names

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
acorns
Posts: 3
Joined: Wed Jun 18, 2008 1:10 am

Blocking elements with spaces in their class names

Post by acorns »

I'm trying to block <div class="overture north"> but whenever I save the rule, adblock deletes the space so the rule doesn't work. Is there some symbol I have to put instead of a space, or is it just a bug with adblock?
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Post by Ares2 »

The rule has to look like this:

Code: Select all

domain.com#DIV(class=overture north)
acorns
Posts: 3
Joined: Wed Jun 18, 2008 1:10 am

Post by acorns »

hmm, how come you have to put class= if there is a space, but if there isn't a space putting class= stops the rule from working?

Edit:

oh, one div has id= rather than class=, that explains it.
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Post by Ares2 »

So it works now?

FYI: You can create hiding rules easily with the Element Hiding Helper add-on: https://addons.mozilla.org/en-US/firefox/addon/4364
acorns
Posts: 3
Joined: Wed Jun 18, 2008 1:10 am

Post by acorns »

yeah, works perfectly, thank you so much. Unfortunately that addon doesn't work with firefox 3, says it's not compatible :'(
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Post by Ares2 »

acorns wrote:yeah, works perfectly, thank you so much.
No problem. :D
acorns wrote:Unfortunately that addon doesn't work with firefox 3, says it's not compatible :'(
1. Check if you have Javascript enabled (in Noscript: allow addons.mozilla.org )

2. A solution that worked for me was to force an update in add-ons manager ("Tools" -> "Add-ons" -> "Extensions" -> "Update"), then restart Firefox.
Locked