PageSourceSearch

https://www.plasmo.com/plasmopower/js/pla.exclusions.local.outbound-links.js

js plasmo.com collected 2026-09-24 10:28:43 UTC 3,385 bytes, 1 lines download raw bytes

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