PageSourceSearch

https://bitwarden.com/plsbl/js/script.outbound-links.tagged-events.pageview-props.file-downloads.js

js bitwarden.com collected 2026-09-24 06:56:40 UTC 4,978 bytes, 1 lines download raw bytes

1!function(){var t,e,n,i,o=document.currentScript,a={};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={},s=-1,l=0,d=0;function p(){var o=v();if(!t&&(s<i||o>=3e3)){s=i;var c={n:"engagement",sd:Math.round(i/n*100),d:a.domain,u:e,p:u,e:o,v:36};l=0,d=0,r(a.endpoint,c)}}function f(){"visible"===document.visibilityState&&document.hasFocus()&&0===l?l=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(d=v(),l=0,p())}function v(){return l?d+(Date.now()-l):d}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 w(){var t,e;return t=window.innerHeight,e=window.scrollY,n<=t?n:e+t}function g(v,g){var b,y="pageview"===v;if(y&&c&&(p(),n=m(),i=w()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return h(v,g,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return h(v,g);try{if("true"===window.localStorage.plausible_ignore)return h(v,g,"localStorage flag")}catch(t){}var L={};L.n=v,L.v=36,L.u=location.href,L.d=a.domain,L.r=document.referrer||null,g&&g.meta&&(L.m=JSON.stringify(g.meta)),g&&g.props&&(L.p=g.props),g&&!1===g.interactive&&(L.i=!1);var k=o.getAttributeNames().filter(function(t){return"event-"===t.substring(0,6)}),b=L.p||{};k.forEach(function(t){var e=t.replace("event-",""),n=o.getAttribute(t);b[e]=b[e]||n}),L.p=b,y&&(t=!1,e=L.u,u=L.p,s=-1,d=0,l=Date.now(),c||(document.addEventListener("visibilitychange",f),window.addEventListener("blur",f),window.addEventListener("focus",f),c=!0)),r(a.endpoint,L,g)}function h(e,n,i){i&&a.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 L(t){return t&&t.tagName&&"a"===t.tagName.toLowerCase()}function k(t){if("auxclick"!==t.type||1===t.button){var e=function(t){for(;t&&(void 0===t.tagName||!L(t)||!t.href);)t=t.parentNode;return t}(t.target),n=e&&"string"==typeof e.href&&e.href.split("?")[0];if(!function t(e,n){return!!e&&!(n>3)&&(!!S(e)||t(e.parentNode,n+1))}(e,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},g(n.name,i)}function S(t){var e=t&&t.classList;if(e){for(var n=0;n<e.length;n++)if(e.item(n).match(/plausible-event-name(=|--)(.+)/))return!0}return!1}function x(t){var e=S(t)?t:t&&t.parentNode,n={name:null,props:{}},i=e&&e.classList;if(!i)return n;for(var o=0;o<i.length;o++){var a,r,c=i.item(o).match(/plausible-event-(.+)(=|--)(.+)/);c&&(a=c[1],r=c[3].replace(/\+/g," "),"name"==a.toLowerCase()?n.name=r:n.props[a]=r)}return n}!function t(e){a.endpoint=o.getAttribute("data-api")||new URL(o.src).origin+"/api/event",a.domain=o.getAttribute("data-domain"),a.logging=!0,n=m(),i=w(),new ResizeObserver(function(){n=m()}).observe(document.documentElement),document.addEventListener("scroll",function(){var t=w();t>i&&(i=t)}),function(t){function e(e){e&&n===location.pathname||(n=location.pathname,t("pageview"))}var n,i=function(){e(!0)},o=window.history;if(o.pushState){var a=o.pushState;o.pushState=function(){a.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()})}(g),function(){document.addEventListener("click",k),document.addEventListener("auxclick",k);var t=o.getAttribute("file-types"),e=o.getAttribute("add-file-types");function n(t){if("auxclick"!==t.type||1===t.button){for(var e,n,i,o=t.target,a=0;a<=3&&o;a++){if((e=o)&&e.tagName&&"form"===e.tagName.toLowerCase())return;L(o)&&(n=o),S(o)&&(i=o),o=o.parentNode}if(i){var r=x(i);if(n)r.props.url=n.href,E(t,n,r);else{var c={};c.props=r.props,g(r.name,c)}}}}t&&(y=t.split(",")),e&&(y=e.split(",").concat(b)),document.addEventListener("submit",function(t){var e,n=x(t.target);n.name&&(e={props:n.props},g(n.name,e))}),document.addEventListener("click",n),document.addEventListener("auxclick",n)}();for(var r=window.plausible&&window.plausible.q||[],c=0;c<r.length;c++)g.apply(this,r[c]);window.plausible=g,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.