PageSourceSearch

https://my.future-hub.io/js/script.exclusions.file-downloads.manual.outbound-links.tagged-events.js

js future-hub.io collected 2026-10-05 23:40:06 UTC 4,776 bytes, 1 lines download raw bytes

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