Last Comment Bug 687017 - Omnibus ad-blocking bug for September/October/November/December 2011/January/February/March 2012
: Omnibus ad-blocking bug for September/October/November/December 2011/January/...
Status: RESOLVED FIXED
[camino-2.1.3]
:
Product: Camino Graveyard
Classification: Graveyard
Component: Annoyance Blocking (show other bugs)
: unspecified
: All Mac OS X
: -- normal (vote)
: ---
Assigned To: Smokey Ardisson (offline for a while; not following bugs - do not email)
:
Mentors:
Depends on: 736917
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-15 21:24 PDT by Smokey Ardisson (offline for a while; not following bugs - do not email)
Modified: 2012-04-09 12:29 PDT (History)
12 users (show)
alqahira: camino2.1.3+
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
Seven-month omnibus (4.87 KB, patch)
2012-03-24 00:10 PDT, Smokey Ardisson (offline for a while; not following bugs - do not email)
stuart.morgan+bugzilla: superreview+
Details | Diff | Review

Description Smokey Ardisson (offline for a while; not following bugs - do not email) 2011-09-15 21:24:51 PDT
Old MacMadisonAve had an ad, e-i-e-i-o…
Comment 1 Smokey Ardisson (offline for a while; not following bugs - do not email) 2011-10-20 20:53:58 PDT
On login.yahoo.com:

<div id="iframeHolder">
<iframe height="1200" frameborder="0" width="1920" onload="loadTime = new Date().getTime();" scroll="no" src="https://login.yahoo.net/login_superads/us/superads_iframe_content.html?es=VuUwkn_51u9MeizDrKk-&b=8ti0a550nh786%26b%3D4%26d%3DktxEsTFpYEKdHQle1fEewBUmh8DAiZ1lqhbJAA--%26s%3Dli%26i%3D0VUR7bujvaa0zAZONMFe%26i%3D6ox4yTnM113Xk8gscduH" id="adFrame" title="Advertising by Yahoo!" style="visibility: visible;"/>
Comment 2 Chris Lawson (gone) 2011-10-26 05:33:17 PDT
I don't know if we care, but there are ads *everywhere* on

http://www.newzimbabwe.com/news-6349-Hooker+turns+into+donkey,+court+hears/news.aspx

(SFW, but a little on the questionable side if you have a conservative boss.)
Comment 3 philippe (part-time) 2011-11-01 21:29:51 PDT
On the redesigned independent.co.uk small ads sneak by in the masthead. The whole block is wrapped in <div class="x940 promoAndLeaderboard"> .... </a>

--> div[class~="promoAndLeaderboard"]
Comment 4 Smokey Ardisson (offline for a while; not following bugs - do not email) 2011-11-04 13:57:40 PDT
On http://www.businessweek.com/magazine/apples-supplychain-secret-hoard-lasers-11032011.html there are a bunch of sponsored links to random places in the sidebar.

Nothing really unique with which to block them, but 

div[id="bw_mall"]

might work.
Comment 5 Smokey Ardisson (offline for a while; not following bugs - do not email) 2011-11-12 20:59:03 PST
To add insult to injury, on Gmail at the bottom of the conversations, there's an ad:

<div class="nH PS" style=""><div item="2086297690_7673826610" class="Zs"><div style="float:left"><a class="e Zu" href="http://pagead2.googlesyndication.com/[..]">NEW HTC Radar</a><a class="e Zu" href="http://pagead2.googlesyndication.com/[...]"> - </a><a class="e Zu" href="http://pagead2.googlesyndication.com/[...]">Made Easy w/ Windows Phone. In the</a></div><div style="float:right"><span class="Zw">Ads</span></div><div style="clear:both" class="PV"><span class="Zt">Right Hands it Brings You Closer.</span></div><div style="clear:both"><span dir="ltr"><a dir="ltr" class="Zv" href="http://pagead2.googlesyndication.com/[...]">www.htc.com/Radar</a></span> </div></div></div>

div[class="nH PS"] inside the Gmail @-moz-document block appears to block it.
Comment 6 philippe (part-time) 2011-11-14 18:23:05 PST
http://internacional.elpais.com/

banners at top of page

<div class="envoltorio_publi estirar">
	<div class="publi728_elpais">...</div>
	<div class="publi220_elpais">...</div>
