PageSourceSearch

https://www.focus.pl/assets/js/plas01.exclusions.file-downloads.hash.local.outbound-links.js

js focus.pl collected 2026-10-02 03:45:10 UTC 3,919 bytes, 1 lines download raw bytes

1!function(){var t,e,n,i=document.currentScript,o={};function a(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 r=!1,c=location.href,l={},u=-1,d=0,s=0;function p(){var i=v();if(!t&&(u<n||i>=3e3)){u=n;var r={n:"engagement",sd:Math.round(n/e*100),d:o.domain,u:c,p:l,e:i,v:33};d=0,s=0,r.h=1,a(o.endpoint,r)}}function f(){"visible"===document.visibilityState&&document.hasFocus()&&0===d?d=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(s=v(),d=0,p())}function v(){return d?s+(Date.now()-d):s}function m(){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 h(v,h){var b="pageview"===v;b&&r&&(p(),e=m(),n=g());try{if("true"===window.localStorage.plausible_ignore)return w(v,h,"localStorage flag")}catch(t){}var y=i&&i.getAttribute("data-include"),k=i&&i.getAttribute("data-exclude");function E(t){var e=location.pathname;return(e+=location.hash).match(RegExp("^"+t.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}if(b){var x=!y||y&&y.split(",").some(E),L=k&&k.split(",").some(E);if(!x||L)return w(v,h,"exclusion rule")}var S={};S.n=v,S.v=33,S.u=location.href,S.d=o.domain,S.r=document.referrer||null,h&&h.meta&&(S.m=JSON.stringify(h.meta)),h&&h.props&&(S.p=h.props),h&&!1===h.interactive&&(S.i=!1),S.h=1,b&&(t=!1,c=S.u,l=S.p,u=-1,s=0,d=Date.now(),r||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),r=!0)),a(o.endpoint,S,h)}function w(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){if("auxclick"!==t.type||1===t.button){var e=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),n=e&&"string"==typeof e.href&&e.href.split("?")[0];if(e&&"string"==typeof e.href&&e.host&&e.host!==location.host)return E(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 E(t,e,{name:"File Download",props:{url:n}})}}function E(t,e,n){var i;i={props:n.props},h(n.name,i)}!function t(a){var r,c;o.endpoint=i.getAttribute("data-api")||new URL(i.src).origin+"/api/event",o.domain=i.getAttribute("data-domain"),o.logging=!0,e=m(),n=g(),window.addEventListener("load",function(){e=m();var t=0,n=setInterval(function(){e=m(),15==++t&&clearInterval(n)},200)}),document.addEventListener("scroll",function(){e=m();var t=g();t>n&&(n=t)}),function(t){var e;function n(n){e=location.pathname,t("pageview")}window.addEventListener("hashchange",function(){n(!0)}),"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){e||"visible"!==document.visibilityState||n()}):n(),window.addEventListener("pageshow",function(t){t.persisted&&n()})}(h),document.addEventListener("click",k),document.addEventListener("auxclick",k),r=i.getAttribute("file-types"),c=i.getAttribute("add-file-types"),r&&(y=r.split(",")),c&&(y=c.split(",").concat(b));for(var l=window.plausible&&window.plausible.q||[],u=0;u<l.length;u++)h.apply(this,l[u]);window.plausible=h,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.