[FoRK] pop-ups in firefox?

Ken Meltsner meltsner at gmail.com
Fri Apr 1 15:22:38 PST 2005


Try setting a permanent cookie with the same info to block them
forever (or as long as the cookie stays arounds.

Something like:

dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString() + a lot....

if you have the developer extensions in place.

Haven't tried this myself, though.

On Apr 1, 2005 4:45 PM, Joe Barrera <joe at barrera.org> wrote:
> So since I've started looking at the source, I'm 3 for 3 for
> pop-up sites using the concat-and-eval method, and
> NOT leveraging plug-ins. This for example is the source
> from a page on snopes:
> 
> <SCRIPT LANGUAGE="javascript">
> <!--
> var dc=document; var date_ob=new Date();
> dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
> if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
> dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
> dc.write('/w/pop.cgi?sid=1796&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
> date_ob.setTime(date_ob.getTime()+43200000);
> dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();}
> // -->
> </SCRIPT>
> 
> Looks like they're using a cookie so that you don't
> get their pop-up more than twice a day.
> 
> - Joe
> 
> 
> _______________________________________________
> FoRK mailing list
> http://xent.com/mailman/listinfo/fork
> 


-- 
Absolute power corrupts absolutely, but model train sets do a pretty
good job as well

-- 2/28/05, in a odd dream


More information about the FoRK mailing list