Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(a, v, k, D) {
- var c = {
- safeWindow: {},
- safeDocument: {},
- eval: eval,
- Context: {
- D: D
- },
- exec_fn: function(a, b, I) {
- m(new c.safeWindow.Function(a), b, I)
- },
- exec_csp: function(a, b, I) {
- var g = "__u__" + 19831207 * c.Context.M_r();
- c.Message.send("csp", {
- id: g,
- src: a
- });
- c.exec_script(g, b, I)
- },
- exec_script: function(a, b, c) {
- var g = window[a];
- delete window[a];
- m(g, b, c)
- }
- }, m, b, x, A, l;
- (function() {
- var d = function(a) {
- var b = function(b) {
- return m(a, b, m(x.wrappedJSObject, arguments, [1]))
- }
- ;
- b.wrappedJSObject = a;
- return b
- }
- , K = {
- F_a: m = function() {
- var b = a.Function.apply;
- return function(a, c, d) {
- a.apply === b ? c = a.apply(c, d) : (a[k] = b,
- c = a[k](c, d),
- delete a[k]);
- return c
- }
- }(),
- E_u: function(b, d) {
- var k = "__u__" + (19831206 * c.Context.M_r() + 1);
- if (c.exec_eval) {
- var m = k + "_";
- window[m] = d;
- var e = c.Context.F_c(c.Context.eval, window, "(function() {" + b + '}).apply(window["' + m + '"])');
- delete a[k];
- delete a[m];
- return e
- }
- c.exec_csp(b, d)
- },
- F_c: d(a.Function.call),
- F_b: b = d(a.Function.bind),
- F_tS: d(a.Function.toString),
- A_fE: d(a.Array.prototype.forEach),
- A_sl: x = d(a.Array.prototype.slice),
- A_sp: d(a.Array.prototype.splice),
- A_sh: d(a.Array.prototype.shift),
- A_j: d(a.Array.prototype.join),
- A_pu: d(a.Array.prototype.push),
- A_po: d(a.Array.prototype.pop),
- A_m: d(a.Array.prototype.map),
- A_c: d(a.Array.prototype.concat),
- A_f: d(a.Array.prototype.filter),
- A_iO: d(a.Array.prototype.indexOf),
- O_k: a.Object.keys,
- O_dP: a.Object.defineProperties,
- O_gOPN: a.Object.getOwnPropertyNames,
- O_gOPD: a.Object.getOwnPropertyDescriptor,
- O_dG: d(a.Object.prototype.__defineGetter__),
- O_dS: d(a.Object.prototype.__defineSetter__),
- O_tS: d(a.Object.prototype.toString),
- J_p: l = a.JSON.parse,
- J_s: A = a.JSON.stringify,
- c_l: a.console.log.bind(a.console),
- c_i: a.console.info.bind(a.console),
- c_w: a.console.warn.bind(a.console),
- c_e: a.console.error.bind(a.console),
- c_d: a.console.debug.bind(a.console),
- M_f: a.Math.floor,
- M_r: a.Math.random,
- M_m: a.Math.max,
- N_tS: d(a.Number.prototype.toString),
- R_rAAB: d(a.FileReader.prototype.readAsArrayBuffer),
- S_fCC: a.String.fromCharCode,
- S_m: d(a.String.prototype.match),
- S_su: d(a.String.prototype.substr),
- S_sp: d(a.String.prototype.split),
- S_r: d(a.String.prototype.replace),
- S_cCA: d(a.String.prototype.charCodeAt),
- S_tLC: d(a.String.prototype.toLowerCase),
- S_tUC: d(a.String.prototype.toUpperCase),
- D_pFS: d(a.DOMParser.prototype.parseFromString),
- X_o: d(a.XMLHttpRequest.prototype.open),
- X_sRH: d(a.XMLHttpRequest.prototype.setRequestHeader),
- X_oMT: d(a.XMLHttpRequest.prototype.overrideMimeType),
- X_gARH: d(a.XMLHttpRequest.prototype.getAllResponseHeaders),
- X_gRH: d(a.XMLHttpRequest.prototype.getResponseHeader),
- X_s: d(a.XMLHttpRequest.prototype.send),
- X_a: d(a.XMLHttpRequest.prototype.abort),
- D_n: a.Date.now
- };
- Object.keys(K).forEach(function(a) {
- c.Context[a] = K[a]
- });
- "String Array Object Number parseInt JSON Math Date Event MutationEvent console location Error Uint8Array Blob FileReader DOMParser XMLHttpRequest Function RegExp frames self top document location".split(" ").forEach(function(b) {
- c.safeWindow[b] = a[b]
- });
- "postMessage addEventListener removeEventListener setTimeout setInterval clearTimeout clearInterval alert prompt confirm encodeURIComponent decodeURIComponent encodeURI decodeURI escape unescape atob btoa close".split(" ").forEach(function(b) {
- var d = a[b];
- c.safeWindow[b] = function() {
- return m(d, a, arguments)
- }
- });
- c.createSafeDocument = function(a) {
- ["createEvent", "createElement", "dispatchEvent", "addEventListener", "removeEventListener"].forEach(function(b) {
- var d = a[b];
- c.safeDocument[b] = function() {
- return m(d, a, arguments)
- }
- })
- }
- ;
- c.createSafeDocument(v)
- })();
- try {
- c.Message = function(a, b) {
- var c = function() {
- return m(b.dispatchEvent, b, arguments)
- }
- , g = function() {
- return m(b.addEventListener, b, arguments)
- }
- , k = function() {
- return m(b.removeEventListener, b, arguments)
- }
- , v = function(a, c) {
- var d = b.createEvent("MutationEvent");
- d.initMutationEvent(a, !1, !1, null , null , null , A(c), d.ADDITION);
- return d
- }
- , e = function(a, b) {
- var c;
- a && (c = W[a]) && (c(b),
- delete W[a])
- }
- , x, D, J, O, ba = 1, W = {};
- return {
- init: function(a) {
- O || (O = a);
- J = "2C_" + O;
- D = "2P_" + O;
- g(D, function(a) {
- var b = l(a.attrName);
- "message.response" == b.m ? e(b.r, b.a) : x && x(b, b.r ? function(a) {
- a = v(J, {
- m: "message.response",
- a: a,
- r: b.r
- });
- c(a)
- }
- : function() {}
- )
- }, !1)
- },
- send: function(a, b, d) {
- if (d) {
- var e = ++ba;
- W[ba] = d;
- d = e
- } else
- d = null ;
- a = v(J, {
- m: a,
- a: b,
- r: d
- });
- c(a)
- },
- onMessage: {
- addListener: function(a) {
- x = a
- }
- },
- cleanup: function() {
- k(D, x, !1)
- }
- }
- }(c.safeWindow, c.safeDocument),
- c.Message.init(k),
- c.Message.onMessage.addListener(function(a) {
- if (c)
- if ("load" == a.m)
- c.Context.pageLoaded = !0;
- else if ("DOMContentLoaded" == a.m)
- c.Context.domContentLoaded = !0;
- else if ("cleanup" == a.m)
- c.Message.cleanup(),
- c = null ;
- else if ("next" == a.m)
- if (a.a.id)
- c.exec_script(a.a.id, c),
- c.exec_eval = !1;
- else {
- if (void 0 === c.exec_eval)
- try {
- c.exec_eval = b(c.eval, window)("true")
- } catch (k) {
- c.exec_eval = !1
- }
- c.exec_eval ? c.exec_fn(a.a.src, c) : c.exec_csp(a.a.src, c)
- }
- })
- } catch (d) {}
- })(window, document, "708377e9-7166-40f4-b401-f7cadf06efd2", undefined);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement