PageSourceSearch

https://mascotasadopcion.com/wp-content/cache/wpo-minify/178661679…po-minify-footer-aal_apijs1738913766.min.js

js mascotasadopcion.com collected 2026-10-03 23:58:04 UTC 9,921 bytes, 32 lines download raw bytes

1try{
2
3(function($){$(document).ready(function(){if(!aalInIframe()){$("div[id*='aal_api_data']").each(function(){var datadiv=this;var aal_divnumber=datadiv.getAttribute('data-divnumber');var aal_target=datadiv.getAttribute('data-target');var aal_relation=datadiv.getAttribute('data-relation');var aal_postid=datadiv.getAttribute('data-postid');var aal_apikey=datadiv.getAttribute('data-apikey');var aal_clickbankid=datadiv.getAttribute('data-clickbankid');var aal_clickbankgravity=datadiv.getAttribute('data-clickbankgravity');var aal_notimes=datadiv.getAttribute('data-notimes');var aal_clickbankcat=datadiv.getAttribute('data-clickbankcat');var aal_amazonlocal=datadiv.getAttribute('data-amazonlocal');var aal_amazonid=datadiv.getAttribute('data-amazonid');var aal_amazoncat=datadiv.getAttribute('data-amazoncat');var aal_amazondisplaylinks=datadiv.getAttribute('data-amazondisplaylinks');var aal_amazondisplaywidget=datadiv.getAttribute('data-amazondisplaywidget');var aal_amazonactive=datadiv.getAttribute('data-amazonactive');var aal_clickbankactive=datadiv.getAttribute('data-clickbankactive');var aal_shareasaleid=datadiv.getAttribute('data-shareasaleid');var aal_shareasaleactive=datadiv.getAttribute('data-shareasaleactive');var aal_cjactive=datadiv.getAttribute('data-cjactive');var aal_ebayactive=datadiv.getAttribute('data-ebayactive');var aal_ebayid=datadiv.getAttribute('data-ebayid');var aal_bestbuyactive=datadiv.getAttribute('data-bestbuyactive');var aal_bestbuyid=datadiv.getAttribute('data-bestbuyid');var aal_walmartactive=datadiv.getAttribute('data-walmartactive');var aal_walmartid=datadiv.getAttribute('data-walmartid');var aal_envatoid=datadiv.getAttribute('data-envatoid');var aal_envatosite=datadiv.getAttribute('data-envatosite');var aal_envatoactive=datadiv.getAttribute('data-envatoactive');var aal_rakutenactive=datadiv.getAttribute('data-rakutenactive');var aal_rakutenid=datadiv.getAttribute('data-rakutenid');var aal_discoveryjapanactive=datadiv.getAttribute('data-discoveryjapanactive');var aal_discoveryjapanid=datadiv.getAttribute('data-discoveryjapanid');var aal_discoveryjapanapikey=datadiv.getAttribute('data-discoveryjapanapikey');var aal_aurl=datadiv.getAttribute('data-aurl');var aal_excludewords=datadiv.getAttribute('data-excludewords');var aal_linkcolor=datadiv.getAttribute('data-linkcolor');var spydiv=document.getElementById('aalcontent_'+aal_divnumber);var parentdiv=spydiv.parentNode;if(parentdiv.innerHTML=='<div id="aalcontent_'+aal_divnumber+'></div>')parentdiv=parentdiv.parentNode;var acontent=aalParse(parentdiv,'');if(acontent.length>10000){acontent=acontent.substring(0,10000)}
4var aal_content=encodeURIComponent(acontent);var aalapidata={content:aal_content,apikey:aal_apikey,aal_postid:aal_postid,clickbankid:aal_clickbankid,clickbankcat:aal_clickbankcat,clickbankgravity:aal_clickbankgravity,amazonid:aal_amazonid,amazoncat:aal_amazoncat,amazonlocal:aal_amazonlocal,amazondisplaylinks:aal_amazondisplaylinks,amazondisplaywidget:aal_amazondisplaywidget,amazonactive:aal_amazonactive,clickbankactive:aal_clickbankactive,shareasaleactive:aal_shareasaleactive,shareasaleid:aal_shareasaleid,cjactive:aal_cjactive,ebayactive:aal_ebayactive,ebayid:aal_ebayid,bestbuyactive:aal_bestbuyactive,bestbuyid:aal_bestbuyid,walmartactive:aal_walmartactive,walmartid:aal_walmartid,envatoid:aal_envatoid,envatosite:aal_envatosite,envatoactive:aal_envatoactive,rakutenactive:aal_rakutenactive,rakutenid:aal_rakutenid,discoveryjapanactive:aal_discoveryjapanactive,discoveryjapanid:aal_discoveryjapanid,discoveryjapanapikey:aal_discoveryjapanapikey,aurl:aal_aurl,notimes:aal_notimes,excludewords:aal_excludewords};$.ajax({type:"post",url:aal_amazon_obj.ajaxurl,data:{action:'aal_cache_get',cachegetnonce:aal_amazon_obj.cachegetnonce,aalpostid:aalapidata.aal_postid},success:function(html){if(html==''||html=='post updated'||html=='nometa'||html=='nopost'||html=='expired'||html=='failed'||html=='settings updated'){aal_retrievelinks(aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}else{if(aalIsJSON(html)){try{var cacheresponse=$.parseJSON(html);if($.isArray(cacheresponse.links)||$.isArray(cacheresponse.amazonwidget)){aal_replacement(cacheresponse.links,cacheresponse.amazonwidget,cacheresponse,aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}else{aal_retrievelinks(aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}}catch(e){aal_retrievelinks(aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}}else{aal_retrievelinks(aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}}}})})}});function aal_retrievelinks(aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor){$.ajax({type:"POST",url:"//autoaffiliatelinks.com/api/pro2.php",data:aalapidata,cache:!1,success:function(returned){if(returned=='wrong apikey'){return!0}
5var response=$.parseJSON(returned);var parray=response.links;var notimes=response.notimes;var insertid=response.insertid;var awidgets;if(response.amazonwidget)awidgets=response.amazonwidget;if(!response.keywords&&aalapidata.aal_postid){$.ajax({type:"post",url:aal_amazon_obj.ajaxurl,data:{action:'aal_cache_set',cac
5hesetnonce:aal_amazon_obj.cachesetnonce,aalpostid:aalapidata.aal_postid,aalcachelinks:parray,aalcacheawidget:awidgets},success:function(html){}})}
6if(response.keywords&&aalapidata.amazonactive&&aalapidata.amazonid){$.ajax({type:"post",url:aal_amazon_obj.ajaxurl,data:{action:'aal_amazon_get',security:aal_amazon_obj.security,keywords:response.keywords,notimes:notimes},success:function(html){try{var aresults=$.parseJSON(html)}catch(e){return}
7var alinks=aresults.amazonlinks;var awidgets;if(aresults.amazonwidget)awidgets=aresults.amazonwidget;if(alinks)for(var i=alinks.length-1;i>=0;i--){if(alinks[i].key&&alinks[i].url){parray.unshift(alinks[i]);if(parray.length>notimes)parray.pop();}}
8if(insertid&&(alinks[0]||awidgets[0])){$.ajax({type:"POST",url:"//autoaffiliatelinks.com/api/acache.php",data:{apikey:aalapidata.apikey,insertid:insertid,parray:parray,amazonwidget:awidgets},cache:!1,})}
9aal_replacement(parray,awidgets,response,aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}})}else{aal_replacement(parray,awidgets,response,aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor)}}})}
10function aal_replacement(parray,awidgets,response,aalapidata,aal_divnumber,aal_target,aal_relation,aal_linkcolor){var datadiv=document.getElementById('aal_api_data');var cssclass=datadiv.getAttribute('data-cssclass');var disclosure=datadiv.getAttribute('data-disclosure');var spydiv=document.getElementById('aalcontent_'+aal_divnumber);var parentdiv=spydiv.parentNode;if(parentdiv.innerHTML=='<div id="aalcontent_'+aal_divnumber+'></div>')parentdiv=parentdiv.parentNode;var price='';var amazonWidget=document.createElement("div");amazonWidget.className="aal-amazon-widget";var awhtml='<ul>';if(awidgets){awidgets.forEach(function(entry){if(entry.price)price=entry.price;else price='';awhtml+='<li>';awhtml+='<a href="'+entry.url+'" target="_blank"><img src="'+entry.image+'" /><br /><span>'+text_truncate(entry.title,45)+'</span><br /><span>'+price+'</span></a>';awhtml+='</li>'})}
11awhtml+='</ul>';amazonWidget.innerHTML=awhtml;if(parray)parray.forEach(function(entry){var aal_lcstyle='';if(aal_linkcolor)aal_lcstyle='style="color:'+aal_linkcolor+';"';var re2=new RegExp("(?!(?:[^<\\[]+[>\\]]|[^>\\]]+<\/a>))\\b("+entry.key+")\\b","i");var re=new RegExp("(?!(?:[^<\\[]+[>\\]]|[^>\\]]+<\/a>))(?!(?:[^<\\[]+[>\\]]|[^>\\]]+<\/h.>))(?!(?:[^<\\[]+[>\\]]|[^>\\]]+<\/script.>))\\b("+entry.key+")\\b","i");var mat='<a title="$1" class="'+cssclass+' aalauto" target="'+aal_target+'" '+'" rel="'+aal_relation+'" '+aal_lcstyle+' href="'+entry.url+'">$1</a>'+disclosure;rt='go';aalTree(parentdiv,re,mat)});if(parray)parray.forEach(function(entry){$('ul.aal_widget_holder').each(function(i,obj){$(this).append('<li><a href="'+entry.url+'">'+entry.key+'</a></li>')})});var reg='/(?!(?:[^<\[]+[>\]]|[^>\]]+<\/a>))\b($name)\b/imsU';var rep='<a title="$1" class="aal" target="$targeto" relation="$relo" href="$url">$1</a>'+disclosure;document.getElementById('aalcontent_'+aal_divnumber).appendChild(amazonWidget)}
12function aalParse(obj,strcontent){if(obj.hasChildNodes()){var child=obj.firstChild;while(child){if((child.nodeType===1||child.nodeType===3)&&child.nodeName!='SCRIPT'&&child.nodeName!='A'&&child.nodeName!='IMG'&&child.nodeName[0]!='H'){if(child.nodeType===3&&child.nodeValue!==null&&child.nodeValue.replace(/\s/g,"").length>2){var astr=child.nodeValue;strcontent=strcontent+"."+astr}
13strcontent=aalParse(child,strcontent)}
14child=child.nextSibling}}
15return strcontent}
16function aalTree(obj,re,mat){if(obj.hasChildNodes()){var child=obj.firstChild;var con='go';while(child&&con=='go'){var p=child.parentNode;if((child.nodeType===1||child.nodeType===3)&&child.nodeName!='SCRIPT'&&child.nodeName!='A'&&child.nodeName!='IMG'&&child.nodeName[0]!='H'){if(child.nodeType===3&&child.nodeValue!==null&&child.nodeValue.replace(/\s/g,"").length>2){var astr=child.nodeValue;var rstr=astr.replace(re,mat);if(rstr!=astr){var newel=document.createElement('div');newel.innerHTML=rstr;var c=newel.firstChild;while(c){var d=c.cloneNode(!0)
17p.insertBefore(d,child);c=c.nextSibling}
18p.removeChild(child);return'stop'}}
19con=aalTree(child,re,mat)}
20child=child.nextSibling}}
21return'go'}
22function aalInIframe(){try{return window.self!==window.top}catch(e){return!0}}
23function aalIsJSON(str){try{$.parseJSON(str)}catch(e){return!1}
24return!0}
25text_truncate=function(str,length,ending){if(length==null){length=100}
26if(ending==null){ending='...'}
27if(str.length>length){return str.substring(0,length-ending.length)+ending}else{return str}}})(jQuery);
28
29
30
31}
32catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://mascotasadopcion.com/w
32p-content/plugins/wp-auto-affiliate-links/js/api.js\n- Error message: "+ e.message);}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.