The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Geek Stuff

(Solved) - quant.js ??

(36 posts)
  • Started 6 years ago by raphoenix
  • Latest reply from raphoenix
  • Topic Viewed 10094 times

raphoenix
Posts: 0

quant.js

Anyone know what this script file does ????

Am curently blocking it in cookies and have it isolated.

Not a threat in MSE but not sure what the purpose of this file is ????

Web references are vague.

May be on others systems, don't know ????

Can read the script easily; it just references cookies and such ????

Thanks,

Rick P.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Hi Rick,

As far as I'm aware "quant.js" is used in advertising usually, its a kind of tracking script but I could be wrong. :)

Posted 6 years ago
Top
 
raphoenix
Posts: 0

GS,

That's what I thought after editing (looking at) the script.

It might prove interesting for folks to search their machines for the file.

I came upon the subject when I investigated what cookies were loading from what websites yesterday.

Rick P.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Trouble is Rick those kinds of scripts I think are also in WordPress which is a necessary part of forum log ins.

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Some are necessary and some just come along for the ride I think??

Am blocking the cookie which appears to activate plus have contained the JS and have not experienced any problems on the net today. That's not to say I won't have trouble down the line somewhere.

Rick P.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Incidently how did you go about finding that cookie?

Posted 6 years ago
Top
 
raphoenix
Posts: 0

IE9
Safety Button
Webpage Privacy Policy Editor

Then I began to search ALL computer for key words with ALL files / objects showing.

