PageSourceSearch

https://chathub.gg/js/script.exclusions.hash.local.manual.outbound-links.js

js chathub.gg collected 2026-09-24 10:29:34 UTC 3,032 bytes, 1 lines download raw bytes

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

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.