PageSourceSearch

https://agreements.ai/js/script.exclusions.hash.manual.outbound-links.pageview-props.revenue.js

js agreements.ai collected 2026-10-05 11:50:43 UTC 3,538 bytes, 1 lines download raw bytes

1!function(){var l,u=window.location,c=window.document,s=c.currentScript,d=s.getAttribute("data-api")||new URL(s.src).origin+"/api/event",p=s.getAttribute("data-domain");function f(e,t,n){t&&console.warn("Ignoring Event: "+t),n&&n.callback&&n.callback(),"pageview"===e&&(l=!0)}var v=u.href,h={},w=-1,g=!1,b=null,m=0;function y(){var e=c.body||{},t=c.documentElement||{};return Math.max(e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0,t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0)}function k(){var e=c.body||{},t=c.documentElement||{},n=window.innerHeight||t.clientHeight||0,t=window.scrollY||t.scrollTop||e.scrollTop||0;return E<=n?E:t+n}function t(){return b?m+(Date.now()-b):m}var E=y(),L=k();function H(){var e=t();!l&&(w<L||3e3<=e)&&(w=L,e={n:"engagement",sd:Math.round(L/E*100),d:p,u:v,p:h,e:e,v:3},b=null,m=0,e.h=1,x(d,e))}function S(){"visible"===c.visibilityState&&c.hasFocus()&&null===b?b=Date.now():"hidden"!==c.visibilityState&&c.hasFocus()||(m=t(),b=null,H())}function e(e,t){var n="pageview"===e;if(n&&g&&(H(),E=y(),L=k()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(u.hostname)||"file:"===u.protocol)return f(e,"localhost",t);if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return f(e,null,t);try{if("true"===window.localStorage.plausible_ignore)return f(e,"localStorage flag",t)}catch(e){}var i=s&&s.getAttribute("data-include"),r=s&&s.getAttribute("data-exclude");if(n){i=!i||i.split(",").some(a),r=r&&r.split(",").some(a);if(!i||r)return f(e,"exclusion rule",t)}function a(e){var t=u.pathname;return(t+=u.hash).match(new RegExp("^"+e.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}var i={},r=(i.n=e,i.v=3,t&&t.u),e=(i.u=r||u.href,i.d=p,i.r=c.referrer||null,t&&t.meta&&(i.m=JSON.stringify(t.meta)),t&&t.props&&(i.p=t.props),t&&t.revenue&&(i.$=t.revenue),s.getAttributeNames().filter(function(e){return"event-"===e.substring(0,6)})),o=i.p||{};e.forEach(function(e){var t=e.replace("event-",""),e=s.getAttribute(e);o[t]=o[t]||e}),i.p=o,i.h=1,n&&(l=!1,v=i.u,h=i.p,w=-1,m=0,b=Date.now(),g||(c.addEventListener("visibilitychange",S),window.addEventListener("blur",S),window.addEventListener("focus",S),g=!0)),x(d,i,t)}function x(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(){})}window.addEventListener("load",function(){E=y();var e=0,t=setInterval(function(){E=y(),15==++e&&clearInterval(t)},200)}),c.addEventListener("scroll",function(){E=y();var e=k();L<e&&(L=e)});var n=window.plausible&&window.plausible.q||[];window.plausible=e;for(var i=0;i<n.length;i++)e.apply(this,n[i]);var N=1;function r(e){var t,n,i,r,a;function o(){r||(r=!0,window.location=n.href)}"auxclick"===e.type&&e.button!==N||((t=(e=>{for(;e&&(void 0===e.tagName||!(t=e)||!t.tagName||"a"!==t.tagName.toLowerCase()||!e.href);)e=e.parentNode;var t;return e})(e.target))&&t.href&&t.href.split("?")[0],(a=t)&&a.href&&a.host&&a.host!==u.host&&(a=e,e={name:"Outbound Link: Click",props:{url:(n=t).href}},r=!1,((e,t)=>!e.defaultPrevented&&(t=!t.target||t.target.match(/^_(self|parent|top)$/i),e=!(e.ctrlKey||e.metaKey||e.shiftKey)&&"click"===e.type,t)&&e)(a,n)?((i={props:e.props,callback:o}).revenue=e.revenue,plausible(e.name,i),setTimeout(o,5e3),a.preventDefault()):((i={props:e.props}).revenue=e.revenue,plausible(e.name,i))))}c.addEventListener("click",r),c.addEventListener("auxclick",r)}();

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.