Advertisement
Guest User

Untitled

a guest
Jul 9th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.88 KB | None | 0 0
  1. try {
  2. var AG_onLoad = function(func) {
  3. if (document.readyState === "complete" || document.readyState === "interactive") func();
  4. else if (document.addEventListener) document.addEventListener("DOMContentLoaded", func);
  5. else if (document.attachEvent) document.attachEvent("DOMContentLoaded", func)
  6. };
  7. var AG_removeElementById = function(id) {
  8. var element = document.getElementById(id);
  9. if (element && element.parentNode) {
  10. element.parentNode.removeChild(element);
  11. }
  12. };
  13. var AG_removeElementBySelector = function(selector) {
  14. if (!document.querySelectorAll) {
  15. return;
  16. }
  17. var nodes = document.querySelectorAll(selector);
  18. if (nodes) {
  19. for (var i = 0; i < nodes.length; i++) {
  20. if (nodes[i] && nodes[i].parentNode) {
  21. nodes[i].parentNode.removeChild(nodes[i]);
  22. }
  23. }
  24. }
  25. };
  26. var AG_each = function(selector, fn) {
  27. if (!document.querySelectorAll) return;
  28. var elements = document.querySelectorAll(selector);
  29. for (var i = 0; i < elements.length; i++) {
  30. fn(elements[i]);
  31. };
  32. };
  33. var AG_removeParent = function(el, fn) {
  34. while (el && el.parentNode) {
  35. if (fn(el)) {
  36. el.parentNode.removeChild(el);
  37. return;
  38. }
  39. el = el.parentNode;
  40. }
  41. };
  42. var AG_removeCookie = function(a) {
  43. var e = /./;
  44. /^\/.+\/$/.test(a) ? e = new RegExp(a.slice(1, -1)) : "" !== a && (e = new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")));
  45. a = function() {
  46. for (var a = document.cookie.split(";"), g = a.length; g--;) {
  47. cookieStr = a[g];
  48. var d = cookieStr.indexOf("=");
  49. if (-1 !== d && (d = cookieStr.slice(0, d).trim(), e.test(d)))
  50. for (var h = document.location.hostname.split("."), f = 0; f < h.length - 1; f++) {
  51. var b = h.slice(f).join(".");
  52. if (b) {
  53. var c = d + "=",
  54. k = "; domain=" + b;
  55. b = "; domain=." + b;
  56. document.cookie = c + "; expires=Thu, 01 Jan 1970 00:00:00 GMT";
  57. document.cookie = c + k + "; expires=Thu, 01 Jan 1970 00:00:00 GMT";
  58. document.cookie = c + b + "; expires=Thu, 01 Jan 1970 00:00:00 GMT";
  59. document.cookie = c + "; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";
  60. document.cookie = c + k + "; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";
  61. document.cookie = c + b + "; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"
  62. }
  63. }
  64. }
  65. };
  66. a();
  67. window.addEventListener("beforeunload", a)
  68. };
  69. var AG_defineProperty = function() {
  70. var p, q = Object.defineProperty;
  71. if ("function" == typeof WeakMap) p = WeakMap;
  72. else {
  73. var r = 0,
  74. t = function() {
  75. this.a = (r += Math.random()).toString()
  76. };
  77. t.prototype.set = function(a, b) {
  78. var d = a[this.a];
  79. d && d[0] === a ? d[1] = b : q(a, this.a, {
  80. value: [a, b],
  81. writable: !0
  82. });
  83. return this
  84. };
  85. t.prototype.get = function(a) {
  86. var b;
  87. return (b = a[this.a]) && b[0] === a ? b[1] : void 0
  88. };
  89. t.prototype.has = function(a) {
  90. var b = a[this.a];
  91. return b ? b[0] === a : !1
  92. };
  93. p = t
  94. }
  95.  
  96. function u(a) {
  97. this.b = a;
  98. this.h = Object.create(null)
  99. }
  100.  
  101. function v(a, b, d, e) {
  102. this.a = a;
  103. this.i = b;
  104. this.c = d;
  105. this.f = e
  106. }
  107.  
  108. function w() {
  109. this.g = /^([^\\\.]|\\.)*?\./;
  110. this.j = /\\(.)/g;
  111. this.a = new p
  112. }
  113.  
  114. function x(a, b) {
  115. var d = b.f;
  116. if (d && !("beforeGet" in d || "beforeSet" in d)) return z(d);
  117. var e = {
  118. get: function() {
  119. var c = b.f;
  120. c && c.beforeGet && c.beforeGet.call(this, b.a.b);
  121. a: if (c = b.g) c = A(c) ? c.value : c.get ? c.get.call(this) : void 0;
  122. else {
  123. c = b.a.b;
  124. if (b.i in c && (c = B(c), null !== c)) {
  125. var d = C.call(c, b.i);
  126. c = d ? d.call(this) : c[b.i];
  127. break a
  128. }
  129. c = void 0
  130. }(this === b.a.b || D.call(b.a.b, this)) && E(a, c, b.c);
  131. return c
  132. },
  133. set: function(c) {
  134. if (this === b.a.b || D.call(b.a.b, this)) {
  135. b.f && b.f.beforeSet && (c = b.f.beforeSet.call(this, c, this));
  136. var d = b.g;
  137. d && A(d) && d.value === c ? c = !0 : (d = F(b, c, this), G(c) && (c = H(a, c), I(a, c, b.c)), c = d)
  138. } else c = F(b, c, this);
  139. return c
  140. }
  141. };
  142. d && J(d, e, K);
  143. return e
  144. }
  145.  
  146. function I(a, b, d) {
  147. for (var e in d.h) {
  148. var c = d.h[e];
  149. if (b.h[e]) {
  150. var h = a,
  151. g = b.h[e],
  152. k = c;
  153. !k.f || g.f || "undefined" === typeof g.a.b || g.g || (g.g = z(k.f));
  154. g.c && k.c && g.c !== k.c && I(h, g.c, k.c)
  155. } else {
  156. g = h = void 0;
  157. k = a;
  158. var f = b,
  159. l = c.i,
  160. m = "undefined" !== typeof f.b,
  161. y = !1;
  162. m && (g = L(f.b, l)) && !g.configurable && (y = !0, h = f.b[l]);
  163. var n = y ? H(k, h) : new u(c.c.b);
  164. I(k, n, c.c);
  165. n = new v(f, l, n, c.f);
  166. f.h[l] = n;
  167. m && (n.g = g, m = x(k, n), y ? E(k, h, c.c) : (q(f.b, l, m), g && A(g) && (M(m, g.value, f.b), E(k, g.value, c.c))))
  168. }
  169. }
  170. }
  171.  
  172. function E(a, b, d) {
  173. G(b) && (b = H(a, b), I(a, b, d))
  174. }
  175.  
  176. function F(a, b, d) {
  177. var e = a.g;
  178. if (!e) {
  179. e = B(a.a.b);
  180. if (null !== e && (e = N.call(e, a.i))) return e.call(d, b);
  181. if (!O(a.a.b)) return !1;
  182. a.g = {
  183. value: b,
  184. configurable: !0,
  185. writable: !0,
  186. enumerable: !0
  187. };
  188. return !0
  189. }
  190. return M(e, b, d)
  191. }
  192.  
  193. function H(a, b) {
  194. var d = a.a.get(b);
  195. d || (d = new u(b), a.a.set(b, d));
  196. return d
  197. }
  198.  
  199. function A(a) {
  200. return "undefined" !== typeof a.writable
  201. }
  202.  
  203. function J(a, b, d) {
  204. for (var e = 0, c = d.length; e < c; e++) {
  205. var h = d[e];
  206. h in a && (b[h] = a[h])
  207. }
  208. }
  209.  
  210. function z(a) {
  211. if (a) {
  212. var b = {};
  213. J(a, b, P);
  214. return b
  215. }
  216. }
  217.  
  218. function M(a, b, d) {
  219. if (A(a)) return a.writable ? (a.value = b, !0) : !1;
  220. if (!a.set) return !1;
  221. a.set.call(d, b);
  222. return !0
  223. }
  224. var P = "configurable enumerable value get set writable".split(" "),
  225. K = P.slice(0, 2),
  226. L = Object.getOwnPropertyDescriptor,
  227. O = Object.isExtensible,
  228. B = Object.getPrototypeOf,
  229. D = Object.prototype.isPrototypeOf,
  230. C = Object.prototype.__lookupGetter__ || function(a) {
  231. return (a = Q(this, a)) && a.get ? a.get : void 0
  232. },
  233. N = Object.prototype.__lookupSetter__ || function(a) {
  234. return (a = Q(this, a)) && a.set ? a.set : void 0
  235. };
  236.  
  237. function Q(a, b) {
  238. if (b in a) {
  239. for (; !w.hasOwnProperty.call(a, b);) a = B(a);
  240. return L(a, b)
  241. }
  242. }
  243.  
  244. function G(a) {
  245. var b = typeof a;
  246. return "function" === b || "object" === b && null !== a ? !0 : !1
  247. }
  248. var R;
  249. return function(a, b, d) {
  250. R || (R = new w);
  251. var e = R;
  252. d = d || window;
  253. var c = new u;
  254. a += ".";
  255. var h = c || new u;
  256. for (var g = e.g, k = e.j, f, l, m; a;) {
  257. f = g.exec(a);
  258. if (null === f) throw 1;
  259. f = f[0].length;
  260. l = a.slice(0, f - 1).replace(k, "$1");
  261. a = a.slice(f);
  262. (f = h.h[l]) ? m = f.c: (m = new u, f = new v(h, l, m), h.h[l] = f);
  263. h = m
  264. }
  265. if (!f) throw 1;
  266. a = f;
  267. a.f = b;
  268. E(e, d, c)
  269. };
  270. }();
  271. var AG_abortOnPropertyWrite = function(a, b) {
  272. var c = Math.random().toString(36).substr(2, 8);
  273. AG_defineProperty(a, {
  274. beforeSet: function() {
  275. b && console.warn("AdGuard aborted property write: " + a);
  276. throw new ReferenceError(c);
  277. }
  278. });
  279. var d = window.onerror;
  280. window.onerror = function(e) {
  281. if ("string" === typeof e && -1 !== e.indexOf(c)) return b && console.warn("AdGuard has caught window.onerror: " + a), !0;
  282. if (d instanceof Function) return d.apply(this, arguments)
  283. }
  284. };
  285. var AG_abortOnPropertyRead = function(a, b) {
  286. var c = Math.random().toString(36).substr(2, 8);
  287. AG_defineProperty(a, {
  288. beforeGet: function() {
  289. b && console.warn("AdGuard aborted property read: " + a);
  290. throw new ReferenceError(c);
  291. }
  292. });
  293. var d = window.onerror;
  294. window.onerror = function(e) {
  295. if ("string" === typeof e && -1 !== e.indexOf(c)) return b && console.warn("AdGuard has caught window.onerror: " + a), !0;
  296. if (d instanceof Function) return d.apply(this, arguments)
  297. }
  298. };
  299. var AG_abortInlineScript = function(g, b, c) {
  300. var d = function() {
  301. if ("currentScript" in document) return document.currentScript;
  302. var a = document.getElementsByTagName("script");
  303. return a[a.length - 1]
  304. },
  305. e = Math.random().toString(36).substr(2, 8),
  306. h = d();
  307. AG_defineProperty(b, {
  308. beforeGet: function() {
  309. var a = d();
  310. if (a instanceof HTMLScriptElement && a !== h && "" === a.src && g.test(a.textContent)) throw c && console.warn("AdGuard aborted execution of an inline script"), new ReferenceError(e);
  311. }
  312. });
  313. var f = window.onerror;
  314. window.onerror = function(a) {
  315. if ("string" === typeof a && -1 !== a.indexOf(e)) return c && console.warn("AdGuard has caught window.onerror: " + b), !0;
  316. if (f instanceof Function) return f.apply(this, arguments)
  317. }
  318. };
  319. var AG_setConstant = function(e, a) {
  320. if ("undefined" === a) a = void 0;
  321. else if ("false" === a) a = !1;
  322. else if ("true" === a) a = !0;
  323. else if ("noopFunc" === a) a = function() {};
  324. else if ("trueFunc" === a) a = function() {
  325. return !0
  326. };
  327. else if ("falseFunc" === a) a = function() {
  328. return !1
  329. };
  330. else if (/^\d+$/.test(a)) {
  331. if (a = parseFloat(a), isNaN(a) || 32767 < Math.abs(a)) return
  332. } else return;
  333. var b = !1;
  334. AG_defineProperty(e, {
  335. get: function() {
  336. return a
  337. },
  338. set: function(c) {
  339. if (b) var d = !0;
  340. else void 0 !== c && void 0 !== a && typeof c !== typeof a && (b = !0), d = b;
  341. d && (a = c)
  342. }
  343. })
  344. };
  345. (function() {
  346. function d(a, c) {
  347. if (a instanceof Array && "string" === typeof a[0] && (0 <= a[0].indexOf("\x43\x72\x79\x70\x74" + "\x6F\x6E\x69\x67\x68\x74") || 0 <= a[0].indexOf("\x5F\x63\x72\x79\x70\x74\x6F\x6E\x69\x67" + "\x68\x74\x5F\x63\x72\x65\x61\x74\x65"))) {
  348. var b = null;
  349. "undefined" === typeof sessionStorage ? b = !1 : "1" === sessionStorage.getItem("__u7c4mop23r23239") ? b = !0 : "0" === sessionStorage.getItem("__u7c4mop23r23239") && (b = !1);
  350. if (null == b) {
  351. b = window.confirm(g("confirm.miner"));
  352. try {
  353. if (b) sessionStorage.setItem("__u7c4mop23r23239", "1");
  354. else if (sessionStorage.setItem("__u7c4mop23r23239", "0"), window.confirm(g("confirm.report"))) {
  355. var d = window.location.hostname,
  356. f = encodeURIComponent(document.referrer);
  357. (new Image).src = "https://crypto.adguard.com/report.png?host=" + d + "&ref=" + f
  358. }
  359. } catch (k) {}
  360. }
  361. if (!b) return new e(["/* Suppressed */"], c)
  362. }
  363. return new e(a, c)
  364. }
  365. if ("function" === typeof Blob) {
  366. var f = {
  367. "confirm.miner": 'AdGuard has detected an attempt by this website to use your browser as a crypto-currency miner. It can create significant CPU load. Press "Cancel" to prevent it.',
  368. "confirm.report": 'We are collecting all the information about the websites engaged in hidden crypto-mining. Press "OK" to send an automatic report about this website.'
  369. },
  370. h = {
  371. "confirm.miner": 'AdGuard \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0434\u043b\u044f \u0434\u043e\u0431\u044b\u0447\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u043c\u0435\u0442\u043d\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 "\u041e\u0442\u043c\u0435\u043d\u0430", \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u043e\u043f\u044b\u0442\u043a\u0443.',
  372. "confirm.report": '\u041c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u0441\u0430\u0439\u0442\u0430\u0445, \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0441\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 "\u041e\u041a" \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0441\u0430\u0439\u0442\u0435.'
  373. },
  374. g = function(a) {
  375. var c = navigator.language;
  376. return c && 0 === c.indexOf("ru") ? h[a] : f[a]
  377. },
  378. e = Blob;
  379. d.prototype = e.prototype;
  380. window.Blob = d
  381. }
  382. })();
  383. window.uabInject = function() {};
  384. window.uabpInject = function() {};
  385. } catch (ex) {
  386. console.error('Error executing AG js: ' + ex);
  387. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement