How to allow google text-only ads?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey

How to allow google text-only ads?

Postby aliencam » Sun Feb 24, 2008 1:26 am

I am curious as to whether or not there is a way to allow only the "text-only" ads by google and by amazon.com. I usually find these ads relevant, and feel hypocritical as i have been blocking those ads for years while having them on my own website. i can't see any major difference in the ads' urls that i can allow...

I am also confused about the "disable/enable" by clicking on the "ABP" logo in the status bar... i thought middle click was to enable/disable, however right-click does it also. this makes me unable to right-click on the logo to get to the preferences without disabling ABP totally... of course this isn't a big deal since i can easily re-enable it... just kind of strange behavior i thought.
aliencam
 
Posts: 7
Joined: Sun Feb 24, 2008 1:19 am

Postby MonztA » Sun Feb 24, 2008 1:40 am

It is possible. At first "http://pagead2.googlesyndication.com/pagead/show_ads.js" needs to be whitelisted. Then just add
Code: Select all
*.googlesyndication.com/*&ad_type=text_image&*
This is blocking Google banners. Text ads will not be blocked.
MonztA
ABP IT Officer
 
Posts: 3957
Joined: Mon Aug 14, 2006 12:18 am
Location: Germany

Postby aliencam » Sun Feb 24, 2008 1:54 am

thank you, that worked great for the google ads.

Edit: okay, i only thought it did because google searches were showing the "sponsored links" however it did not allow everything. I am currently subscribed to "easylist" will any whitelists i make override that? or do i have to remove my subscription?

easylist has a filter that is "http://pagead2.$~other"
I am going to try to add "@@http://pagead2.$~other" as a filter to counteract that.

Double-edit: the whitelist worked, however it also enabled all google ads again... do i have to relinquish my subscription to easylist?
aliencam
 
Posts: 7
Joined: Sun Feb 24, 2008 1:19 am

Postby rick752 » Sun Feb 24, 2008 3:05 am

Are you also using the EasyElement subscription? If you want to see text ads, don't use that. Those rules CANNOT be whitelisted and too many of them will hide google ads enclosures. Anything in the EasyList can be whitelisted.

Changing from the EasyList to another similar subscription would yield the same results.
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Postby rick752 » Sun Feb 24, 2008 3:13 am

In addition to above, I am a bit confused :?

You started your first post with:
Code: Select all
I am curious as to whether or not there is a way to allow only the "text-only" ads by google and by amazon.com.

Then in your last post you say:
Code: Select all
the whitelist worked, however it also enabled all google ads again


Am I missing something here? Isn't that what you were trying to do? Google only has text ads.
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Postby Ares2 » Sun Feb 24, 2008 3:27 am

rick752 wrote:Google only has text ads.

Not only. See for example http://noscript.net/

@aliencam
If you don't have Element hiding rules (the blue ones, for example EasyElement) these rules should do the trick:
Code: Select all
@@http://pagead2.$~image

(allow google ads except images)

Code: Select all
@@http://pagead2.*/abglogo/

(allow the "Ads by Google" logo)
Ares2
 
Posts: 1275
Joined: Fri Feb 15, 2008 1:47 pm

Postby aliencam » Sun Feb 24, 2008 3:36 am

i am not using the easyelement subscription, i only subscribed to "easylist" and the only subscriptions listed are "filer subscription: easylist"

by google ads i mean adsense ads, not the ads that show up on http://google.com.

one example of those ads is on thinkwiki.org the graphical banner at the top is a google advertisement, as well, the text ad on the left column is a google ad. I would like to be able to block the graphical ads, while allowing that text ad on the left column to show.


here is my playing with enabling and disabling filters:

with only easylist enabled, neither ad shows up.

with easylist enabled and the filter (whitelist) "@@http://pagead2.googlesyndication.com/pagead/show_ads.js" enabled, neither type of ad shows up.

with easylist enabled and "@@http://pagead2.$~other" enabled, both types of ad show up

