Let's say there's a css class being used all over the place (say as a generic padding div), and placed in one of the divs is an ad image being displayed.
Could I write a filter that says to block images in that class, but not block the class itself?
Thanks
Block images within css element?
Sure:
Using this page as an example:
The following blocks the "New Topic" image button on the bottom-left on this topic page that is inside the SPAN(class="nav"}. It removes it without disturbing the rest of the class info.
Is that what you want?
EDIT:
ps. But why wouldn't you just block the image's address itself and not worry about what class it is in? ... unless you need to do it that way?
Using this page as an example:
The following blocks the "New Topic" image button on the bottom-left on this topic page that is inside the SPAN(class="nav"}. It removes it without disturbing the rest of the class info.
Code: Select all
adblockplus.org##SPAN.nav IMG[src*="/post.gif"]
EDIT:
ps. But why wouldn't you just block the image's address itself and not worry about what class it is in? ... unless you need to do it that way?
Sure can. Try adding and playing with the Element Hiding Helper extension for ABP. If you have a little html and/or css knowledge, it makes css hiding solutions MUCH easier to deal with. It takes a little getting used to, but works great!
Hint: Use the "W" and "N" keys to pinpoint your selection on the page.
https://addons.mozilla.org/en-US/firefox/addon/4364
Hint: Use the "W" and "N" keys to pinpoint your selection on the page.
https://addons.mozilla.org/en-US/firefox/addon/4364
I tried the extension but now I think I didn't convey my question properly. What I meant was, could adblock (or the EHH) add a css style to be applied to the page's layout?
For instance, this board's background is white. Could I create a rule that would add a css style to the page's styles to make the background red?
THANKS
For instance, this board's background is white. Could I create a rule that would add a css style to the page's styles to make the background red?
THANKS
No. ABP only removes items. For modifying elements, you might want to try the Stylish extension:Hanibal wrote:I tried the extension but now I think I didn't convey my question properly. What I meant was, could adblock (or the EHH) add a css style to be applied to the page's layout?
For instance, this board's background is white. Could I create a rule that would add a css style to the page's styles to make the background red?
THANKS
https://addons.mozilla.org/en-US/firefox/addon/2108