PageSourceSearch

https://defisaver.com/js/script.exclusions.file-downloads.hash.manual.pageview-props.revenue.tagged-events.js

js defisaver.com collected 2026-10-03 21:44:33 UTC 4,901 bytes, 1 lines download raw bytes

1!function(){var e,t,n,r,i=document.currentScript,a={};function o(e,t,n){window.fetch&&fetch(e,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(t)}).then(function(e){n&&n.callback&&n.callback({status:e.status})}).catch(function(e){n&&n.callback&&n.callback({error:e})})}var u=!1,c={},l=-1,s=0,p=0;function d(){var i=f();if(!e&&(l<r||i>=3e3)){l=r;var u={n:"engagement",sd:Math.round(r/n*100),d:a.domain,u:t,p:c,e:i,v:36};s=0,p=0,u.h=1,o(a.endpoint,u)}}function v(){"visible"===document.visibilityState&&document.hasFocus()&&0===s?s=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(p=f(),s=0,d())}function f(){return s?p+(Date.now()-s):p}function m(){var e=document.body||{},t=document.documentElement||{};return Math.max(e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0,t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0)}function g(){var e,t;return e=window.innerHeight,t=window.scrollY,n<=e?n:t+e}function w(f,w){var b,y="pageview"===f;if(y&&u&&(d(),n=m(),r=g()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return h(f,w,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return h(f,w);try{if("true"===window.localStorage.plausible_ignore)return h(f,w,"localStorage flag")}catch(e){}var k=i&&i.getAttribute("data-include"),x=i&&i.getAttribute("data-exclude");function L(e){var t=location.pathname;return(t+=location.hash).match(RegExp("^"+e.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}if(y){var E=!k||k&&k.split(",").some(L),N=x&&x.split(",").some(L);if(!E||N)return h(f,w,"exclusion rule")}var A={};A.n=f,A.v=36,A.u=w&&(w.u||w.url)||location.href,A.d=a.domain,A.r=document.referrer||null,w&&w.meta&&(A.m=JSON.stringify(w.meta)),w&&w.props&&(A.p=w.props),w&&!1===w.interactive&&(A.i=!1),w&&w.revenue&&(A.$=w.revenue);var S=i.getAttributeNames().filter(function(e){return"event-"===e.substring(0,6)}),b=A.p||{};S.forEach(function(e){var t=e.replace("event-",""),n=i.getAttribute(e);b[t]=b[t]||n}),A.p=b,A.h=1,y&&(e=!1,t=A.u,c=A.p,l=-1,p=0,s=Date.now(),u||(document.addEventListener("visibilitychange",v),window.addEventListener("blur",v),window.addEventListener("focus",v),u=!0)),o(a.endpoint,A,w)}function h(t,n,r){r&&a.logging&&console.warn("Ignoring Event: "+r),n&&n.callback&&n.callback(),"pageview"===t&&(e=!0)}var b=["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=b;function k(e){return e&&e.tagName&&"a"===e.tagName.toLowerCase()}function x(e){if("auxclick"!==e.type||1===e.button){var t=function(e){for(;e&&(void 0===e.tagName||!k(e)||!e.href);)e=e.parentNode;return e}(e.target),n=t&&"string"==typeof t.href&&t.href.split("?")[0];if(!function e(t,n){return!!t&&!(n>3)&&(!!E(t)||e(t.parentNode,n+1))}(t,0)&&function(e){if(!e)return!1;var t=e.split(".").pop();return y.some(function(e){return e===t})}(n))return L(e,t,{name:"File Download",props:{url:n}})}}function L(e,t,n){var r;(r={props:n.props}).revenue=n.revenue,w(n.name,r)}function E(e){var t=e&&e.classList;if(t){for(var n=0;n<t.length;n++)if(t.item(n).match(/plausible-event-name(=|--)(.+)/))return!0}return!1}function N(e){var t=E(e)?e:e&&e.parentNode,n={name:null,props:{}};n.revenue={};var r=t&&t.classList;if(!r)return n;for(var i=0;i<r.length;i++){var a,o,u=r.item(i),c=u.match(/plausible-event-(.+)(=|--)(.+)/);c&&(a=c[1],o=c[3].replace(/\+/g," "),"name"==a.toLowerCase()?n.name=o:n.props[a]=o);var l=u.match(/plausible-revenue-(.+)(=|--)(.+)/);l&&(a=l[1],o=l[3],n.revenue[a]=o)}return n}!function e(t){a.endpoint=i.getAttribute("data-api")||new URL(i.src).origin+"/api/event",a.domain=i.getAttribute("data-domain"),a.logging=!0,n=m(),r=g(),new ResizeObserver(function(){n=m()}).observe(document.documentElement),document.addEventListener("scroll",function(){var e=g();e>r&&(r=e)}),function(){document.addEventListener("click",x),document.addEventListener("auxclick",x);var e=i.getAttribute("file-types"),t=i.getAttribute("add-file-types");function n(e){if("auxclick"!==e.type||1===e.button){for(var t,n,r,i=e.target,a=0;a<=3&&i;a++){if((t=i)&&t.tagName&&"form"===t.tagName.toLowerCase())return;k(i)&&(n=i),E(i)&&(r=i),i=i.parentNode}if(r){var o=N(r);if(n)o.props.url=n.href,L(e,n,o);else{var u={};u.props=o.props,u.revenue=o.revenue,w(o.name,u)}}}}e&&(y=e.split(",")),t&&(y=t.split(",").concat(b)),document.addEventListener("submit",function(e){var t,n=N(e.target);n.name&&((t={props:n.props}).revenue=n.revenue,w(n.name,t))}),document.addEventListener("click",n),document.addEventListener("auxclick",n)}();for(var o=window.plausible&&window.plausible.q||[],u=0;u<o.length;u++)w.apply(this,o[u]);window.plausible=w,window.plausible.init=e,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.