blocking googleadplayer (but keeping google)

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

blocking googleadplayer (but keeping google)

Post by Ollezaza »

Hello.

I'm trying to block the googleadplayer object within this link

Code: Select all

http://pagead2.googlesyndication.com/pagead/googleadplayer.swf
Example link is this:
http://www.softpedia.com/progDownload/F ... 36486.html
{You might have to reload several times before it shows up.}


Trouble is, I whitelist most links that have 'google' in them via this

Code: Select all

@@/google[^-]/
{picked this up from this link}


I tried using this expression

Code: Select all

@@/google([^-]|(?!\*googleadplayer))/
- even checked the syntax in The Regex Coach. Although the syntax is acceptable, the coach shows that the * is being ignored so the second condition never matches. Thus, I suX0r with regular expressions.

Any idea on how best to do this? {Please don't say 'block all of google'}
Wladimir Palant

Post by Wladimir Palant »

How about:

Code: Select all

@@google.com/
Or is it too specific? :)
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post by Peng »

Unless you're using Filterset.G, you don't need that whitelisting filter. And if you are using Filterset.G, drop it for something like rick752's EasyList instead! :)
Matt Nordhoff
Ollezaza

RE: blocking googleadplayer (but keeping google)

Post by Ollezaza »

Wladimir Palant wrote:How about:

Code: Select all

@@google.com/
Or is it too specific? :)
Yes, that is too specific. I like how google[^-] allows most links but restricts google-ish lookalikes.

Pity I can't use a reg/simple-exp to do the duty. I'll keep working on it.

Thanks.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Just get rid of your whitelisting and add this:

Code: Select all

*/adframe*
... it's an iframe feed. Block the frame, not the player :wink:
Ollezaza

Post by Ollezaza »

Perfect! It worked beautifully, making for a much faster page-load.

Thank you for your help.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Ollezaza wrote:Perfect! It worked beautifully, making for a much faster page-load.

Thank you for your help.
8)

You're welcome.
Locked