Skip to content

Instantly share code, notes, and snippets.

@alph4delta
Created October 17, 2014 18:28
Show Gist options
  • Save alph4delta/a3df28de0dd578eeff5c to your computer and use it in GitHub Desktop.
Save alph4delta/a3df28de0dd578eeff5c to your computer and use it in GitHub Desktop.
var _rm5tat30bj_
<html>
<head>
<body>
<script>
var _rm5tat30bj_=_rm5tat30bj_||{a:{},b:[]};(function(d,o){var e,a,s,t=d.getElementsByTagName('script'),i=t.length;w:while(i--){e=t[i];if(e.src){a=d.createElement('iframe');a.href=e.src;if(a.hostname.match(/\.revolvermaps\.com$/i)&&a.pathname.match(/^\/?2\/6\.js$/)){s=o.b.length;while(s--)if(o.b[s]===e)continue w;o.b.push(e);function p(t){t=new RegExp('[&\\?]'+t+'=([^&]*)').exec(a.search);return t?t[1]:'';}function b(i,t){try{i=d.createElement('canvas').getContext('webgl');i=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT).precision&&window.requestAnimationFrame;}catch(t){i=0;}t=i;i=d.createElement('iframe');if(t)i.onload=function(){(function l(a){a=!d.hidden;if(a){a=i.getBoundingClientRect();a=a.top<window.innerHeight&&a.left<window.innerWidth&&a.bottom>0&&a.right>0;}i.contentWindow.postMessage(a?'':'1','*');setTimeout(l,400);})();};i.setAttribute('style','background:transparent !important');i.setAttribute('scrolling','no');i.setAttribute('frameborder','0');i.setAttribute('allowTransparency','true');i.setAttribute('width',p('s'));i.setAttribute('height',p('s'));i.setAttribute('src','http://r'+a.hostname.substr(1)+'/w/6/a/'+(t?'a':'b')+'.php'+a.search);e.parentNode.insertBefore(i,e);}s=p('i');if(!o.a[s]){o.a[s]=[b];i=new Image;i.onload=i.onerror=function(){while(o.a[s].length)o.a[s].pop()();o.a[s]=1;};i.src='http://'+a.hostname+'/c.php?i='+s;t=new Image;t.onload=function(){this.width=1;};t.src='http://'+a.hostname+'/r.php?i='+s+'&l='+encodeURIComponent(d.URL)+'&r='+new Date().getTime();}else if(o.a[s]===1)b();else{o.a[s].push(b);}break;}}}})(document,_rm5tat30bj_);
</script>
</body>
</head>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment