Disable tag, not content?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
bipole

Disable tag, not content?

Post by bipole »

Is it possible to block a tag (such as SPAN or DIV), yet still allow the enclosed content to be visible?
LorenzoC

Re: Disable tag, not content?

Post by LorenzoC »

You don't "block" an HTML element, you change its CSS display property.
As result, content is still donwloaded but it is not shown by Firefox.

Maybe you could explain what you want to achieve and provide an example...
bipole

Re: Disable tag, not content?

Post by bipole »

Sorry for late reply.

I do mean to somehow prevent an element from having an effect on its enclosed content, without hiding the content outright.

If you've seen those text-based ads that turn certain words into mini advertisements, you know what I mean. I'm looking for a way to disable the tags around the keyword, while keeping the keyword visible as harmless text. This is a site I have whitelisted, which is allowing the unwanted text-targeting scripts to run.
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: Disable tag, not content?

Post by Hubird »

Maybe you need to modify your whitelist so that the offensive content is not expressly allowed.
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: Disable tag, not content?

Post by Michael »

Your best option is to selectively whitelist the adverts that you want to see on the domain and leave the scripts for generating text links blocked. If you would provide the address of the page in question we will be able to suggest filters for you that should provide the proposed configuration.
bipole

Re: Disable tag, not content?

Post by bipole »

User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Re: Disable tag, not content?

Post by Hubird »

For me the words "if I were you" were in blue but hovering over did not pop up anything (most likely blocked by||adserver.yahoo.com^).

When I also added:

Code: Select all

||yahoo.com/contextual-shortcuts
The writing appeared as normal text.
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: Disable tag, not content?

Post by Michael »

Added to EasyList (https://hg.adblockplus.org/easylist/rev/0857d29d26e8)

Code: Select all

||yahoo.com/contextual-shortcuts
boneless

Re: Disable tag, not content?

Post by boneless »

Works great. Thanks, guys!
Locked