PageSourceSearch

https://pmlive.com/wp-content/plugins/beautiful-and-responsive-coo…/public/js/nscBlockScripts.js?v=4.1.5&e=1

js pmlive.com collected 2026-10-02 03:41:46 UTC 6,250 bytes, 1 lines download raw bytes

1function nsc_bara_is_blacklisted(e){for(var t=window.nsc_bara_get_blocked_services_from_window(),r=0;r<t.length;r+=1){if(new RegExp(t[r].regExPattern).test(e))return r}return!1}function nsc_bara_getBlockedServices(){if(void 0===window.nsc_bara_wp_rest_api_url)return void console.error("Beautiful Cookie Banner, nsc_bara_getBlockedServices: window.nsc_bara_wp_rest_api_url is not defined.");var e=new XMLHttpRequest;e.withCredentials=!0,e.addEventListener("readystatechange",(function(){if(4===this.readyState)if(this.status>204)console.error("Beautiful Cookie Banner (nsc_bara_getBlockedServices): API responded with a non success code. Have you disabled WP API?",this.status,this.responseText);else{try{var e=JSON.parse(this.responseText)}catch(t){console.error("Beautiful Cookie Banner (nsc_bara_getBlockedServices): could not get blocked services per api. Unblocking will not work.",this.responseText,t),e=void 0}window.nsc_bara_blocked_services=e||window.nsc_bara_blocked_services,"function"==typeof nsc_bara_loadGtm&&nsc_bara_loadGtm(window,document,"script"),"function"==typeof nsc_bara_unblockScripts&&nsc_bara_unblockScripts()}}));let t=window.nsc_bara_wp_rest_api_url+"beautiful-and-responsive-cookie-consent/v1/blockedServices",r=t.includes("?")?"&":"?";const n=t+r+"cbuster="+Date.now();e.open("GET",n),e.setRequestHeader("Cache-Control","no-cache, no-store, must-revalidate"),e.setRequestHeader("Pragma","no-cache"),e.setRequestHeader("Expires","0"),e.send()}function nsc_bar_set_status_callback(){nsc_bara_getBlockedServices()}function nsc_bara_unblockScripts(){for(var e=document.getElementsByTagName("script"),t=0;t<e.length;t++){var r=e[t];if("javascript/nscBlocked"===r.getAttribute("type")&&!1===nsc_bara_is_blacklisted(r.src)){var n=document.createElement("script");n.type="text/javascript",n.src=r.src,r.parentNode.replaceChild(n,r)}}var o=document.getElementsByTagName("iframe");for(t=0;t<o.length;t++){var a=o[t];const e=a.getAttribute("nscbaraorisource");e&&!1===nsc_bara_is_blacklisted(e)&&(a.removeAttribute("nscbaraorisource"),a.setAttribute("src",e))}!function(e,t,r,n){let o=0;const a=setInterval((()=>{let r;o++;try{r=e()}catch(e){clearInterval(a),console.error("Beautiful cookie banner script blocking issue. ConditonFn",e)}if(r){clearInterval(a);try{t()}catch(e){console.error("Beautiful cookie banner script blocking issue. actionFn",e),clearInterval(a)}}else o>=n&&clearInterval(a)}),r)}((()=>window.YT&&window.YT.PlayerState),(function(){const e=window.nscBaraYoutubeQueue||[];for(let t=0;t<e.length;t+=1){const r=document.getElementById("nscBaraMp"+(e[t].options.videoId||"not set"));r&&r.remove(),new YT.Player(e[t].elementId,e[t].options)}}),100,20)}function nsc_bara_get_blocked_services_from_window(){return void 0===window.nsc_bara_blocked_services?(console.error("Beautiful Cookie Banner: nsc_bara_blocked_services is undefined. Blocking will not work!"),[]):!1===Array.isArray(window.nsc_bara_blocked_services)?(console.error("Beautiful Cookie Banner: nsc_bara_blocked_services is not an array. Blocking will not work!"),[]):window.nsc_bara_blocked_services}!function(){"number"==typeof window.nsc_bara_blockedScriptsPerApi&&1===window.nsc_bara_blockedScriptsPerApi&&nsc_bara_getBlockedServices();const e=document.createElement;document.createElement=function(...t){if("string"!=typeof t[0]||!["iframe","script"].includes(t[0].toLowerCase()))return e.bind(document)(...t);const r=t[0],n=e.bind(document)(...t),o=n.setAttribute.bind(n);return Object.defineProperties(n,{src:{get:()=>n.getAttribute("src"),set(e){const t=a(e);return!1!==t&&"script"===r&&o("type","javascript/nscBlocked"),!1!==t&&"iframe"===r?(o("nscbaraorisource",e),o("src",window.nsc_bara_block_placeholder_url),!0):(o("src",e),!0)}},type:{set(e){const t=!1!==a(n.src)?"javascript/nscBlocked":e;return o("type",t),!0}}}),n.setAttribute=function(e,t){if("type"===e||"src"===e)n[e]=t;else try{o(e,t)}catch(r){console.warn("Beautiful Cookie Banner: blocking script",e,t,r)}},n;function a(e){for(var t=window.nsc_bara_get_blocked_services_from_window(),r=0;r<t.length;r+=1){if(new RegExp(t[r].regExPattern).test(e))return r}return!1}},function(){if(!1===window.nsc_bara_get_blocked_services_from_window().some((e=>"googleYoutube"===e.serviceId)))return;window.YT={},window.nscBaraYoutubeQueue=[],window.YT.Player=function(e,t){var r="string"==typeof e?document.getElementById(e):e;if(r){("object"!=typeof t||Array.isArray(t)||null===t)&&(t={}),window.nscBaraYoutubeQueue.push({elementId:e,options:t});var n=document.createElement("iframe");n.src=window.nsc_bara_block_placeholder_url,n.width=t.width||"640",n.height=t.height||"390",n.setAttribute("nscBaraOriVideoId",t.videoId||"not set"),n.setAttribute("style","border:none;"),n.setAttribute("id","nscBaraMp"+(t.videoId||"not set")),r.parentNode.appendChild(n)}},window.YT.loaded=1,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){"function"==typeof onYouTubeIframeAPIReady&&onYouTubeIframeAPIReady()})):"function"==typeof onYouTubeIframeAPIReady&&onYouTubeIframeAPIReady()}();const t={attributes:!0,attributeFilter:["src","type"],subtree:!0},r=(e,r)=>{for(const n of e){if("IFRAME"!==n.target.tagName&&"SCRIPT"!==n.target.tagName)continue;if("javascript/nscBlocked"===n.target.type)continue;if(n.target.nscbaraorisource)continue;const e=n.target.src;!1!==nsc_bara_is_blacklisted(e)&&("SCRIPT"===n.target.tagName&&(r.disconnect(),n.target.setAttribute("type","javascript/nscBlocked"),r.observe(document.body,t)),"IFRAME"===n.target.tagName&&(r.disconnect(),n.target.setAttribute("nscbaraorisource",e),n.target.setAttribute("src",
1window.nsc_bara_block_placeholder_url),r.observe(document.body,t)))}};try{const e=new MutationObserver(r);document.addEventListener("DOMContentLoaded",(r=>{e.observe(document.body,t)}))}catch(e){console.error("Beautiful Cookie Banner: Error initializing MutationObserver. There might be an issue with blocking.:",e)}}(),window.addEventListener("message",(e=>{if(e.origin===window.location.origin&&"object"==typeof e.data&&null!==e.data&&"showPreferences"===e.data.action&&"nsc-bara-blocked-fallback"===e.data.source){if(1===e.data.bannerv2Enabled)return void CookieConsent.showPreferences();window.nscBaraRevokeChoice()}}));

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.