Of course there are any number of ways to clear all cashes when experimenting.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Cheers mate I'm actually using FF4 but when you mentioned WPPE I figured it out and dont have that cookie anyhow. :)

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Here is SCRIPT
=========================
if(!__qc){var __qc={qcdst:function(){if(__qc.qctzoff(0)!=__qc.qctzoff(6))return 1;return 0;},qctzoff:function(m){var d1=new Date(2000,m,1,0,0,0,0);var t=d1.toGMTString();var d3=new Date(t.substring(0,t.lastIndexOf(" ")-1));return d1-d3;},qceuc:function(s){if(typeof(encodeURIComponent)=='function'){return encodeURIComponent(s);}
else{return escape(s);}},qcrnd:function(){return Math.round(Math.random()*2147483647);},qcgc:function(n){var v='';var c=document.cookie;if(!c)return v;var i=c.indexOf(n+"=");var len=i+n.length+1;if(i>-1){var end=c.indexOf(";",len);if(end<0)end=c.length;v=c.substring(len,end);}
return v;},qcdomain:function(){var d=document.domain;if(d.substring(0,4)=="www.")d=d.substring(4,d.length);var a=d.split(".");var len=a.length;if(len<3)return d;var e=a[len-1];if(e.length<3)return d;d=a[len-2]+"."+a[len-1];return d;},qhash2:function(h,s){for(var i=0;i<s.length;i++){h^=s.charCodeAt(i);h+=(h<<1)+(h<<4)+(h<<7)+(h<<8)+(h<<24);}
return h;},qhash:function(s){var h1=0x811c9dc5,h2=0xc9dc5118;var hash1=__qc.qhash2(h1,s);var hash2=__qc.qhash2(h2,s);return(Math.round(Math.abs(hash1*hash2)/65536)).toString(16);},sd:["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],qcsc:function(){var s="";var d=__qc.qcdomain();if(__qc.qad==1)return";fpan=u;fpa=";var qh=__qc.qhash(d);for(var i=0;i<__qc.sd.length;i++){if(__qc.sd[i]==qh)return";fpan=u;fpa=";}
var u=document;var a=__qc.qcgc("__qca");if(a.length>0){s+=";fpan=0;fpa="+a;}
else{var da=new Date();a='P0-'+__qc.qcrnd()+'-'+da.getTime();u.cookie="__qca="+a+"; expires=Sun, 18 Jan 2038 00:00:00 GMT; path=/; domain="+d;a=__qc.qcgc("__qca");if(a.length>0){s+=";fpan=1;fpa="+a;}
else{s+=";fpan=u;fpa=";}}
return s;},qcdc:function(n){document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain="+__qc.qcdomain();},qpxload:function(img){if(img&&typeof(img.width)=="number"&&img.width==3){__qc.qcdc("__qca");}},qcp:function(p,myqo){var s='',a=null;var media='webpage',event='load';if(myqo!=null){for(var k in myqo){if(typeof(k)!='string'){continue;}
if(typeof(myqo[k])!='string'){continue;}
if(k=='qacct'){a=myqo[k];continue;}
s+=';'+k+p+'='+__qc.qceuc(myqo[k]);if(k=='media'){media=myqo[k];}
if(k=='event'){event=myqo[k];}}}
if(typeof a!="string"){if((typeof _qacct=="undefined")||(_qacct.length==0))return'';a=_qacct;}
if(media=='webpage'&&event=='load'){for(var i=0;i<__qc.qpixelsent.length;i++){if(__qc.qpixelsent[i]==a)return'';}
__qc.qpixelsent.push(a);}
if(media=='ad'){__qc.qad=1;}
s=';a'+p+'='+a+s;return s;},qcesc:function(s){return s.replace(/\./g,'%2E').replace(/,/g,'%2C');},qcd:function(o){return(typeof(o)!="undefined"&&o!=null);},qcogl:function(){var m=document.getElementsByTagName('meta');var o='';for(var i=0;i<m.length;i++){if(o.length>=1000)return o;if(__qc.qcd(m[i])&&__qc.qcd(m[i].attributes)&&__qc.qcd(m[i].attributes.property)&&__qc.qcd(m[i].attributes.property.value)&&__qc.qcd(m[i].content)){var p=m[i].attributes.property.value;var c=m[i].content;if(p.length>3&&p.substring(0,3)=='og:'){if(o.length>0)o+=',';var l=(c.length>80)?80:c.length;o+=__qc.qcesc(p.substring(3,p.length))+'.'+__qc.qcesc(c.substring(0,l));}}}
return __qc.qceuc(o);},firepixel:function(qoptions){var e=(typeof(encodeURIComponent)=='function')?"n":"s";var r=__qc.qcrnd();var sr='',qo='',qm='',url='',ref='',je='u',ns='1';var qocount=0;__qc.qad=0;if(typeof __qc.qpixelsent=="undefined"){__qc.qpixelsent=new Array();}
if(typeof qoptions!="undefined"&&qoptions!=null){__qc.qopts=qoptions;for(var k in __qc.qopts){if(typeof(__qc.qopts[k])=='string'){qo=__qc.qcp("",__qc.qopts);break;}else if(typeof(__qc.qopts[k])=='object'&&__qc.qopts[k]!=null){++qocount;qo+=__qc.qcp("."+qocount,__qc.qopts[k]);}}}else if(typeof _qacct=="string"){qo=__qc.qcp("",null);}
if(qo.length==0)return;var ce=(navigator.cookieEnabled)?"1":"0";if(typeof navigator.javaEnabled!='undefined')je=(navigator.javaEnabled())?"1":"0";if(typeof _qmeta!="undefined"&&_qmeta!=null){qm=';m='+__qc.qceuc(_qmeta);_qmeta=null;}
if(self.screen){sr=screen.width+"x"+screen.height+"x"+screen.colorDepth;}
var d=new Date();var dst=__qc.qcdst();var qs='http';if(window.location.protocol=='https:'){qs+='s';}
qs+="://pixel.quantserve.com";var fp=__qc.qcsc();if(window.location&&window.location.href)url=__qc.qceuc(window.location.href);if(window.document&&window.document.referrer)ref=__qc.qceuc(window.document.referrer);if(self==top)ns='0';var ogl=__qc.qcogl();var img=new Image();img.alt="";img.src=qs+'/pixel'+';r='+r+fp+';ns='+ns+';url='+url+';ref='+ref+';ce='+ce+';je='+je+';sr='+sr+';enc='+e+';ogl='+ogl+';dst='+dst+';et='+d.getTime()+';tzo='+d.getTimezoneOffset()+qo+qm;img.onload=function(){__qc.qpxload(img);}},quantserve:function(){if(typeof _qevents=='undefined'){_qevents=[];}
if(typeof _qoptions!="undefined"&&_qoptions!=null){__qc.firepixel(_qoptions);_qoptions=null;}else if(!_qevents.length&&typeof _qacct!="undefined"){__qc.firepixel(null);}
if(!__qc.evts){for(var k in _qevents){__qc.firepixel(_qevents[k]);}
_qevents={push:function(){var a=arguments;for(var i=0;i<a.length;i++){__qc.firepixel(a[i]);}}};__qc.evts=1;}}};}
function quantserve(){__qc.quantserve();}
quantserve();

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Is that taken from HTG source code??

Posted 6 years ago
Top
 
raphoenix
Posts: 0

NO is the quant.js code.

See info that the JS transmits.

quantserve.com has something to do with this process but not sure how or what they do??

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Quantserve are also in this thread/forum source code, as I said before I think its to do with the user log in/wordpress id I shall log out and see if it still appears. :)

Edit :

Tis the same before and after :

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

I definately think its to do with log in function, having checked another site that doesnt use a log in feature cannot find any quantserve type of script :

http://upchucky.org/music-room.htm

Check for yourself if you like, HTG does use advertising though and I'm not sure if the above has any.

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Here is Tag in HTG Source View. Had to Edit < > so could post.

