How to blockqwhitelist a DIV?

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

How to blockqwhitelist a DIV?

Post by AmirG »

I couldn't find instructions as to how should one create a filter to block or unblock a DIV section. Any pointers?
User avatar
mcm
Posts: 359
Joined: Sat Jun 10, 2006 2:36 am

Post by mcm »

This is what I've come up with, feel free to improve them:
http://p2.forumforfree.com/create-div-s ... kplus.html
AmirG

Post by AmirG »

Thanks.

Will the filter "/#DIV.*ad/" block only DIVs with the id or class "ad" or will it block any div whith an id or class that ends with "ad"?

I've seen some filters that used other formats, like "something#div" and "#div(something)", what about those?
AmirG

Post by AmirG »

Nevermind, I think I've got it.
User avatar
mcm
Posts: 359
Joined: Sat Jun 10, 2006 2:36 am

Post by mcm »

"/#DIV.*ad/" will block any DIVs that have "ad" appear anywhere in the id or class name.

Just a note, the URL for DIVs isn't actually real it's just the URL of the page being viewed with "#DIV(id or class)" added to the end. The only time you might have trouble with the div identifiers is if a site happens to use html anchors with a label that starts with DIV, so perhaps "/#DIV\(.*" might be safer. An anchor in case you know it by another name is just a tag used to link a particular section on a page like this.
Locked