Re: adblock extension not filtering backgrounds
Philip <[email protected]> Thu, 28 Apr 2005 20:14:44 GMT
| Newsgroups | gmane.comp.mozilla.devel.unix |
|---|---|
| Organization | SBC http://yahoo.sbc.com |
| Message-ID | <[email protected]> |
Philip wrote: > DC wrote: > >>Philip wrote: >> >> >>>Some annoying yahoo ads started to appear that I could not get adblock >>>to filter. It seems these graphics are tablbe backgrounds. >> >> >>>Is there a way to get adblock to zap these things too? >> >> >>URL? I might have a solution but would like to try it first, before I >>step on my, uh, thingy. }:O) >> > > > It was one of Yahoo's ads. So it only appears sporatically. I wish now that I > had saved the page source. > > Basically you can try to jury rig it. The ad image is the background attribute > of a table. The table element(s) contains a transparent spacer.gif that give the > table size, but allow the background to show through. I caught one of the ads on yahoo. Here is the offending html: <table width="728" height="90" border="0" cellspacing="0" cellpadding="0" background="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/20050415_53485_v2_728x90_super_ypmiranda_w2m.jpg"> <form action="http://us.ard.yahoo.com/SIG=11u67nnqr/M=341859.6195605.7332986.54/D=my/S=150001156:N/_ylt=AnH3VR7wL7T0D0qsn9f6nxkE1vAI/EXP=1114725909/A=2683686/R=0/SIG=11i1nj0u5/*http://personals.yahoo.com/us/common/quicksearch" method="GET" target="_blank"><input type=hidden name="submit" value="1"><input type=hidden name="r_has_photo" value="2"><input type=hidden name="dest" value="search"><tr><td align="center"><table border="0" cellspacing="0" cellpadding="2"> <tr> <td width="330" rowspan="3"><a href="http://us.ard.yahoo.com/SIG=11u67nnqr/M=341859.6195605.7332986.54/D=my/S=150001156:N/_ylt=AnH3VR7wL7T0D0qsn9f6nxkE1vAI/EXP=1114725909/A=2683686/R=1/SIG=10s6hn5si/*http://personals.yahoo.com"><img src="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/spacer.gif" alt="" width="330" height="86" border="0"></a></td> <td width="398" style="font: 10px Verdana,Arial,Helvetica,sans-serif; color: #997c55" align="center" valign="bottom" height="20"><img src="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/spacer.gif" width="10" height="8" alt=""><br>I'm a <select name="r_gender_pref" id="r_gender_pref" style="font: 10px Verdana,Arial,helvetica; color: #000000; background-color: #ffffff"> <option value="1" selected>Woman <option value="2">Man</select> seeking a <select name="r_gender" id="r_gender" style="font: 10px Verdana,Arial,helvetica; color: #000000; background-color: #ffffff"> <option value="2" selected>Man <option value="1">Woman </select> </td> </tr> <tr> <td height="20" style="font: 10px Verdana,Arial,Helvetica,sans-serif; color: #997c55" align="center">Age: <input name="r_min_age" style="font: 10px Verdana,Arial,helvetica; color: #000000; background-color: #ffffff; WIDTH: 25px" id="r_min_age" size="2" maxlength="80"> to <input name="r_max_age" style="font: 10px Verdana,Arial,helvetica; color: #000000; background-color: #ffffff; WIDTH: 25px" id="r_max_age" size="2" maxlength="80"> City or ZIP: <input style="font: 10px Verdana,Arial,helvetica; color: #000000; background-color: #ffffff" maxlength="80" size="5" name="csz"> <input type="submit" value="Find My Match" name="submit" style="font-weight: bold; font-size: 11px; width: 95px; color: #ffffff; background-color: #bda069"><br> </td></tr> <tr><td align="center" valign="bottom"><a href="http://us.ard.yahoo.com/SIG=11u67nnqr/M=341859.6195605.7332986.54/D=my/S=150001156:N/_ylt=AnH3VR7wL7T0D0qsn9f6nxkE1vAI/EXP=1114725909/A=2683686/R=2/SIG=10tbvh54u/*http://personals.yahoo.com/"><img src="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_personals2/spacer.gif" alt="Yahoo! Personals" width="380" height="25" border="0"></a></td></tr> </table>