PageSourceSearch

https://agreements.ai/js/script.exclusions.file-downloads.hash.loc…ual.outbound-links.revenue.tagged-events.js

js agreements.ai collected 2026-10-05 11:48:12 UTC 4,725 bytes, 1 lines download raw bytes

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

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.