D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
sadaunjx
/
forsa2you.com
/
wp-content
/
plugins
/
ad-inserter
/
includes
/
js
/
Filename :
ai-ads.jq.min.js
back
Copy
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var c="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return c?c.call(a):$jscomp.arrayIterator(a)};var adsense_ad_names=[],ai_preview_window="undefined"!==typeof ai_preview; function ai_process_adsense_ad(a){a=jQuery(a);var c=a.attr("width"),e=a.attr("height"),b=getAllUrlParams(a.attr("src"));if("undefined"!==typeof b.client){var g=b.client.replace("ca-",""),d=b.slotname,h=b.ifi;b=jQuery('<div class="ai-debug-ad-overlay"></div>');var f="";"undefined"!==typeof d?(f="","undefined"!==typeof adsense_ad_names.publisher_id&&adsense_ad_names.publisher_id==g&&"undefined"!==typeof adsense_ad_names[d]&&(f='<div class="ai-info ai-info-2">'+adsense_ad_names[d]+"</div>"),f='<div class="ai-info ai-info-1">'+ d+"</div>"+f):0!=a.closest("div.google-auto-placed").length?(b.addClass("ai-auto-ads"),f='<div class="ai-info ai-info-1">Auto ads</div>'):b.addClass("ai-no-slot");c=jQuery('<div class="ai-debug-ad-info"><div class="ai-info ai-info-1">AdSense #'+h+'</div><div class="ai-info ai-info-2">'+c+"x"+e+"</div>"+f+"</div>");a.after(c);ai_preview_window||a.after(b)}}function ai_process_adsense_ads(){jQuery('ins > ins > iframe[src*="google"]:visible').each(function(){ai_process_adsense_ad(this)})} jQuery(document).ready(function(a){a.post("AI_AJAXURL",{action:"ai_ajax",ai_check:"AI_NONCE","adsense-ad-units":{ai:1}}).done(function(c){if(""!=c)try{adsense_ad_names=JSON.parse(c)}catch(e){}}).fail(function(c,e,b){}).always(function(c){})}); if(!ai_preview_window){var targetNode=document.querySelector("body"),config={attributes:!1,childList:!0,subtree:!0},ai_process_adsense_callback=function(a,c){for(var e=$jscomp.makeIterator(a),b=e.next();!b.done;b=e.next())b=b.value,"childList"===b.type&&b.addedNodes.length&&"IFRAME"==b.addedNodes[0].tagName&&null!=b.addedNodes[0].getAttribute("width")&&null!=b.addedNodes[0].getAttribute("height")&&b.addedNodes[0].closest(".adsbygoogle")&&ai_process_adsense_ad(b.addedNodes[0])},observer=new MutationObserver(ai_process_adsense_callback); observer.observe(targetNode,config)}function getAllUrlParams(a){var c=a?a.split("?")[1]:window.location.search.slice(1);a={};if(c){c=c.split("#")[0];c=c.split("&");for(var e=0;e<c.length;e++){var b=c[e].split("="),g=void 0,d=b[0].replace(/\[\d*\]/,function(h){g=h.slice(1,-1);return""});b="undefined"===typeof b[1]?"":b[1];d=d.toLowerCase();b=b.toLowerCase();a[d]?("string"===typeof a[d]&&(a[d]=[a[d]]),"undefined"===typeof g?a[d].push(b):a[d][g]=b):a[d]=b}}return a};