PageSourceSearch

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

js defisaver.com collected 2026-10-03 21:40:58 UTC 3,404 bytes, 1 lines download raw bytes

1!function(){var t,e,n,i,a=document.currentScript,r={};function o(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=g();if(!t&&(l<i||a>=3e3)){l=i;var c={n:"engagement",sd:Math.round(i/n*100),d:r.domain,u:e,p:u,e:a,v:36};d=0,s=0,o(r.endpoint,c)}}function f(){"visible"===document.visibilityState&&document.hasFocus()&&0===d?d=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(s=g(),d=0,p())}function g(){return d?s+(Date.now()-d):s}function v(){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 m(){var t,e;return t=window.innerHeight,e=window.scrollY,n<=t?n:e+t}function w(g,w){var h,y="pageview"===g;y&&c&&(p(),n=v(),i=m());try{if("true"===window.localStorage.plausible_ignore)return b(g,w,"localStorage flag")}catch(t){}var x=a&&a.getAttribute("data-include"),k=a&&a.getAttribute("data-exclude");function E(t){return location.pathname.match(RegExp("^"+t.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}if(y){var A=!x||x&&x.split(",").some(E),L=k&&k.split(",").some(E);if(!A||L)return b(g,w,"exclusion rule")}var S={};S.n=g,S.v=36,S.u=w&&(w.u||w.url)||location.href,S.d=r.domain,S.r=document.referrer||null,w&&w.meta&&(S.m=JSON.stringify(w.meta)),w&&w.props&&(S.p=w.props),w&&!1===w.interactive&&(S.i=!1);var H=a.getAttributeNames().filter(function(t){return"event-"===t.substring(0,6)}),h=S.p||{};H.forEach(function(t){var e=t.replace("event-",""),n=a.getAttribute(t);h[e]=h[e]||n}),S.p=h,y&&(t=!1,e=S.u,u=S.p,l=-1,s=0,d=Date.now(),c||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),c=!0)),o(r.endpoint,S,w)}function b(e,n,i){i&&r.logging&&console.warn("Ignoring Event: "+i),n&&n.callback&&n.callback(),"pageview"===e&&(t=!0)}var h=["pdf","xlsx","docx","txt","rtf","csv","exe","key","pps","ppt","pptx","7z","pkg","rar","gz","zip","avi","mov","mp4","mpeg","wmv","midi","mp3","wav","wma","dmg"],y=h;function x(t){if("auxclick"!==t.type||1===t.button){var e,n,i=function(t){for(var e;t&&(void 0===t.tagName||!((e=t)&&e.tagName&&"a"===e.tagName.toLowerCase())||!t.href);)t=t.parentNode;return t}(t.target),a=i&&"string"==typeof i.href&&i.href.split("?")[0];if(function(t){if(!t)return!1;var e=t.split(".").pop();return y.some(function(t){return t===e})}(a))return void(n={props:(e={name:"File Download",props:{url:a}}).props},w(e.name,n))}}!function t(e){var o,c;r.endpoint=a.getAttribute("data-api")||new URL(a.src).origin+"/api/event",r.domain=a.getAttribute("data-domain"),r.logging=!0,n=v(),i=m(),new ResizeObserver(function(){n=v()}).observe(document.documentElement),document.addEventListener("scroll",function(){var t=m();t>i&&(i=t)}),document.addEventListener("click",x),document.addEventListener("auxclick",x),o=a.getAttribute("file-types"),c=a.getAttribute("add-file-types"),o&&(y=o.split(",")),c&&(y=c.split(",").concat(h));for(var u=window.plausible&&window.plausible.q||[],l=0;l<u.length;l++)w.apply(this,u[l]);window.plausible=w,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.