PageSourceSearch

https://defisaver.com/js/script.exclusions.file-downloads.local.ou…nks.pageview-props.revenue.tagged-events.js

js defisaver.com collected 2026-10-03 21:41:55 UTC 5,229 bytes, 1 lines download raw bytes

1!function(){var e,t,n,i,r=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={},s=-1,l=0,p=0;function d(){var r=f();if(!e&&(s<i||r>=3e3)){s=i;var u={n:"engagement",sd:Math.round(i/n*100),d:a.domain,u:t,p:c,e:r,v:36};l=0,p=0,o(a.endpoint,u)}}function v(){"visible"===document.visibilityState&&document.hasFocus()&&0===l?l=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(p=f(),l=0,d())}function f(){return l?p+(Date.now()-l):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 h(f,h){var b,y="pageview"===f;y&&u&&(d(),n=m(),i=g());try{if("true"===window.localStorage.plausible_ignore)return w(f,h,"localStorage flag")}catch(e){}var L=r&&r.getAttribute("data-include"),k=r&&r.getAttribute("data-exclude");function E(e){return location.pathname.match(RegExp("^"+e.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}if(y){var x=!L||L&&L.split(",").some(E),S=k&&k.split(",").some(E);if(!x||S)return w(f,h,"exclusion rule")}var N={};N.n=f,N.v=36,N.u=location.href,N.d=a.domain,N.r=document.referrer||null,h&&h.meta&&(N.m=JSON.stringify(h.meta)),h&&h.props&&(N.p=h.props),h&&!1===h.interactive&&(N.i=!1),h&&h.revenue&&(N.$=h.revenue);var A=r.getAttributeNames().filter(function(e){return"event-"===e.substring(0,6)}),b=N.p||{};A.forEach(function(e){var t=e.replace("event-",""),n=r.getAttribute(e);b[t]=b[t]||n}),N.p=b,y&&(e=!1,t=N.u,c=N.p,s=-1,p=0,l=Date.now(),u||(document.addEventListener("visibilitychange",v),window.addEventListener("blur",v),window.addEventListener("focus",v),u=!0)),o(a.endpoint,N,h)}function w(t,n,i){i&&a.logging&&console.warn("Ignoring Event: "+i),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 L(e){return e&&e.tagName&&"a"===e.tagName.toLowerCase()}function k(e){if("auxclick"!==e.type||1===e.button){var t=function(e){for(;e&&(void 0===e.tagName||!L(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)&&(!!x(t)||e(t.parentNode,n+1))}(t,0)){if(t&&"string"==typeof t.href&&t.host&&t.host!==location.host)return E(e,t,{name:"Outbound Link: Click",props:{url:t.href}});if(function(e){if(!e)return!1;var t=e.split(".").pop();return y.some(function(e){return e===t})}(n))return E(e,t,{name:"File Download",props:{url:n}})}}}function E(e,t,n){var i;(i={props:n.props}).revenue=n.revenue,h(n.name,i)}function x(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 S(e){var t=x(e)?e:e&&e.parentNode,n={name:null,props:{}};n.revenue={};var i=t&&t.classList;if(!i)return n;for(var r=0;r<i.length;r++){var a,o,u=i.item(r),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 s=u.match(/plausible-revenue-(.+)(=|--)(.+)/);s&&(a=s[1],o=s[3],n.revenue[a]=o)}return n}!function e(t){a.endpoint=r.getAttribute("data-api")||new URL(r.src).origin+"/api/event",a.domain=r.getAttribute("data-domain"),a.logging=!0,n=m(),i=g(),new ResizeObserver(function(){n=m()}).observe(document.documentElement),document.addEventListener("scroll",function(){var e=g();e>i&&(i=e)}),function(e){function t(t){t&&n===location.pathname||(n=location.pathname,e("pageview"))}var n,i=function(){t(!0)},r=window.history;if(r.pushState){var a=r.pushState;r.pushState=function(){a.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){n||"visible"!==document.visibilityState||t()}):t(),window.addEventListener("pageshow",function(e){e.persisted&&t()})}(h),function(){document.addEventListener("click",k),document.addEventListener("auxclick",k);var e=r.getAttribute("file-types"),t=r.getAttribute("add-file-types");function n(e){if("auxclick"!==e.type||1===e.button){for(var t,n,i,r=e.target,a=0;a<=3&&r;a++){if((t=r)&&t.tagName&&"form"===t.tagName.toLowerCase())return;L(r)&&(n=r),x(r)&&(i=r),r=r.parentNode}if(i){var o=S(i);if(n)o.props.url=n.href,E(e,n,o);else{var u={};u.props=o.props,u.revenue=o.revenue,h(o.name,u)}}}}e&&(y=e.split(",")),t&&(y=t.split(",").concat(b)),document.addEventListener("submit",function(e){var t,n=S(e.target);n.name&&((t={props:n.props}).revenue=n.revenue,h(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++)h.apply(this,o[u]);window.plausible=h,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.