removing ad frames

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

removing ad frames

Postby Bethrezen » Tue Mar 27, 2007 9:50 pm

hi all

ok question after blocking ads i often find that the frames and the like that the ads where in are still present and thus make for some very ugly results

http://gofish.about.com/detail.html?gfid=14-2631

is a good example at the top of the page is displayed a double click ad which i have blocked but if also like to remove the frame that the add was in

now i am aware that i could use a single purpose web server to serve a replacement image but i'd rather not i'd rather just block the frame as well

bare in mind i'm using a pacfile and not adblock plus because a pacfile is compatible with all browsers
Bethrezen
 

Postby rick752 » Tue Mar 27, 2007 11:30 pm

Why not just block the doubleclick frames there with:

Code: Select all
http://ad.doubleclick.net/adi/abt.gofish/


If you block the iframes, you won't have to block the ads in them :wink:
User avatar
rick752
 
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA

Postby Bethrezen » Wed Mar 28, 2007 12:43 am

hi

unfortunately

|| shExpMatch(url, "http://ad.doubleclick.net/adi/abt.gofish/")

isn't working

now if i add the filter

|| shExpMatch(url, "*about.com*js*")

that works and the nasty javascript genrated error box that is left behind by the blocked ad vanishes but the problem with this filter is that its to general and it disables all javascript for about.com

I'd like to be a little more selective and only block the nasty javascript genrated error boxs that are left behind by the blocking of the double click ads
Bethrezen
 

Postby Bethrezen » Thu Mar 29, 2007 2:56 am

hi all

ok after examining the source code for the page in question i have determined what bit of java script it is that is responsible for generating the horrible error boxes when i block the ads from double click

here is the code responsible

Code: Select all
<script type="text/javascript">
function zow(f,u,n,s){var o=window.open(u,n,s)
if(window.focus){if(f&1)o.focus();if(f&2)window.focus()}
return o}
uy='about.com';
zSm=zSu='';
xd=0;zap="";zAth='';zTt='';zir=''
ch='entertainment';gs='gofish';xg="";zcs=''
zFDT='0'
zFST='0'
zOr='73S8040F20SA0k2F';t9=1;zp0=zp1=zp2=zp3=0
zhc=zpb=zgs=zdn='';zFS='';zdn='abt.gofish';zDn=''
zis=1;zpid=zi=zRf=ztp=zpo=0;zdx=20;zfx=100;zJs=12
zi=1;zz=';46860=2-1-12-1;246860=2-1-12-1;72890=...
zGAT=1;zBTS=0;
zGo=0;zG=0
zBT=0;zTbO=0
</script>


so my question how would i create a filter in my pacfile to block this code so that the horrible error boxes wont be displayed ??
Bethrezen
 

Postby Wladimir Palant » Fri Mar 30, 2007 11:27 am

No, this code doesn't display anything, it only sets some variables. There is some external script loading after that - it displays the ad then.
Wladimir Palant
ABP Developer
 
Posts: 8332
Joined: Fri Jun 09, 2006 6:59 pm
Location: Cologne, Germany

Postby Bethrezen » Sun Apr 01, 2007 3:05 pm

No, this code doesn't display anything, it only sets some variables. There is some external script loading after that - it displays the ad then.


oh ??? odd coz when i save the page to my desk top and then removed the script above and then reload the page the horrible script generated error boxes vanished this is why i though that was the code responsible but you are telling me that's not the case ???

humm i wonder how can i make horrible script generated error boxes go away with out completely disabling javascript then ??

coz i can block the ad from loading by adding double click to the filter list but as i've mentioned that leaves behind the horrible script generated error box which thus far i have only been able to make go away by turning java script off or by blocking all java script
Bethrezen
 

Postby Bethrezen » Sun Apr 01, 2007 3:22 pm

hi

Ok I've had another look at the source code and think i found the real culprit for the horrible error boxes i seek to squash

http://z.about.com/0/js/cj017x14t306.js

when i add that to my block list and reload the page the error boxes go away :)

now its off to a few other sites to remove the horrible script generated error boxes there to

now that leave me with how to remove error boxes caused by frames ???? humm i wonder ???
Bethrezen
 


Return to Adblock Plus for Firefox

Who is online

Users browsing this forum: No registered users and 4 guests