PageSourceSearch

https://pagesix.com/wp-content/themes/gtf/client/build/js/dfp-api-lite.bundle.js

js pagesix.com collected 2026-09-24 08:25:47 UTC 5,013 bytes, 1 lines download raw bytes

1!function(){"use strict";window.nypAPS=window.nypAPS||{},window.nypAPS.wrapAmazonLink=(e,t)=>{const o=t.getAttribute("data-wrapped-template");if(!o)return e;const n=new URL(o);return n.searchParams.set("btn_url",e),t.href=n.toString(),n.toString()};var e=e=>{const t=e.slot.getSlotElementId(),o=document.querySelector(`.skeleton--${t}`);if(o){const e=o.closest(".ad__placeholder--skeleton");e&&e.classList.remove("ad__placeholder--skeleton"),o.setAttribute("class","ad__slot ad__slot--loaded");const n=new CustomEvent("nyp.slotOnload",{bubbles:!0,composed:!0,detail:{slotId:t}});o.dispatchEvent(n)}},t=e=>{var t;const{gtfScripts:{nypost_wp_vars:{isRedesign:o=!1}={}}={}}=window,n=e.slot.getSlotElementId(),s=document.getElementById(n);if(null!==s&&s.setAttribute("data-nyp-ad-empty",e.isEmpty?"true":"false"),"div-gpt-ad-native"===n&&null!==s){let e=null;const t=s.offsetHeight>50,o=s.closest(".ad-slot--native");null!==o&&(e=o.querySelector(".widget--newsletter-signup")),null!==e?(e.classList.toggle("d-none",t),s.classList.toggle("d-none",!t)):(s.setAttribute("data-nyp-ad-empty",t?"false":"true"),s.classList.toggle("b-bottom",t))}if("div-gpt-ad-skin"===n&&!e.isEmpty)if(o){const e=document.querySelector("[data-ad-skin]");null!==e&&(e.dataset.adSkin="true");const t=document.querySelector('[data-module="curated-promo-module"]');null!==t&&t.remove();const o=document.querySelector(".module--promo");null!==o&&o.remove();const n=document.querySelector('[data-ad-skin="true"] .breaking-news--hidden'),s=document.querySelector('[data-component-wrapper="breaking-news"]');null!==n&&null!==s&&s.remove()}else null===(t=document.getElementById("content-wrapper"))||void 0===t||t.classList.add("background-ad-skin")};window.dataLayer.reduce((e,t)=>("object"!=typeof t||(void 0!==t.has_liveblog&&(e.has_liveblog=t.has_liveblog),void 0!==t.page_type&&(e.page_type=t.page_type)),e),{has_liveblog:"false",page_type:""});var o=()=>{const e=(()=>{const{gtfScripts:{nypost_wp_vars:{isMobile:e=!1}={}}={}}=window;return e?"mobile":"desktop"})(),{gtfScripts:{ads:{slots:{[e]:t=[]}={},targeting:o={}}={},nypost_wp_vars:{isSingle:n=!1,postType:s=""}={}}={}}=window;if(!t.length)return;Object.keys(o).forEach(e=>{window.googletag.pubads().setTargeting(e,o[e])});const a=window.location.href.toString().match(/testadv=([\w\d]+)/);null!==a&&window.googletag.pubads().setTargeting("testadv",a[1].toString().replace(/testadv=/,"")),void 0!==window.pxSegmentIDs&&""!==window.pxSegmentIDs&&window.googletag.pubads().setTargeting("psg",window.pxSegmentIDs),void 0!==window.newsId&&window.newsId&&window.googletag.pubads().setTargeting("news_id",window.newsId);const d=window.location.href.toString().match(/utm_source=([\w\d]+)/);d&&d[1]?window.googletag.pubads().setTargeting("ref",[d[1]]):document.referrer.toString().match(/nypost\.com/)?window.googletag.pubads().setTargeting("ref",["nypost"]):document.referrer.toString().match(/pagesix\.com/)?window.googletag.pubads().setTargeting("ref",["pagesix"]):document.referrer.toString().match(/decider\.com/)&&window.googletag.pubads().setTargeting("ref",["decider"]);const i=Math.floor(10*Math.random()).toString();window.googletag.pubads().setTargeting("nckey_userGroup",[i])};const n="on"===new URLSearchParams(window.location.search).get("ncuAdDebug"),s=(...e)=>{n&&console.log("[adlib AutoRefresh]",...e)},a=new Set,d=e=>{const{host:t}=window.location;if(e===`http://${t}`||e===`https://${t}`)return!0;try{const{hostname:t}=new URL(e);return"googlesyndication.com"===t||t.endsWith(".googlesyndication.com")}catch(e){return!1}},i=e=>{var t,o;if("pauseAdRefresh"===(null===(t=e.data)||void 0===t?void 0:t.type)&&s("received pauseAdRefresh message:",{origin:e.origin,data:e.data,isValidOrigin:!!e.origin&&d(e.origin)}),e.origin&&d(e.origin))try{const t=e.data;"pauseAdRefresh"===(null==t?void 0:t.type)&&(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.adUnitPath)&&(e=>{s("pauseAdRefresh called with:",e);const t=window.googletag.pubads().getSlots(),o=t.find(t=>t.getAdUnitPath()===e||t.getSlotElementId()===e||t.getAdUnitPath().startsWith(e));if(s("list of current slots:",t.map(e=>({adUnitPath:e.getAdUnitPath(),slotElementId:e.getSlotElementId()}))),o){const e=o.getSlotElementId();a.add(e),s("paused refresh for slot:",e)}else s("no matching slot found for:",e)})(t.data.adUnitPath)}catch(e){}};let l=!1;window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(()=>{o(),googletag.pubads().addEventListener("slotOnload",e),googletag.pubads().addEventListener("slotRenderEnded",t)}),l||(l=!0,window.googletag.cmd.push(()=>{(()=>{const e=window.googletag.pubads(),t=e.refresh.bind(e);e.refresh=(e,o)=>{if(!a.size)return void t(e,o);const n=(null!=e?e:window.googletag.pubads().getSlots()).filter(e=>!a.has(e.getSlotElementId()));s("refresh intercepted, filtered out paused slots:",Array.from(a),"remaining:",n.map(e=>e.getSlotElementId())),n.length&&t(n,o)}})(),window.addEventListener("message",i),s("initialized")}))}();

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.