Skip to content

Instantly share code, notes, and snippets.

@tobiasschulz
Created October 5, 2015 16:12
Show Gist options
  • Save tobiasschulz/5e3742906b42dba51e3e to your computer and use it in GitHub Desktop.
Save tobiasschulz/5e3742906b42dba51e3e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html><head>
</head><body><noscript><meta http-equiv="refresh" content="1; URl='/in/?_BC=10110894084799864323964928,0'"></noscript><span style="color:#888;">&#8987;</span><iframe id="iframe" style="display: none;" sandbox="allow-same-origin"></iframe><script>
function go(flash, w, h, time, frame, ips) {
window.location = '/in/?_BC=10110894084799864323964928,' + time + "," + frame + "," + w + "," + h + "," + flash + "," + ips;
}
function flash() {
if (navigator.plugins && navigator.plugins.length) {
var type = 'application/x-shockwave-flash';
var mimeTypes = navigator.mimeTypes;
return mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin;
} else {
var sn = "ShockwaveFlash.ShockwaveFlash";
try {
var g = new ActiveXObject(sn + ".7");
return true;
} catch (h) {
try {
g = new ActiveXObject(sn + ".6");
return true;
} catch (i) {
try {
g = new ActiveXObject(sn);
return true
} catch (j) {
return false;
}
}
}
}
}
function in_iframe() {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
var dt = new Date();
var unix = Math.round(dt.getTime() / 1000 + 62167219200 - dt.getTimezoneOffset() * 60); // +new Date().getTimezoneOffset() * -1 * 60;
var frame = in_iframe() ? 1 : 0;
var w = window, d = document, e = d.documentElement, g = d.getElementsByTagName('body')[0], vpx = w.innerWidth || e.clientWidth || g.clientWidth, vpy = w.innerHeight || e.clientHeight || g.clientHeight;
var fl = flash() ? 1 : 0;
go(fl, vpx, vpy, unix, frame, '');</script></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment