Page 1 of 1
How to blockqwhitelist a DIV?
Posted: Tue Aug 30, 2005 11:40 am
by AmirG
I couldn't find instructions as to how should one create a filter to block or unblock a DIV section. Any pointers?
Posted: Tue Aug 30, 2005 11:52 am
by mcm
This is what I've come up with, feel free to improve them:
http://p2.forumforfree.com/create-div-s ... kplus.html
Posted: Tue Aug 30, 2005 12:17 pm
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?
Posted: Tue Aug 30, 2005 12:19 pm
by AmirG
Nevermind, I think I've got it.
Posted: Tue Aug 30, 2005 12:27 pm
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.