Skip to content

Instantly share code, notes, and snippets.

@emilio

emilio/ck.html Secret

Created March 21, 2024 11:31
Show Gist options
  • Save emilio/8c65d7d4c04f2161d7eee5417702f841 to your computer and use it in GitHub Desktop.
Save emilio/8c65d7d4c04f2161d7eee5417702f841 to your computer and use it in GitHub Desktop.
bing.com click tracking page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="referrer" content="origin-when-cross-origin">
<script>//<![CDATA[
var s = false;
function l() {
setTimeout(f, 10000);
if (document.referrer) {
try {
var pm = /(^|&|\?)px=([^&]*)(&|$)/i;
var px = window.location.href.match(pm);
var rs = document.referrer;
if (px != null) {
if (rs.match(pm))
rs = rs.replace(pm, "$1px=" + px[2] + "$3");
else if (rs.indexOf("?") != -1)
rs = rs + "&px=" + px[2];
else
rs = rs + "?px=" + px[2];
}
history.replaceState({}, "Bing", rs);
window.addEventListener("pageshow", function(e) { if (e.persisted || (typeof window.performance != "undefined" && window.performance.navigation.type === 2)) window.location.reload(); });
s = true;
setTimeout(r, 10);
return;
} catch (e) {}
}
r();
}
function r() {
var u = "https://github.com/rust-lang/rust";
if (s)
window.location.href = u;
else
window.location.replace(u);
}
function f() {
document.getElementById("fb").style.display = "block";
}
//]]>
</script>
</head>
<body onload="l()">
<div id="fb" style="display: none">
Please <a href="https://www.bing.com/ck/a?!&&p=9660e3d9367e1eefJmltdHM9MTcxMDk3OTIwMCZpZ3VpZD0yMjhhMTdhNi1kNWQyLTZkYjAtMDE2MC0wM2VmZDQxNTZjZDAmaW5zaWQ9NTQ3NA&ptn=3&ver=2&hsh=3&fclid=228a17a6-d5d2-6db0-0160-03efd4156cd0&u=a1aHR0cHM6Ly9naXRodWIuY29tL3J1c3QtbGFuZy9ydXN0&ntb=F">click here</a> if the page does not redirect automatically ...
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment