PageSourceSearch

https://gol.md/wp-content/plugins/ad-commander/dist/js/front.js?ver=1.5.4

js gol.md collected 2026-10-02 18:22:39 UTC 7,217 bytes, 2 lines download raw bytes

1/*! For license information please see front.js.LICENSE.txt */
2(()=>{"use strict";function e(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)"__proto__"!==r&&(e[r]=t[r])}return e}var i=function i(t,r){function n(i,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var d in o)o[d]&&(s+="; "+d,!0!==o[d]&&(s+="="+o[d].split(";")[0]));return document.cookie=i+"="+t.write(n,i)+s}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],r={},n=0;n<i.length;n++){var o=i[n].split("="),s=o.slice(1).join("=");try{var d=decodeURIComponent(o[0]);if(d in r||(r[d]=t.read(s,d)),e===d)break}catch(e){}}return e?r[e]:r}},remove:function(i,t){n(i,"",e({},t,{expires:-1}))},withAttributes:function(t){return i(this.converter,e({},this.attributes,t))},withConverter:function(t){return i(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,i){if(e){if("string"==typeof e)return r(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,i):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,r=Array(i);t<i;t++)r[t]=e[t];return r}!function(){var e=(("undefined"!=typeof window?window:this).WOUtil=function(){return this}).prototype;e.prefix=function(){return void 0!==adcmdr_front.prefix?adcmdr_front.prefix:"adcmdr"},e.prefixed=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return this.prefix()+i+e},e.ignorePopAndStickyAds=function(e){var i=this;return t(e).filter((function(e){for(var t=e;t.parentElement;){if(t.parentElement.classList.contains(i.prefixed("pop-content"))||t.parentElement.classList.contains(i.prefixed("sticky")))return!1;t=t.parentElement}return!0}))}}(),function(){var e=("undefined"!=typeof window?window:this).WOVisitor=function(){this.woUtil=new WOUtil,this.woFrontPro="undefined"!=typeof WOFrontPro?new WOFrontPro:null,this.impressionCookie=adcmdr_front.cookies.i,this.referrerCookie=adcmdr_front.cookies.r,this.visitorCookie=adcmdr_front.cookies.v,this.adImpressionCookie=adcmdr_front.cookies.i_a,this.adClickCookie=adcmdr_front.cookies.c_a;var t=e.prototype;t.canClickFraud=function(){return this.woFrontPro&&"function"==typeof this.woFrontPro.handleClickFraud},t.isClickFraudEnabled=function(){return void 0!==adcmdr_front.cf.enabled&&!0===adcmdr_front.cf.enabled},t.impressions=function(){var e=i.get(this.impressionCookie);return e&&void 0!==e?parseInt(e,10):0},t.track_impression_cookie=function(){i.set(this.impressionCookie,this.impressions()+1,{expires:400})},t.update_user_insert_impressions=function(){var e=this.get_user_ad_impressions(),t=window[this.woUtil.prefixed("plids","_")]||[];window[this.woUtil.prefixed("plids","_")]=[],void 0!==t&&t.length>0&&(void 0===e.placements&&(e.placements=[]),t.forEach((function(i){var t=e.placements.findIndex((function(e){return e.id===i}));t>=0?e.placements[t]={id:i,i:parseInt(e.placements[t].i,10)+1}:e.placements.push({id:i,i:1})})),i.set(this.adImpressionCookie,JSON.stringify(e),{expires:400}))},t.update_user_ad_impressions=function(e){var t=this.get_user_ad_impressions();void 0!==e&&e.length>0&&(void 0===t.ads&&(t.ads=[]),e.forEach((function(e){if(void 0!==e.adId){var i=parseInt(e.adId,10),r=t.ads.findIndex((function(e){return e.id===i}));r>=0?t.ads[r].i=parseInt(t.ads[r].i,10)+1:t.ads.push({id:i,i:1})}})),i.set(this.adImpressionCookie,JSON.stringify(t),{expires:400}))},t.update_user_ad_clicks=function(e){var t=this.get_user_ad_clicks();if(void 0!==e&&e.length>0){void 0===t.ads&&(t.ads=[]),void 0===t.clicksByTime&&(t.clicksByTime={});var r=this.canClickFraud()&&this.isClickFraudEnabled();e.forEach((function(e){if(void 0!==e.adId){var i=parseInt(e.adId,10),n=t.ads.findIndex((function(e){return e.id===i}));if(n>=0?t.ads[n].c=parseInt(t.ads[n].c,10)+1:t.ads.push({id:i,c:1}),r){var o=Date.now();void 0===t.clicksByTime[o]&&(t.clicksByTime[o]=[]),t.clicksByTime[o].push(i)}}})),i.set(this.adClickCookie,JSON.stringify(t),{expires:400}),this.canClickFraud()&&this.isClickFraudEnabled()&&this.woFrontPro.handleClick
2Fraud(t)}},t.get_user_ad_impressions=function(){var e=i.get(this.adImpressionCookie);return void 0===e?{ads:[],placements:[]}:JSON.parse(e)},t.get_user_ad_clicks=function(){var e=i.get(this.adClickCookie);if(void 0===e)return{ads:[],clicksByTime:{}};var t=JSON.parse(e);return this.canClickFraud()&&(t=this.woFrontPro.filterClicksByDetectionPeriod(t)),t},t.maybe_set_referrer_cookie=function(){void 0===i.get(this.referrerCookie)&&i.set(this.referrerCookie,document.referrer)},t.get_referrer=function(){var e=i.get(this.referrerCookie);return void 0===e?"":e},t.get_visitor_cookie=function(){var e=i.get(this.visitorCookie);return void 0===e?{}:e},t.set_visitor_cookie=function(){var e={viewportWidth:window.innerWidth,browserLanguage:navigator.language||navigator.userLanguage};i.set(this.visitorCookie,JSON.stringify(e))},t.check_cf_cookie=function(){this.canClickFraud()&&this.woFrontPro.checkAndClearClickFraudCookie()}},t=new e;t.maybe_set_referrer_cookie(),t.set_visitor_cookie(),document.addEventListener("DOMContentLoaded",(function(){t.check_cf_cookie();var e=new WOUtil;new WORotateInit(e.ignorePopAndStickyAds(document.getElementsByClassName(e.prefixed("rotate"))));var i="undefined"!=typeof WOTrack?new WOTrack:null;i&&i.trackImpressionsAndBindClicksBySelector(document,"."+e.prefixed("ad"),"woslide",!0);var r="undefined"!=typeof WOFrontPro?new WOFrontPro:null;if(r){if(r.loadAds({woVisitor:t,woTracker:i}),adcmdr_front.integrations.includes("buddypress")){var n=document.getElementById("buddypress");if(n&&!n.querySelector(".activity-list"))new MutationObserver((function(o,s){n.querySelector(".activity-list")&&(new WORotateInit(e.ignorePopAndStickyAds(n.getElementsByClassName(e.prefixed("rotate")))),i&&i.trackImpressionsAndBindClicksBySelector(n,"."+e.prefixed("ad"),"woslide",!0),r.loadAds({woVisitor:t,woTracker:i}),s.disconnect())})).observe(n,{childList:!0,subtree:!0})}}else document.dispatchEvent(new Event("adcmdrAdsLoaded"))}),!1),document.addEventListener("adcmdrAdsLoaded",(function(){t.track_impression_cookie(),t.update_user_insert_impressions()}))}()})();

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.