[FoRK] pop-ups in firefox?

Joe Barrera joe at barrera.org
Fri Apr 1 14:45:52 PST 2005


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




More information about the FoRK mailing list