with easylist DISABLED and only "@@http://pagead2.googlesyndication.com/pagead/show_ads.js" and "*.googlesyndication.com/*&ad_type=text_image&*" both types show up..



adblock element hiding helper would make a filter for the text ad be: "pagead2.googlesyndication.com#DIV(id=aubg)"

and similarly would make a filter for the graphical ad: "pagead2.googlesyndication.com#IMG(src=/pagead/imgad?id=CLDD-7e2iYv2vAEQ1AMYPDIId0zBIisvztQ)"



if i choose "pagead2.googlesyndication.com" ad the domain to bind to, and require the #IMG tag using "element hiding helper" it works, so i guess i just solved my own issue.


the settings i ended up with are:
easylist ebabled
"@@http://pagead2.$~other" enabled
"@@http://pagead2.googlesyndication.com/pagead/show_ads.js" enabled
Element hiding rule: "pagead2.googlesyndication.com#IMG(src=/pagead/imgad?id=CLDD-7e2iYv2vAEQ1AMYPDIId0zBIisvztQ)"
bound to "pagead2.googlesyndication.com" require tag #IMG

this works for the domain http://thinkwiki.org, but i do not know if the element hiding filter created will be universal for all google image ads...
aliencam
 
Posts: 7
Joined: Sun Feb 24, 2008 1:19 am

Postby aliencam » Sun Feb 24, 2008 3:40 am

oh wow lol, what ares2 suggested worked perfectly. thank you, now i can delete all those element hiding rules i just made.
aliencam
 
Posts: 7
Joined: Sun Feb 24, 2008 1:19 am

Postby rick752 » Sun Feb 24, 2008 3:47 am

You could have just left everything just the way it was before you did anything (now that I see this).

This single allowance may have been all you needed:
Code: Select all
@@/pagead2.googlesyndication.com/*ads


Seems like google's "imgad?" serving is becoming more pronounced on the web now.
Last edited by rick752 on Sun Feb 24, 2008 3:56 am, edited 1 time in total.
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Postby Ares2 » Sun Feb 24, 2008 3:55 am

So we've finally reduced it to 1 easy filter. Goal reached! :D
Ares2
 
Posts: 1275
Joined: Fri Feb 15, 2008 1:47 pm

Postby rick752 » Sun Feb 24, 2008 3:57 am

Ares2 wrote:So we've finally reduced it to 1 easy filter. Goal reached! :D


Ta-da :mrgreen:
Darn! I hate it when it looks too easy.
Last edited by rick752 on Sun Feb 24, 2008 3:59 am, edited 1 time in total.
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Postby aliencam » Sun Feb 24, 2008 3:58 am

even better w00t!

thank you everyone.
aliencam
 
Posts: 7
Joined: Sun Feb 24, 2008 1:19 am

Postby rick752 » Sun Feb 24, 2008 4:08 am

Thanx for bringing this up as this is the first time I got to really see google's image ad server pattern. I knew it was out there and already blocked .. it's just that I hadn't 'played' with it yet. :wink:
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Postby aliencam » Sat May 31, 2008 2:28 am

I have an update to this question, the line
Code: Select all
@@/pagead2.googlesyndication.com/*ads

works for displaying the text of the ad, but now google has rounded corners and a curved "google" logo in the bottom right corner. On my own site (blog.aliencam.net) the blocked elements are:

Code: Select all
http://pagead2.googlesyndication.com/pagead/js/graphics.js
and
http://pagead2.googlesyndication.com/pagead/abglogo/abg-en-100c-ffffff.png


so I manually allowed them, but that adds two more exception rules to my adblock...

I have only basic regex skills at this point, and am unable to figure out how to add those to the original line, while still keeping other google graphical ads blocked.
aliencam
 
Posts: 7
Joined: Sun Feb 24, 2008 1:19 am

Postby rick752 » Sat May 31, 2008 4:17 am

What happens if you just use this whitelist rule instead of the others?:
Code: Select all
@@/pagead2.googlesyndication.com/*$script,subdocument
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Next

Return to Adblock Plus for Firefox support

Who is online

Users browsing this forum: No registered users and 16 guests