Skip to content

Instantly share code, notes, and snippets.

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 ghostwords/d3685dc39f7e67dddf1edf2614beb6fc to your computer and use it in GitHub Desktop.
Save ghostwords/d3685dc39f7e67dddf1edf2614beb6fc to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Privacy Badger async navigation-related tracker misattribution test page</title>
<script type="text/javascript">
let reload_count = 0;
if (sessionStorage.getItem("reload_count")) {
reload_count = +sessionStorage.getItem("reload_count");
}
if (reload_count < 25) {
sessionStorage.setItem("reload_count", reload_count + 1);
setTimeout(function () {
window.location.reload();
}, reload_count * 3);
} else {
sessionStorage.clear();
window.DONE_RELOADING = true;
}
</script>
</head>
<body>
<h2>This is a test page for https://github.com/EFForg/privacybadger/pull/1403</h2>
<img src="https://raw.githubusercontent.com/EFForg/privacybadger/ec90ae2504e52e448b10fb85f4f8bd0d8b1f679e/src/icons/badger-16.png">
<iframe src="https://gistcdn.githack.com/gunesacar/43e2ad2b76fa5a7f7c57/raw/44e7303338386514f1f5bb4166c8fd24a92e97fe/set_ls.html"></iframe>
<script type="text/javascript">
// bypass cache
let img = document.getElementsByTagName('img')[0];
img.src = img.src + '?' + Math.random();
//let iframe = document.getElementsByTagName('iframe')[0];
//iframe.src = iframe.src + '?' + Math.random();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment