Block DIVs named from random numbers YAY!

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

Block DIVs named from random numbers YAY!

Post by jpp_sd »

I hate sneaky ads & banner content contained in DIVs named from random numbers.

Humans won't likely name DIVs all cryptic-like.

This simple bit o regex I rigged works like a charm.

Code: Select all

/#DIV.*[0-9]/
l8r
Guest

Post by Guest »

I approve of this
Guest

Post by Guest »

There various ways you can write it.

Code: Select all

/#DIV\([1-9]\)/

Code: Select all

/#DIV\(\d\)/

Code: Select all

/#DIV[w_(](\d)/
ect ect.

cool
pro seph any

Post by pro seph any »

^ would you kindly explain how each of the above three handles the task differently in non regexesquese?
jpp_sd

Update: Block DIVs named from random numbers YAY!

Post by jpp_sd »

oh yeah, forgot to mention that you need somethin like this to block a DIV with 9 or more digits in the name:

Code: Select all

/#DIV.*[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/
somethin such as this a nicer lookin way to block a DIV with 9+ digits in the name:

Code: Select all

/#DIV[w9_(](\d)/
seeya!

http://crazynuts.hollosite.com
Locked