<!-- Start Quantcast tag -->
<script type="text/javascript">
_qoptions={
qacct:"p-306sOjcgY0NWo"
};
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
img src="http://pixel.quantserve.com/pixel/p-306sOjcgY0NWo.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/
</noscript>
<!-- End Quantcast tag -->

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

If you try to go to http://pixel.quantserve.com/pi.....gY0NWo.gif it gets flagged by WOT (RED Zone)

Same with http://edge.quantserve.com/quant.js

Strange!!!

EDIT :

May have found the answer : http://www.ozzu.com/website-de.....96739.html

Posted 6 years ago
Top
 
raphoenix
Posts: 0

I think it is a part of this service.

http://en.wikipedia.org/wiki/Quantserve

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

LOL Yea thats what I got above in a round about kind of way. :D

Posted 6 years ago
Top
 
doctordeere
Posts: 0

http://www.quantcast.com/learn.....easurement

Tracking has come a long way.

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Quantserve is like Google Analytics, to attract advertisers, as they see your public validated traffic rank and have some idea of the type and number of visitors they might be advertising to.........................

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Nice find doctordeere :)

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Now if I can keep From downloading JS ........(LOL)

We shall see. :) :)

Rick P.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

I bet that ones even beyond you Rick. LOL

But if you manage to stop it altogether let me know, it'll make for an interesting piece of knowledge. :))

Posted 6 years ago
Top
 
doctordeere
Posts: 0

http://www.quantcast.com/how-w.....ce/opt-out

They offer an opt-out, BUT your browser has to accept 3rd party cookies.

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Could NOT stop the JS from loading From the HTG log-in. :( :(

Cleared the field and the JS came in as soon as I logged in. :( :(

I WILL find a way to defeat it. (LOL) (LOL) :) :)

Rick P.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

If its third party then by opting out using a cookie tool will surely be sending your current traffic affiliations to the third party who will then use their tracking cookies on the sites you've visited previous.

Or am I barking up the wrong tree??

Posted 6 years ago
Top
 
doctordeere
Posts: 0

That made me dizzy ;-)

But yeah, damned if you do, damned if you don't. Kinda.

Posted 6 years ago
Top
 
raphoenix
Posts: 0

I opted out BUT got NO results code as I have IE9 Browser configured for NO tracking.

Strange that JS loads on HTG log-in but No Tracking is Enabled ????

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

@ Rick,

I dont think you'll do it as it seems to be html related, in other words unless YOU redesign the site using present code minus quantserve scripts then upload to server/host to get desired effect, then I think its something we'll have to live with, unless...maybe there's an add-on that can....no wait still wont work. :))

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Yes think JS loads during log-in but further cookie tracking output / input info is blocked on my side.

At least I hope that's how it works as I have (3) MS Recommeded Sites blocking. (LOL) (LOL)

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Does that include "Noscript" to block?

Posted 6 years ago
Top
 
raphoenix
Posts: 0

IE9 includes setting Custom Scripting Behaviors and NOW has ALL these other type of tools also.

Really, one needs a book conserning IE9 because of all the configuration setups possible.

I understand IE10 will be even be more complicated for those of us who like Custom Setup "Stuff". :) (LOL) (LOL)

Rick P.

Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

Oh Great!!

That means I'm gonna need a manual just to read the manual. LOL :D

Posted 6 years ago
Top
 
raphoenix
Posts: 0

For Sure !! (LOL) (LOL)

I ain't no "MacGyver" with this stuff any more either. :) :)

Let it be (Solved).

Rick P.

Accepted Answer · Posted 6 years ago
Top
 
GuiltySpark
Posts: 0

@ Rick,

I dont know about IE9 but in FF4 if you select the orange dropdown select options, then options again select the privacy tab and uncheck "use third party cookies" then quantserve and suchlike no longer show up in the cookies list, whether or not this actually stops them though... :)

Posted 6 years ago
Top
 
doctordeere
Posts: 0

I use Chrome / Iron and I have always set my browser to not allow 3rd party cookies. I've been keeping an eye out for these items since this thread took off and haven't found any of it. Yet.

Posted 6 years ago
Top
 
raphoenix
Posts: 0

Been researching for a few minutes with different settings.

If you Disable ALL cookies, Can Not Log-in

If you only allow some trusted cookies (Second Highest Setting), [ quant.js ] loads but Can Not Log-in.

If you Allow Trusted Cookies (MS Recommended Third Setting), [ quant.js Loads and Can Log-in to HTG ].

### Remember I run as Build-in Administrator Account so I can search plus clean every part of this machine. :) :)

Rick P.

Posted 6 years ago
Top
 



Topic Closed

This topic has been closed to new replies.