daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pageOptions = {
  2.     'pubId' : 'dp-teaminternet01',
  3.     'resultsPageBaseUrl' : '//' + location.host + '/?caf',
  4.     'fontFamily' : 'arial',
  5.     'optimizeTerms' : true,
  6.     'maxTermLength' : 40,
  7.     'adtest' : true,
  8.     'clicktrackUrl' : 'http://parkingcrew.net/track.php?',
  9.     'attributionText' : 'Ads',
  10.     'colorAttribution' : '#b7b7b7',
  11.     'fontSizeAttribution' : 16,
  12.     'attributionBold': false,
  13.     'rolloverLinkBold' : false,
  14.     'fontFamilyAttribution' : 'arial',
  15.     'adLoadedCallback' : function(container, adsLoaded) {
  16.         if(!adsLoaded) {
  17.             var ele = document.getElementById(container).getElementsByTagName('iframe')[0];
  18.             var vars = JSON.parse( ele.name.substr( ele.id.length + 1 ) );
  19.             if( typeof vars[ele.id].type == "string" && vars[ele.id].type == "relatedsearch" ) {
  20.                 relatedFallback( (function(){relatedCallback(vars[ele.id]);}) );
  21.             }
  22.         }
  23.     },
  24.     'pageLoadedCallback' : function(requestAccepted, status) {
  25.         document.body.style.visibility = 'visible';
  26.  
  27.         if(status.errorcode && !status.error_code) {
  28.             status.error_code = status.errorcode;
  29.         }
  30.  
  31.         if (!requestAccepted) {
  32.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=answercheck&answer=rejected&uid=" + encodeURIComponent(uniqueTrackingID));
  33.         } else if (status.error_code) {
  34.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=answercheck&answer=error_" + encodeURIComponent(status.error_code) + "&uid=" + encodeURIComponent(uniqueTrackingID));
  35.         } else {
  36.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=answercheck&answer=yes&uid=" + encodeURIComponent(uniqueTrackingID));
  37.         }
  38.  
  39.         if(status.feed) {
  40.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=feed&feed=" + encodeURIComponent(status.feed) + "&uid=" + encodeURIComponent(uniqueTrackingID));
  41.         }
  42.  
  43.         if(status.faillisted === true || status.faillisted == "true" || status.blocked === true || status.blocked == "true") {
  44.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=block&reason=other&uid=" + encodeURIComponent(uniqueTrackingID));
  45.         }
  46.  
  47.         if(status.error_code) {
  48.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=errorcode&code=" + encodeURIComponent(status.error_code) + "&uid=" + encodeURIComponent(uniqueTrackingID));
  49.         }
  50.  
  51.         if(status.needsreview === true || status.needsreview == "true") {
  52.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=needsreview&uid=" + encodeURIComponent(uniqueTrackingID));
  53.         }
  54.  
  55.         if( (status.adult === true || status.adult == "true") && !isAdult) {
  56.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=adult&uid=" + encodeURIComponent(uniqueTrackingID));
  57.         } else if( (status.adult === false || status.adult == "false") && isAdult) {
  58.             ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&caf=1&toggle=nonadult&uid=" + encodeURIComponent(uniqueTrackingID));
  59.         }
  60.     }
  61. };
  62.  
  63. var x = function(obj1, obj2) {
  64.     if(typeof obj1 != "object") {
  65.         obj1 = {};
  66.     }
  67.     for(var key in obj2) {
  68.         obj1[key] = obj2[key];
  69.     }
  70.     return obj1;
  71. };
  72.  
  73. var y = function(name) {
  74.     var pattern = "[\?&]"+name+"=([^&#]*)";
  75.     var regex = new RegExp(pattern);
  76.     var res = regex.exec(document.location.href);
  77.     if(res === null) {
  78.         return "";
  79.     }
  80.     return decodeURIComponent(res[1]);
  81. };
  82.  
  83. var is_afs = y('afdToken') !== '';
  84. var search = y('query');
  85.  
  86. function getXMLhttp() {
  87.     var xmlHttp = null;
  88.     try {
  89.         xmlHttp = new XMLHttpRequest();
  90.     } catch (e) {
  91.         try {
  92.             xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
  93.         } catch (ex) {
  94.             try {
  95.                 xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  96.             } catch (exc) {}
  97.         }
  98.     }
  99.     return xmlHttp;
  100. }
  101.  
  102. function ajaxQuery(url) {
  103.     if (adtest == 'on') return false;
  104.     xmlHttp = getXMLhttp();
  105.     if (!xmlHttp) return ajaxBackfill(url);
  106.     try {
  107.         xmlHttp.open("GET", url, false);
  108.         return xmlHttp.send(null);
  109.     } catch (e) {
  110.         return ajaxBackfill(url);
  111.     }
  112. }
  113.  
  114. function ajaxBackfill(url) {
  115.     if(adtest == 'on') return false;
  116.     if(url.indexOf("&toggle=browserjs") > -1) return false;
  117.     try {
  118.         var img = document.createElement('img');
  119.         img.style.visibility = 'hidden';
  120.         img.style.width = '1px';
  121.         img.style.height = '1px';
  122.         img.src = url + "&_t=" + new Date().getTime();
  123.         document.body.appendChild(img);
  124.     } catch (e) {}
  125. }
  126.  
  127. if(typeof adtest == "undefined" || adtest != "on") {
  128.     ajaxQuery(scriptPath + "/track.php?domain=" + encodeURIComponent(domain) + "&toggle=browserjs&uid=" + encodeURIComponent(uniqueTrackingID));
  129. }
  130.  
  131. if(typeof caf_loaded !== "undefined") {
  132.     caf_loaded();
  133. }
  134.  
  135. pcrewJSsync(regTemplate);
  136.  
  137. if(is_afs) {
  138.     x2c = false;
  139. }
  140.  
  141. function onPageLoadEvent() {
  142.     var c1 = document.getElementById("oneclick");
  143.     var c2 = document.getElementById("twoclick");
  144.  
  145.     var call = function(){};
  146.  
  147.     if(x2c && typeof caf_twoclick_call != "undefined") {
  148.         c1.parentNode.removeChild(c1);
  149.         c2.style.display = "block";
  150.  
  151.         call = caf_twoclick_call;
  152.     } else if(typeof caf_oneclick_call != "undefined") {
  153.         c2.parentNode.removeChild(c2);
  154.         c1.style.display = "block";
  155.  
  156.         call = caf_oneclick_call;
  157.     }
  158.  
  159.     if( (el = document.getElementById("domaintitle")) ) {
  160.         el.innerHTML = "<a href='/'>" + domain_utf8 + "</a>";
  161.     }
  162.  
  163.     if( (el = document.getElementById("sidebar")) ) {
  164.         el.innerHTML = "<div id='related_holder'></div><div id='searchbox_holder'></div>";
  165.     }
  166.  
  167.     if( typeof domain_utf8 == "string") {
  168.         document.title = domain_utf8;
  169.     }
  170.  
  171.     call();
  172. }
  173.  
  174. if (window.addEventListener) {
  175.     window.addEventListener("load", onPageLoadEvent, false);
  176. } else {
  177.     window.attachEvent("onload", onPageLoadEvent);
  178. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top