M
M
Max Taburetkin2015-06-22 22:52:35
PHP
Max Taburetkin, 2015-06-22 22:52:35

Chrome is weird or where did someone else's code come from?

In general, I am doing one PHP analyzer in Notepad++ via FTP.
I edit, save, update, look at the HTML code that came out.
And then <head>this came up:

<script>(function(){var b=window,f="chrome",g="wtsrt_",k="tbsd_",l="tbnd_",m="start",n="_wtsrt",p="_tbnd",q="CSI/";(function(){function h(a){this.t={};this.tick=function(a,d,c){this.t[a]=[void 0!=c?c:(new Date).getTime(),d];if(void 0==c)try{b.console.timeStamp(q+a)}catch(e){}};this.tick(m,null,a)}var a;b.performance&&(a=b.performance.timing);var r=a?new h(a.responseStart):new h;b.mobilespeed_jstiming={Timer:h,load:r};if(a){var d=a.navigationStart,e=a.responseStart;0<d&&e>=d&&(b.mobilespeed_jstiming.srt=e-d)}if(a){var c=b.mobilespeed_jstiming.load;0<d&&e>=d&&(c.tick(n,void 0,d),c.tick(g,n,e),c.tick(k,g))}try{a=
null,b[f]&&b[f].csi&&(a=Math.floor(b[f].csi().pageT),c&&0<d&&(c.tick(p,void 0,b[f].csi().startE),c.tick(l,p,d))),null==a&&b.gtbExternal&&(a=b.gtbExternal.pageT()),null==a&&b.external&&(a=b.external.pageT,c&&0<d&&(c.tick(p,void 0,b.external.startE),c.tick(l,p,d))),a&&(b.mobilespeed_jstiming.pt=a)}catch(t){}})();})();
</script>

</body>And suddenly this appeared before :
<script>(function(){var c=window,f=document,l="chrome",m="tran",q="external",r="webkitvisibilitychange",t="start",u="sens_",v="req_",x="rcv_",y="prerender",z="ntsrt_",A="ntplt1_",B="ntplt0_",C="nsfs_",D="mobilespeed",E="https://csi.gstatic.com/csi",F="https:",G="http://csi.gstatic.com/csi",H="dns_",J="con_",K="_se",L="_req",M="_rcv",N="_ns",O="_dns",P="_con",Q="_",R="?v=3",aa="=",S="1",T=".",U=",",V="&tran=",ba="&tbsrt=",ca="&srt=",da="&s=",ea="&rt=",fa="&p=s",ga="&npnv=",ha="&npn=1",ia="&it=",ja="&apa=1",ka="&action=",
la="&",W="";if(c.mobilespeed_jstiming){c.mobilespeed_jstiming.a={};c.mobilespeed_jstiming.b=1;var X=function(b,a,e){var d=b.t[a],h=b.t.start;if(d&&(h||e))return d=b.t[a][0],void 0!=e?h=e:h=h[0],Math.round(d-h)},na=function(b,a,e){var d=W;c.mobilespeed_jstiming.srt&&(d+=ca+c.mobilespeed_jstiming.srt,delete c.mobilespeed_jstiming.srt);c.mobilespeed_jstiming.pt&&(d+=ba+c.mobilespeed_jstiming.pt,delete c.mobilespeed_jstiming.pt);try{c[q]&&c[q][m]?d+=V+c[q][m]:c.gtbExternal&&c.gtbExternal[m]?d+=V+c.gtbExternal[m]():
c[l]&&c[l].csi&&(d+=V+c[l].csi()[m])}catch(h){}var g=c[l];if(g&&(g=g.loadTimes)){g().wasFetchedViaSpdy&&(d+=fa);if(g().wasNpnNegotiated){var d=d+ha,n=g().npnNegotiatedProtocol;n&&(d+=ga+(encodeURIComponent||escape)(n))}g().wasAlternateProtocolAvailable&&(d+=ja)}var p=b.t,ma=p.start,g=[],n=[],k;for(k in p)if(k!=t&&0!=k.indexOf(Q)){var w=p[k][1];w?p[w]&&n.push(k+T+X(b,k,p[w][0])):ma&&g.push(k+T+X(b,k))}delete p.start;if(a)for(var I in a)d+=la+I+aa+a[I];(a=e)||(a=F==f.location.protocol?E:G);return[a,
R,da+(c.mobilespeed_jstiming.sn||D)+ka,b.name,n.length?ia+n.join(U):W,d,ea,g.join(U)].join(W)},Y=function(b,a,e){b=na(b,a,e);if(!b)return W;a=new Image;var d=c.mobilespeed_jstiming.b++;c.mobilespeed_jstiming.a[d]=a;a.onload=a.onerror=function(){c.mobilespeed_jstiming&&delete c.mobilespeed_jstiming.a[d]};a.src=b;a=null;return b};c.mobilespeed_jstiming.report=function(b,a,e){if(f.webkitVisibilityState==y){var d=!1,h=function(){if(!d){a?a.prerender=S:a={prerender:S};var g;f.webkitVisibilityState==y?
g=!1:(Y(b,a,e),g=!0);g&&(d=!0,f.removeEventListener(r,h,!1))}};f.addEventListener(r,h,!1);return W}return Y(b,a,e)};var Z=function(b,a,e,d){return 0<e?(d?b.tick(a,d,e):b.tick(a,W,e),!0):!1};c.mobilespeed_jstiming.getNavTiming=function(b){if(c.performance&&c.performance.timing){var a=c.performance.timing;Z(b,O,a.domainLookupStart)&&Z(b,H,a.domainLookupEnd,O);Z(b,P,a.connectStart)&&Z(b,J,a.connectEnd,P);Z(b,L,a.requestStart)&&Z(b,v,a.responseStart,L);Z(b,M,a.responseStart)&&Z(b,x,a.responseEnd,M);if(Z(b,
N,a.navigationStart)){Z(b,z,a.responseStart,N);Z(b,C,a.fetchStart,N);var e=c[q]&&c[q].startE;!e&&c[l]&&c[l].csi&&(e=Math.floor(c[l].csi().startE));e&&(Z(b,K,e),Z(b,u,a.navigationStart,K));Z(b,B,a.loadEventStart,N);Z(b,A,a.loadEventEnd,N)}}}};})();
</script><script>(function(){var a=window,b="default_experiment",c="load",d="ol",e=a.mobilespeed_jstiming,f=e.load;a.top==a&&a.addEventListener(c,function(){f.name=c;f.tick(d);e.getNavTiming(f);setTimeout(function(){e.report(f,{e:b})},300)},!1);})();
</script>

On subsequent checks, this was not found. Who has experienced this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Ivanov, 2015-06-22
@Codd

Try disabling all plugins in your browser.

V
vwlab, 2016-06-07
@vwlab

I also noticed such a script, the "Traffic Saving" plugin is to blame for everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question