PageSourceSearch

https://www.almanacnews.com/wp-content/plugins/newspack-plugin/dist/content-gate-metering.js?ver=1790105370

js almanacnews.com collected 2026-09-24 17:21:36 UTC 1,672 bytes, 1 lines download raw bytes

1(()=>{const e=newspack_metering_settings,t="metering-"+(e.meter_key||e.gate_id||0);function n(n){const o=function(n){const o=function(){const t=new Date;switch(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),e.period){case"day":t.setDate(t.getDate()+1);break;case"week":const e=6-t.getDay();t.setDate(t.getDate()+e);break;case"month":t.setMonth(t.getMonth()+1),t.setDate(1)}return parseInt(t.getTime()/1e3,10)}(),c=n.get(t)||{content:[],expiration:o};return c.expiration=parseInt(c.expiration,10)||0,c.expiration!==o&&(c.expiration<o&&(c.content=[]),c.expiration=o),n.set(t,c),c}(n.store);let c=!1;e.count<=o.content.length&&!o.content.includes(e.post_id)?(!function(t){const n=document.querySelector(".entry-content");if(!n)return;document.body.classList.add("newspack-content-locked");const o=document.querySelectorAll(".newspack-popup"),c=t?.overlays?.get()||[];o.forEach(e=>{e.parentNode.removeChild(e),c.length&&c.forEach(e=>{0===e.indexOf("prompt_")&&t.overlays.remove(e)})}),n.innerHTML=e.excerpt;const s=document.getElementById("comments");s&&s.remove();const i=document.querySelector(".newspack-content-gate__inline-gate");i&&n.appendChild(i);const r=document.querySelector(".newspack-countdown-banner__cta");r&&r.remove()}(n),n.dispatchActivity("metering_restricted",{post_id:e.post_id,metering:o}),c=!0):document.querySelectorAll(".newspack-content-gate__gate").forEach(e=>{e.parentNode.removeChild(e)}),c||(e.article_view&&n.dispatchActivity(e.article_view.action,e.article_view.data),o.content.includes(e.post_id)||(o.content.push(e.post_id),n.store.set(t,o)))}window.newspackRAS=window.newspackRAS||[],window.newspackRAS.push(e=>n(e))})();

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.