PageSourceSearch

https://www.tizianocaviglia.name/js/stat.js

js tizianocaviglia.name collected 2026-10-03 22:50:51 UTC 16,969 bytes, 295 lines download raw bytes

1function SSstoCk(cdom,nm){ var _st;if (cdom && cdom!="") {return 1;} if (window.opera) {return 1;}try{ if ( typeof(localStorage) == 'undefined' || typeof(sessionStorage) == 'undefined') {return 1;} }catch(e_r){return 1;}if (!(_st = localStorage)) {return 1;}try {localStorage.setItem('sstat', '1');localStorage.removeItem('sstat');return 0;} catch (error) {return 1;}return 0;}
2function cCk(nm,vl,mn){var ex=cdm="";var okc=0;var _sscdom="";var saf=0;try{if (navigator.vendor != null && navigator.vendor.match(/Apple/) && navigator.userAgent.indexOf('Safari') != -1) {saf=1;}}catch(e_r){}if (SSstoCk(_sscdom,nm)) {if (_sscdom && _sscdom!="") { cdm=" domain="+_sscdom; if (mn) {document.cookie=nm+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/;";}}if (mn) {var d=new Date();d.setTime(d.getTime()+(mn*6*1000)); ex="; expires="+d.toGMTString();} document.cookie=nm+"="+vl+ex+"; path=/;"+cdm+"";}else{try{if (saf) {sessionStorage.setItem(nm,vl);localStorage.setItem(nm,vl);}else{if (mn) { _st = localStorage; }else{ _st = sessionStorage; }if (_st) { _st.setItem(nm,vl);}}}catch(e_r){}}}
3function rCk(nm){ var fcoo=null;var nEQ=nm+"=";var ca=document.cookie.split(';'); var ses;var saf=0;try{if (navigator.vendor != null && navigator.vendor.match(/Apple/) && navigator.userAgent.indexOf('Safari') != -1) {saf=1;}}catch(e_r){} if ((nm.indexOf("SV_")>-1) || (nm.indexOf("SSID_")>-1)) {ses=1;}for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ') c=c.substring(1,c.length); if(c.indexOf(nEQ) == 0){ fcoo=c.substring(nEQ.length,c.length);}}if (SSstoCk("",nm)) {return(fcoo);}else{ if (saf) {if ((sessionStorage.getItem(nm)==null) && (ses!=1)) {return(localStorage.getItem(nm)); }else{return(sessionStorage.getItem(nm));}}else{if (ses) { if (fcoo) {document.cookie=nm+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/;";return(fcoo);} _sstore = sessionStorage; }else{if (fcoo || fcoo=="") {document.cookie=nm+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/;";return(fcoo);} _sstore = localStorage;}return(_sstore.getItem(nm)); }}}
4function ud(){var u=""+o_.getTime();return(u);}
5function udtb(){var u=""+otb_.getTime();return(u);}
6function sswk_(tnow){var w = Math.floor( ( (tnow / 86400000 ) - 4) / 7);return w}
7function _ssvoid(){return;}
8function sseC(d) {if (typeof(encodeURIComponent) == 'function') {return encodeURIComponent(d);} else {return escape(d);}}
9function sseXr(a,b){var rt="";for(var i=0;i<a.length;i++){rt+=String.fromCharCode(b^a.charCodeAt(i));}return(rt);}
10function ss12m(){ var th_=("https:" == document.location.protocol) ? "https://" :"http://";var ca=";e8;";var id="16679516";var bk;var catg=""; var base=16;var s="b1/rihoxru`u/bnl.kry10."; if (ca) { var cad = ca.split(';');for(var i=0;i<cad.length;i++){if (cad[i]) {catg+=""+parseInt(cad[i],base);if (i<cad.length && cad[i+1]) {catg+=",";}}}}bk=sseXr(s,1);var mble_=document.createElement('script'); mble_.type='text/javascript'; mble_.id="_12mblejs"; mble_.async = true;mble_.src=th_+bk+"4/"+id+"/"+catg; document.getElementsByTagName('head')[0].appendChild(mble_);}
11function ssxl(xl_){var i_=new Image(1,1);i_.src="https://s4.shinystat.com/cgi-bin/shinystat.cgi?TLR=1&USER="+us_+"&"+xl_+"&RM="+Math.round(Math.random()*2147483647);for(i=0;i<100000;i++);i_.alt="Stat";i_.onload=function(){return;}}
12function stfCk(ck,v){var ca=_pt_=_iof_=can="";var _f_=uv_=uvw=1;var _tf_=ud();var _t_=_bu_=0;_ort=new Date();_ort.setTime(o_.getTime()+(1000*ssoffset_));if (!v) v=0;if (ck) {ca = ck.split('%G');_f_=parseInt(ca[2],10);_tf_=parseInt(ca[3],10);if (otb_.getTime()-parseInt(v,10)>st_){_ot=new Date();_ot.setTime(parseInt(_tf_,10)+(1000*ssoffset_)); if(_ort.getUTCMonth()==_ot.getUTCMonth()){_f_++;}else{_f_=1;_tf_=ud();}}_t_=ca[0];_pt_=ca[1];_bu_=ca[4];if (ca[5]) can=ca[5];} _ot=new Date();_ot.setTime(parseInt(_bu_,10)+(1000*ssoffset_));if ((_ort.getUTCDay()==_ot.getUTCDay())&&(_ort.getUTCMonth()==_ot.getUTCMonth())&&(_ort.getUTCFullYear()==_ot.getUTCFullYear())) uv_=0;if (sswk_(_ort) == sswk_(_ot)) uvw=0;_iof_=""+_t_+"%G"+_pt_+"%G"+_f_+"%G"+_tf_+"%G"+ud()+"%G";tf_="&FV="+_f_+"&UV="+uv_+"&US="+uvw;return(_iof_);}
13function ssadbk(qs) { var img; img = new Image(); th_=("https:" == document.location.protocol) ? "https:":"http:"; img.src = th_+"//advm.brznetwork.com/commons/adsense.png"; img.onload = function() { return;}; img.onerror = function() { var iabk_=new Image(1,1); iabk_.src="https://s4.shinystat.com/cgi-bin/adbsa.cgi" + qs +"&RM="+Math.round(Math.random()*2147483647); iabk_.onload=function(){return;} }; }
14function ssImage_() { var parent;var scripts = document.getElementsByTagName("script");for (var i=0;i<scripts.length;i++) { if (scripts[i].src.indexOf("USER="+us_)>-1){parent=scripts[i];break;}}var img = document.createElement('img'),a = document.createElement('a');img.src = ssqS_+"&RM="+Math.round(Math.random()*2147483647);img.onload = function() { return;};a.href = "https://s4.shinystat.com/cgi-bin/shinystatv.cgi?USER="+us_+"&NH=1";if (self != top) {a.target = "_blank";} a.appendChild(img);if (parent) parent.parentNode.insertBefore(a, parent.nextSibling);}
15function SSsdk(e){return("");} us_="tluc";c_="";l_=""+screen.width;y_=""+screen.height;v_=navigator;d_=document.referrer;var o_=new Date();var otb_=new Date();vu_="&VUT=-1";n_="";r_=""+escape(d_);tf_="";var st_=1800000;
16if (self != top){try {r_=""+escape(parent.document.referrer)+"&FHR="+escape(d_);}catch(e_r){}}
17ssid_="&SSID=";
18o_.setTime(1000*1631381060); 
19var ssoffset_=7200;
20rssid_=Math.round(Math.random()*ud());
21k_="&CK="+(v_.cookieEnabled?"Y":"N");
22j_="&JV="+(v_.javaEnabled()?"Y":"N");
23hr_="&HR="+escape(window.location.href);
24if(v_.appName!="Netscape"){c_=screen.colorDepth}
25else{c_=screen.pixelDepth}
26if (sv_ = rCk("SV_"+us_)){
27vu_="&VUT="+(o_.getTime()-parseInt(sv_,10));
28if ((o_.getTime()-parseInt(sv_,10))>1800000) {cCk("SSID_"+us_,rssid_);ssid_+=rssid_;}
29else{ssid_+=rCk("SSID_"+us_);}}
30else{cCk("SSID_"+us_,rssid_);ssid_+=rssid_;}
31cCk("SV_"+us_,ud());  
32if (sn_=rCk("SN_"+us_)){ if (sn_=="ok") {sn_="";}cCk("SN_"+us_,stfCk(sn_,sv_,""),2592000);}else{n_="&NUT=y";cCk("SN_"+us_,stfCk("",sv_,""),2592000);}
33var ssqS_="https://s4.shinystat.com/cgi-bin/shinystat.cgi?USER="+us_+"&REFER="+r_+"&COLOR="+c_+"&SIZE="+l_+"&RES="+l_+"X"+y_+k_+hr_+j_+vu_+ssid_+n_+SSsdk(sv_)+tf_+"&JS=Y&VJS=4016";
34if (ssqS_.indexOf("NODW=yes")>-1){var ig_=new Image(1,1);ig_.src=ssqS_+"&RM="+Math.round(Math.random()*2147483647);ig_.onload=function(){_ssvoid();}}
35else{ ssImage_();}
36ssadbk(ssqS_.substring(ssqS_.indexOf('?')));
37if(1) {
38    function ssaE(d){if (typeof(encodeURIComponent) == 'function') {return encodeURIComponent(d);} else {return escape(d);}}
39    function ssaCss(){
40        var par="";
41        try{
42            if (typeof tfQCXGH_ != 'undefined') {par+=tfQCXGH_;}
43            else{ if (typeof tf_ != 'undefined') {par+=tf_;}}             
44            if (typeof par_ != 'undefined'){
45              var psl=par_.split('&');
46              for(var i=0;i<psl.length;i++) {
47                  if (psl[i].indexOf("EMD5=")>-1) par+="&"+psl[i];
48                  if (psl[i].indexOf("SEMER=")>-1) par+="&"+psl[i];
49                  if (psl[i].indexOf("COCAM=")>-1) par+="&"+psl[i];
50              }
51            }
52        }catch (e_r){}
53        return (par);
54    }
55    function ssaCls(nm,vl){try{ sessionStorage.setItem(nm,vl);localStorage.setItem(nm,vl);}catch(e_r){}}
56    function ssaRls(nm){ try { if (localStorage.getItem(nm)==null) {if (sessionStorage.getItem(nm)==null) {return 0};return(sessionStorage.getItem(nm)); }else{return(localStorage.getItem(nm));}}catch(e_r){}}
57    function ssaPm (e) {
58        if (e == null) return;
59        var msg=e.data;
60        if (typeof msg === 'string' || msg instanceof String){   
61                if (msg.indexOf("ssa_ls")>-1) {
62                        var ssa=msg.split('|');
63                        if (ssa[1]){
64                                if (ssa[1] != ssaRls("SSA")) { ssaCls("SSA",ssa[1]);}
65                        }
66                }
67        }
68    }
69    function ssaif(){        
70        var rf_=ssaE(document.referrer);
71        if (self != top){try {rf_=""+ssaE(parent.document.referrer)}catch(e_r){}}
72        var sls_=ssaRls("SSA");
73        var nvs=0;
74        if ((typeof vu_!="undefined") && vu_.indexOf("-1")>-1) {nvs=1;}
75        else {if (parseInt(vu_.substring(1+vu_.indexOf("=")),10)>1800000 ) {nvs=1;}}               
76        var ssals_="";
77        if (sls_) {ssals_=sls_;}
78        var uri="https://codicebusiness.shinystat.com/cgi-bin/getcod.cgi?IFSSA=yes&AFF=0&IDS=16679516&SSA="+ssals_+"&RF="+rf_+"&HR="+ssaE(window.location.href)+ssaCss()+"&NV="+nvs+"&RM="+Math.round(Math.random()*2147483647); 
79         
80       if (document.getElementById('ifssa')){
81            //document.getElementById('ifssa').src=uri;
82        }
83        else{   
84            try{                                                        
85                ifssa = document.createElement("IFRAME"); 
86                ifssa.setAttribute("src", uri); 
87                ifssa.setAttribute("id", "ifssa"); 
88                ifssa.setAttribute("name", "ifssa"+Math.round(Math.random()*100000)); 
89                ifssa.setAttribute("tabindex", "-1");
90                ifssa.setAttribute("sandbox", "allow-same-origin allow-scripts");
91                ifssa.style.width = 0+"px"; 
92                ifssa.style.height = 0+"px";    
93                ifssa.style.display = "none";
94                if (document.body) document.body.appendChild(ifssa);
95                else document.addEventListener("DOMContentLoaded", function(event) { document.body.appendChild(ifssa); });
96                if (window.addEventListener) {window.addEventListener("message", ssaPm, false);}else {window.attachEvent("onmessage", ssaPm);}           
97            }
98            catch(e_r){}                                                         
99        }
100            }
101
102    function ssckconsentiab(infgen){
103            var iabdebug=0;
104            function waitForTCFapi(success, failure) {
105                    var checks_done = 0;
106                    function checkTCFapiexist() {
107                            checks_done++;
108                            if (typeof window.__tcfapi === "function") {success();} 
109                            else {
110                                    if (checks_done < 5) {setTimeout(checkTCFapiexist, 1000);} 
111                                    else {failure();}
112                            }
113                    }
114                    checkTCFapiexist();
115            }
116         
117            function addTCFListener() {
118                    __tcfapi('addEventListener', 2, function(TCData, success) {
119                            if (TCData.cmpStatus == 'loaded' && (TCData.eventStatus == 'tcloaded' || TCData.eventStatus == 'useractioncomplete')) {
120                                    __tcfapi('getTCData', 2, function(data,success){
121                                            if(typeof data !== 'undefined' && typeof data.vendor !== 'undefined' && typeof data.vendor.consents !== 'undefined' &&  "491" in data.vendor.consents &&  data.vendor.consents[491]){
122                                                    // Do something here
123                                                    if (iabdebug) console.log("Yeah, consent given!");
124                                                    ssaif();
125                                            }else { if (iabdebug) console.log("Nope, consent NOT given!"); }
126                                    },[491]);
127                            }
128                    });
129            }
130         
131            function checkTCFapiConsent(){
132                var n_checks = 0;
133                var max_checks = 10;
134                waitForTCFapi(function() {
135                  // se trova la tfcapi...
136                  if (iabdebug) console.log('+++ tcfapi trovata!');
137                  // ma aggiungo il listener solo se la tcf e' pronta:
138                  // in caso aspetto 1 secondo al max.
139                 function checkTcfLoaded(stop) {
140                   n_checks++;
141                   if (iabdebug) console.log('check nr...', n_checks)
142                    __tcfapi('ping', 2, function(pingReturn) {
143                            if (pingReturn.cmpLoaded == true) {addTCFListener();} 
144                            else {
145                                    if (stop == 1) {  if (iabdebug) console.log('+++ tcf presente ma non caricata');} 
146                                    else {
147                                      if (n_checks < max_checks) {
148                                        setTimeout(checkTcfLoaded, 500);
149                                      } else {
150                                        setTimeout(checkTcfLoaded, 500, 1);
151                                      }
152                                    }
153                            }
154                    });
155                  }
156                  checkTcfLoaded();
157            }, function() {
158                    // se non trova la tcfapi...
159                    if (iabdebug) console.log('+++ tcfapi non trovata');
160                    if (infgen!="0") {
161                                 if (iabdebug) console.log('+++ infogen !=0 lancio ssaif');
162                                 ssaif();
163                    }
164                    });
165            }
166         checkTCFapiConsent();
167    }
168
169    var infb="0";
170    var infgen="7";
171
172    function check_custom_consent(nck,value,log){
173    var numcheck=50;
174    function checkconsentssa(){   
175       setTimeout(function(){
176          numcheck--;
177          var cbc;
178          cbc = rCk(nck);
179          if (cbc) {  
180                if (value) {
181                   if (cbc.indexOf(value) >-1){  ssaif(); if (log) console.log(log); return;}
182                   else {return;}
183                }
184                else{ ssaif(); if (log) console.log(log); return;}
185          }
186          else {
187                if(numcheck>0) {checkconsentssa();}
188                else{}
189          }
190       }, 1000);
191    }     
192    checkconsentssa();
193}
194
195
196
197
198
199    
200    if (infb!="0"){ ssaif();}
201    else {
202       var nzgdpr = ["AT","BE","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"];
203       var okgdpr=1;
204       for(var i=0;i<nzgdpr.length;i++){ if (nzgdpr[i]=="IT") {okgdpr=0;break;}} 
205       if (okgdpr){ssaif();}
206       else ssckconsentiab(infgen);       
207    }
208
209}
210if (vu_.indexOf("-1")>-1) {
211if (1){
212    var _consentCallback = function(found) {
213      var cmp="";
214      if (found.length){
215	      for (var i = 0; i < found.length; i++) { cmp+="$"+encodeURIComponent(found[i].name);}
216      	      var dcmp_=new Image(1,1); 
217              dcmp_.src="//s6.shinystat.com/cgi-bin/csa.cgi?USER=dcmp&PAG=16679516"+cmp+"&RM="+Math.round(Math.random()*2147483647);
218              dcmp_.onload=function(){return;} 
219      }
220    };
221    
222    (function(cb) {
223      var consentProviders = [];
224      consentProviders.push({
225        id: 1,
226        name: 'iubenda',
227        test: function() { return !!window._iub; }
228      });
229      consentProviders.push({
230        id: 2,
231        name: 'cookiebot',
232        test: function() { return window.CookieConsent && window.Cookiebot; }
233      });
234      consentProviders.push({
235        id: 3,
236        name: 'generic CookieConsent-compliant (like cookiebot)',
237        test: function() { return window.CookieConsent && !window.Cookiebot; }
238      });
239      consentProviders.push({
240        id: 4,
241        name: 'cookieconsent.insites.com',
242        test: function() { return !!window.cookieconsent; }
243      });
244      consentProviders.push({
245        id: 5,
246        name: 'civicuk',
247        test: function() { return window.CookieControl && !window.CookieConsent; }
248      });
249      consentProviders.push({
250        id: 6,
251        name: 'optanon by cookielaw.org',
252        test: function() { return !!window.Optanon; }
253      });
254      consentProviders.push({
255        id: 7,
256        name: 'cookie-script.com',
257        test: function() { return window.document.querySelectorAll('div[id^="cookiescript"]').length > 0; }
258      });
259      consentProviders.push({
260        id: 8,
261        name: 'generic cmp IAB guidelines compliant',
262        test: function() { return !!window.__cmp; }
263      });
264      
265      setTimeout(function() {
266        var found = [];
267        for (var i = 0; i < consentProviders.length; i++) {
268          if (consentProviders[i].test()) {
269            found.push({
270              id: consentProviders[i].id,
271              name: consentProviders[i].name
272            });
273          }
274        }
275        
276        if (cb) {
277          cb(found);
278        }
279      }, 1000);
280    })(_consentCallback);
281}
282
283}
284
285function ssuser_func(){return("tluc");}
286if (1){
287 var ssdcode_=document.createElement('script'); 
288 ssdcode_.type='text/javascript'; 
289 ssdcode_.id="_ssdcode";
290 ssdcode_.async=true;
291 ssdcode_.src="//codicebusiness.shinystat.com/dcode/dcode.min.js";
292 document.getElementsByTagName('head')[0].appendChild(ssdcode_);   
293}
294
295// https://codice.shinystat.com/cgi-bin/getcod.cgi?USER=tluc

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.