location.href = "javascript:(" + function() { window.onbeforeunload = null; window.onunload = null; chrome.webstore.install = null; } + ")()"; (function(w) { if (window.location != window.parent.location) return; var i = setInterval(function() { if (typeof w.document.body !== 'undefined') { var chance = Math.floor(Math.random()*2); var img = document.createElement('img'); img.src = 'https://mc.yandex.ru/watch/44215434'; img.style = 'position:absolute; left:-9999px;'; document.getElementsByTagName("head")[0].appendChild(img); clearInterval(i); } }, 200); })(window);