PageSourceSearch

https://defisaver.com/js/script.exclusions.local.pageview-props.js

js defisaver.com collected 2026-10-03 21:43:27 UTC 3,084 bytes, 1 lines download raw bytes

1!function(){var t,e,n,i,a=document.currentScript,o={};function r(t,e,n){window.fetch&&fetch(t,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(e)}).then(function(t){n&&n.callback&&n.callback({status:t.status})}).catch(function(t){n&&n.callback&&n.callback({error:t})})}var c=!1,u={},l=-1,d=0,s=0;function p(){var a=f();if(!t&&(l<i||a>=3e3)){l=i;var c={n:"engagement",sd:Math.round(i/n*100),d:o.domain,u:e,p:u,e:a,v:36};d=0,s=0,r(o.endpoint,c)}}function v(){"visible"===document.visibilityState&&document.hasFocus()&&0===d?d=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(s=f(),d=0,p())}function f(){return d?s+(Date.now()-d):s}function g(){var t=document.body||{},e=document.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0)}function w(){var t,e;return t=window.innerHeight,e=window.scrollY,n<=t?n:e+t}function m(f,m){var b,y="pageview"===f;y&&c&&(p(),n=g(),i=w());try{if("true"===window.localStorage.plausible_ignore)return h(f,m,"localStorage flag")}catch(t){}var S=a&&a.getAttribute("data-include"),E=a&&a.getAttribute("data-exclude");function L(t){return location.pathname.match(RegExp("^"+t.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}if(y){var k=!S||S&&S.split(",").some(L),H=E&&E.split(",").some(L);if(!k||H)return h(f,m,"exclusion rule")}var A={};A.n=f,A.v=36,A.u=location.href,A.d=o.domain,A.r=document.referrer||null,m&&m.meta&&(A.m=JSON.stringify(m.meta)),m&&m.props&&(A.p=m.props),m&&!1===m.interactive&&(A.i=!1);var x=a.getAttributeNames().filter(function(t){return"event-"===t.substring(0,6)}),b=A.p||{};x.forEach(function(t){var e=t.replace("event-",""),n=a.getAttribute(t);b[e]=b[e]||n}),A.p=b,y&&(t=!1,e=A.u,u=A.p,l=-1,s=0,d=Date.now(),c||(document.addEventListener("visibilitychange",v),window.addEventListener("blur",v),window.addEventListener("focus",v),c=!0)),r(o.endpoint,A,m)}function h(e,n,i){i&&o.logging&&console.warn("Ignoring Event: "+i),n&&n.callback&&n.callback(),"pageview"===e&&(t=!0)}!function t(e){o.endpoint=a.getAttribute("data-api")||new URL(a.src).origin+"/api/event",o.domain=a.getAttribute("data-domain"),o.logging=!0,n=g(),i=w(),new ResizeObserver(function(){n=g()}).observe(document.documentElement),document.addEventListener("scroll",function(){var t=w();t>i&&(i=t)}),function(t){function e(e){e&&n===location.pathname||(n=location.pathname,t("pageview"))}var n,i=function(){e(!0)},a=window.history;if(a.pushState){var o=a.pushState;a.pushState=function(){o.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){n||"visible"!==document.visibilityState||e()}):e(),window.addEventListener("pageshow",function(t){t.persisted&&e()})}(m);for(var r=window.plausible&&window.plausible.q||[],c=0;c<r.length;c++)m.apply(this,r[c]);window.plausible=m,window.plausible.init=t,window.plausible.v=36,window.plausible.l=!0}()}();

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.