← Back
Editing: ai-filter.min.js
if("undefined"!=typeof ai_filter){function m(a,g){if(g){for(a=a.previousElementSibling;a&&!a.matches(g);)a=a.previousElementSibling;return a}return a.previousElementSibling}function q(){return(new Date).getTime()+"-"+Math.round(1E5*Math.random())}function p(a){a.forEach((b,c)=>{b.classList.remove("ai-filter-check")});var g=!1;if(""!=ai_filter_hook_data){try{var h=JSON.parse(ai_filter_hook_data)}catch(b){return}null!=h&&a.forEach((b,c)=>{c=b.closest("div."+ai_block_class_def);var e=parseInt(b.dataset.block); g=!1;"undefined"!==typeof h&&(h.includes("*")?(g=!0,h.includes(-e)&&(g=!1)):h.includes(e)&&(g=!0));b.style.visibility="";b.style.position="none";b.style.width="";b.style.height="";var d=b.style.zIndex="";e=JSON.parse(ai_filter_hook_comments);if("string"==typeof e)d=e;else if("object"==typeof e){d="";for(const [k,n]of Object.entries(e))d+=`${k}: ${n}\n`}else d=ai_filter_hook_comments;"undefined"!=typeof ai_front&&(e=m(b,".ai-debug-bar"),null!=e&&(e.querySelectorAll(".ai-status").forEach((k,n)=>{k.textContent= g?ai_front.visible:ai_front.hidden}),e.querySelectorAll(".ai-filter-data").forEach((k,n)=>{k.setAttribute("title",d)})));if(g){if(null!=c&&(c.style.visibility="",c.classList.contains("ai-remove-position")&&(c.style.position="")),"code"in b.dataset){var f=b64d(b.dataset.code);e=document.createElement("div");e.innerHTML=f;f=document.createRange();try{var l=f.createContextualFragment(e.innerHTML)}catch(k){}null!=b.closest("head")?(b.insertBefore(l,null),b.remove()):b.parentNode.insertBefore(l,b.nextSibling); b.setAttribute("data-code","");r(b.parentElement)}}else b.style.display="none",null!=c&&(null!=!c.querySelector(".ai-debug-block")&&(c.style.display="none"),c.removeAttribute("data-ai"),null!=c.querySelector(".ai-debug-block")?(c.style.visibility="",c.classList.remove("ai-close"),c.classList.contains("ai-remove-position")&&(c.style.position=""),"code"in b.dataset&&(c.classList.remove("ai-list-block"),c.classList.remove("ai-list-block-ip"),null!=m(c)&&m(c).classList.contains("ai-debug-info")&&m(c).remove())): c.style.display="none");null!=c&&c.classList.remove("ai-list-block-filter")})}}ai_process_filter_hooks=function(a){if(null==a)ai_filter_hook_blocks=document.querySelectorAll("div.ai-filter-check, meta.ai-filter-check");else{window.jQuery&&window.jQuery.fn&&a instanceof jQuery&&(ai_filter_hook_blocks=Array.prototype.slice.call(a));var g=[];ai_filter_hook_blocks.forEach((d,f)=>{d.matches(".ai-filter-check")?g.push(d):(d=d.querySelectorAll(".ai-filter-check"),d.length&&d.forEach((l,k)=>{g.push(l)}))}); ai_filter_hook_blocks=g}if(ai_filter_hook_blocks.length)if("undefined"!=typeof ai_filter_hook_data)p(ai_filter_hook_blocks);else if("undefined"==typeof ai_filter_hook_data_requested){a=window.navigator.userAgent;var h=navigator.language;ai_filter_hook_data_requested=!0;a={action:"ai_ajax","filter-hook-data":"all",check:ai_data_id,http_user_agent:encodeURIComponent(a),http_accept_language:encodeURIComponent(h),ver:q()};var b=[],c;for(c in a){h=encodeURIComponent(c);var e=encodeURIComponent(a[c]);b.push(h+ "="+e)}b=b.join("&");(async function(){return await (await fetch(ai_ajax_url+"?"+b,{method:"GET"})).text()})().then(d=>{if(""==d)d="AI FILTER HOOK Ajax request returned empty data, filter hook checks not processed",console.error(d),"undefined"!=typeof ai_js_errors&&ai_js_errors.push([d,page,0]);else try{var f=JSON.parse(d)}catch(l){d="AI FILTER HOOK Ajax call returned invalid data, filter hook checks not processed",console.error(d),"undefined"!=typeof ai_js_errors&&ai_js_errors.push([d,page,0])}ai_filter_hook_data= JSON.stringify(f.blocks);ai_filter_hook_comments=JSON.stringify(f.comments);ai_filter_hook_blocks=document.querySelectorAll("div.ai-filter-check, meta.ai-filter-check");p(ai_filter_hook_blocks)}).catch(d=>{document.querySelectorAll("div.ai-filter-check").forEach((f,l)=>{f.style.display="none";f.style.visibility="";f.style.position="";f.style.width="";f.style.height="";f.style.zIndex="";f.classList.remove("ai-filter-check");f.style.display="none"})})}};(function(a){"complete"===document.readyState|| "loading"!==document.readyState&&!document.documentElement.doScroll?a():document.addEventListener("DOMContentLoaded",a)})(function(){setTimeout(function(){ai_process_filter_hooks()},3)});function r(a){setTimeout(function(){"function"==typeof ai_process_rotations_in_element&&ai_process_rotations_in_element(a);"function"==typeof ai_process_lists&&ai_process_lists();"function"==typeof ai_process_ip_addresses&&ai_process_ip_addresses();"function"==typeof ai_process_filter_hooks&&ai_process_filter_hooks(a); "function"==typeof ai_adb_process_blocks&&ai_adb_process_blocks(a);"function"==typeof ai_process_impressions&&1==ai_tracking_finished&&ai_process_impressions();"function"==typeof ai_install_click_trackers&&1==ai_tracking_finished&&ai_install_click_trackers();"function"==typeof ai_install_close_buttons&&ai_install_close_buttons(document)},5)}};
Save File
Cancel