</div>

advertising content(iframes) is mostly blocked, not always.

I block on div[class~="envoltorio_publi"] but div[class^="publi"] is another option.
Comment 7 Smokey Ardisson (offline for a while; not following bugs - do not email) 2011-12-01 20:06:28 PST
On http://www.homedepot.com/Plumbing-Bathroom-Faucets-Shower-Systems-Valves-Thermostatic-Valves/h_d1/N-5yc1vZbzes/h_d2/Navigation?langId=-1&storeId=10051&catalogId=10053&Nu=P_PARENT_ID&omni=c_Thermostatic%20Valves&searchNav=true#/?c=1&Nao=24

<div style="" class="googleAdSense" id="googleAdSenseLeft">

Why oh why?!
Comment 8 philippe (part-time) 2011-12-01 22:29:22 PST
(In reply to Smokey Ardisson (back-ish; no bugmail - do not email) from comment #5)
 
> div[class="nH PS"] inside the Gmail @-moz-document block appears to block it.

That messes up the layout a little - the footer part is then flush close to the textarea for quick reply

div.nH.PS {visibility: hidden !important; } /* or div[class="nH PS"] */
works better - in this case.

(it annoyed my partner enough that I looked for a solution…)
Comment 9 Chris Lawson (gone) 2011-12-06 16:05:37 PST
On http://textsfromlastnight.com/Text-Replies-7421.html

<div id="ads-lower">
Comment 10 Smokey Ardisson (offline for a while; not following bugs - do not email) 2011-12-16 12:54:06 PST
On http://tech.groups.yahoo.com/group/wordperfectmac/files/SheepShaver%20%26%20Basilisk/

<div id="ygrp-sponsored-links">
Comment 11 Chris Lawson (gone) 2012-01-20 15:43:15 PST
On  http://www.petfinder.com/petdetail/21878898?photo_view=2

we're getting a false-positive on <div id="photo-ad">. I don't know if there's anything we can really do about it or not (the ads there are more obviously labeled), but yeah.
Comment 12 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-01-24 14:13:21 PST
(In reply to Chris Lawson from comment #11)
> On  http://www.petfinder.com/petdetail/21878898?photo_view=2
> 
> we're getting a false-positive on <div id="photo-ad">. I don't know if
> there's anything we can really do about it or not (the ads there are more
> obviously labeled), but yeah.

Ugh.  I'm loath to remove a $="-ad" rule (it comes from bug 583673 comment 2, fwiw), especially since that rule blocks actual *ads* on that page.

I've never heard of this site before; is it very popular?  If so, we can consider adding a global exception for it, but otherwise, edit user_ad_blocking.css to add your own exception unblock the content.
Comment 13 Chris Lawson (gone) 2012-01-24 18:38:32 PST
(In reply to Smokey Ardisson (not following bugs - do not email) from comment #12)
> I've never heard of this site before; is it very popular?  If so, we can

It's the site that almost every animal shelter in the US uses to show their adoptable pets, but I have no idea what its Alexa rank might be.

cl
Comment 14 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-01-24 23:55:30 PST
(In reply to Chris Lawson from comment #13)
> It's the site that almost every animal shelter in the US uses to show their
> adoptable pets

That's a good enough argument, I think.

> but I have no idea what its Alexa rank might be.

Currently #628 in the United States, so, yeah: http://www.alexa.com/siteinfo/petfinder.com

We should add an exception for petfinder.com for <div id="photo-ad">.
Comment 15 philippe (part-time) 2012-02-05 21:11:03 PST
Via the forums:
http://forums.mozillazine.org/viewtopic.php?p=11709035#p11709035

content blocked on an ESPN games page
http://streak.espn.go.com/en/entry?date=20120206

<div class="games-fullcol fullcol-nouniv two_col_ad_in_rightcol" id="mgmain">

blocked by div[class*="_ad_"]
Comment 16 Chris Lawson (gone) 2012-02-12 09:34:38 PST
On StackOverflow:

img src="http://static.adzerk.net/Advertisers/*.png"
div id*="adzerk"

Either one or both should take care of it.
Comment 17 Chris Lawson (gone) 2012-02-14 15:15:22 PST
On http://www.inforum.com/event/article/id/350752/group/homepage/

div id="marketplaceDeal_widget"

Looks like some kind of employment ads, I think.
Comment 18 Chris Lawson (gone) 2012-03-02 08:33:12 PST
On http://www.swcbulletin.com/event/article/id/20138/

div id="marketplaceDeal_widget"

Hey, look, that's the same thing as in comment 17 :-p (This site doesn't use them for employment ads, though.)
Comment 19 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-03-07 12:51:15 PST
On http://twitpic.com/8r4flx, an awful fake WinXP alert dialogue ad for pediatric surgery:

<iframe width="300" scrolling="no" height="250" style="padding-top: 10px;" src="http://display.advertise.twitpic.com/"/>
Comment 20 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-03-10 14:28:26 PST
On http://www.file-upload.net/download-4176779/Camino_2_1_2_RC_german.zip.html:

<iframe width="300" scrolling="no" height="250" frameborder="0" src="http://d.afdads.com/widget/render/hash/19a8953c644a828761cfb553a36c34d9" style="border: 0pt none;" allowtransparency="true"/>
Comment 21 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-03-15 12:55:43 PDT
WaPo has succumbed to the user-hostile "let's replace our front page with a full-window Flash ad" syndrome, and once again the "prevent users from clicking on things they actually want to read" div is still present.

div[id^="VwPanl"] { display: none !important } should fix it.
Comment 22 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-03-16 17:28:01 PDT
On the AJC obituary pages (via legacy.com), some really tasteless ads inside iframes like:

<iframe width="300" scrolling="no" height="250" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" vspace="0" hspace="0" noresize="" src="http://media2.legacy.com/adiframe/3.0/5306.1/1369112/0/-1/size=300x250/adtech;alias=legacy.atlanta.searchresultsbrowse.300x250.1.1;target=_blank;kvcobrand=atlanta;kvusecname=0;kvquantcast=D;grp=493742750;misc=2446956701" id="a_dd5081f5-640f-4f9b-861b-4f685de7c724"/>

--> iframe[src*="/adiframe/"]
Comment 23 philippe (part-time) 2012-03-17 19:49:43 PDT
On the refreshed lemonde.fr – ads are blocked (most at least, except for some annoying things on the front page [*] that change markup with the weather… :-p), but some ad-containers still take huge amount of space:

div[class*="position_pub"] { display: none !important; } deals with it.


[*] mostly in the background (top/sides): div[id^="pmxxxxxx"] where xxxxxx changes continually (also visible on Lepoint.fr and other French news sites)
eg pmWonderWideContainer7708_1, pmBGContainer7708_1
They use background images pointing to http://broadcast.piximedia.fr
then overlay empty, absolute positioned a[href]'s.
real mess to block.
Comment 24 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-03-24 00:10:35 PDT
Created attachment 608972 [details] [diff] [review]
Seven-month omnibus

(In reply to Chris Lawson from comment #2)
> I don't know if we care, but there are ads *everywhere* on
> 
> http://www.newzimbabwe.com/news-6349-Hooker+turns+into+donkey,+court+hears/
> news.aspx

Unfortunately, these are all in the form of
a[href="randomsite"] img[src^="../banners/"]
which isn't blockable on the <a> because of the randomness of the href, nor blockable on the img because "../banners/" isn't a string we can be sure are ads. :-(

(In reply to philippe from comment #8)
> > div[class="nH PS"] inside the Gmail @-moz-document block appears to block it.
> 
> That messes up the layout a little - the footer part is then flush close to
> the textarea for quick reply

Talked with philippe about this; I don't see it and he says it's not nearly as bad as before, so let's keep using display:none everywhere.

Aside from those, this fixes everything mentioned here as well as bug 736917.

Also, if we get past three months ever again, someone needs to stage an ad-blocking update intervention :-(
Comment 25 Stuart Morgan 2012-04-08 22:51:41 PDT
Comment on attachment 608972 [details] [diff] [review]
Seven-month omnibus

sr=smorgan
Comment 26 Smokey Ardisson (offline for a while; not following bugs - do not email) 2012-04-09 12:29:36 PDT
http://hg.mozilla.org/camino/rev/8878d9d416a8

Note You need to log in before you can comment on or make changes to this bug.