PageSourceSearch

https://feedbackbuch.de/js/script.exclusions.file-downloads.local.…bound-links.pageview-props.tagged-events.js

js feedbackbuch.de collected 2026-10-08 20:14:52 UTC 3,902 bytes, 1 lines download raw bytes

1!function(){"use strict";var p=window.location,s=window.document,u=s.currentScript,l=u.getAttribute("data-api")||new URL(u.src).origin+"/api/event",c=u.getAttribute("data-domain");function f(t,e){t&&console.warn("Ignoring Event: "+t),e&&e.callback&&e.callback()}function t(t,e){try{if("true"===window.localStorage.plausible_ignore)return f("localStorage flag",e)}catch(t){}var a=u&&u.getAttribute("data-include"),n=u&&u.getAttribute("data-exclude");if("pageview"===t){a=!a||a.split(",").some(r),n=n&&n.split(",").some(r);if(!a||n)return f("exclusion rule",e)}function r(t){return p.pathname.match(new RegExp("^"+t.trim().replace(/\*\*/g,".*").replace(/([^\.])\*/g,"$1[^\\s/]*")+"/?$"))}var a={},n=(a.n=t,a.u=p.href,a.d=c,a.r=s.referrer||null,e&&e.meta&&(a.m=JSON.stringify(e.meta)),e&&e.props&&(a.p=e.props),u.getAttributeNames().filter(function(t){return"event-"===t.substring(0,6)})),i=a.p||{},o=(n.forEach(function(t){var e=t.replace("event-",""),t=u.getAttribute(t);i[e]=i[e]||t}),a.p=i,new XMLHttpRequest);o.open("POST",l,!0),o.setRequestHeader("Content-Type","text/plain"),o.send(JSON.stringify(a)),o.onreadystatechange=function(){4===o.readyState&&e&&e.callback&&e.callback({status:o.status})}}var e=window.plausible&&window.plausible.q||[];window.plausible=t;for(var a,n=0;n<e.length;n++)t.apply(this,e[n]);function r(){a!==p.pathname&&(a=p.pathname,t("pageview"))}function i(){r()}var o,d=window.history;function m(t){return t&&t.tagName&&"a"===t.tagName.toLowerCase()}d.pushState&&(o=d.pushState,d.pushState=function(){o.apply(this,arguments),i()},window.addEventListener("popstate",i)),"prerender"===s.visibilityState?s.addEventListener("visibilitychange",function(){a||"visible"!==s.visibilityState||r()}):r();var v=1;function g(t){if("auxclick"!==t.type||t.button===v){var e,a,n=function(t){for(;t&&(void 0===t.tagName||!m(t)||!t.href);)t=t.parentNode;return t}(t.target),r=n&&n.href&&n.href.split("?")[0];if(!function t(e,a){if(!e||L<a)return!1;if(N(e))return!0;return t(e.parentNode,a+1)}(n,0))return(e=n)&&e.href&&e.host&&e.host!==p.host?b(t,n,{name:"Outbound Link: Click",props:{url:n.href}}):(e=r)&&(a=e.split(".").pop(),y.some(function(t){return t===a}))?b(t,n,{name:"File Download",props:{url:r}}):void 0}}function b(t,e,a){var n,r=!1;function i(){r||(r=!0,window.location=e.href)}!function(t,e){if(!t.defaultPrevented)return e=!e.target||e.target.match(/^_(self|parent|top)$/i),t=!(t.ctrlKey||t.metaKey||t.shiftKey)&&"click"===t.type,e&&t}(t,e)?(n={props:a.props},plausible(a.name,n)):(n={props:a.props,callback:i},plausible(a.name,n),setTimeout(i,5e3),t.preventDefault())}s.addEventListener("click",g),s.addEventListener("auxclick",g);var d=["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"],h=u.getAttribute("file-types"),w=u.getAttribute("add-file-types"),y=h&&h.split(",")||w&&w.split(",").concat(d)||d;function k(t){var t=N(t)?t:t&&t.parentNode,e={name:null,props:{}},a=t&&t.classList;if(a)for(var n=0;n<a.length;n++){var r,i=a.item(n).match(/plausible-event-(.+)(=|--)(.+)/);i&&(r=i[1],i=i[3].replace(/\+/g," "),"name"==r.toLowerCase()?e.name=i:e.props[r]=i)}return e}var L=3;function x(t){if("auxclick"!==t.type||t.button===v){for(var e,a,n,r,i=t.target,o=0;o<=L&&i;o++){if((n=i)&&n.tagName&&"form"===n.tagName.toLowerCase())return;m(i)&&(e=i),N(i)&&(a=i),i=i.parentNode}a&&(r=k(a),e?(r.props.url=e.href,b(t,e,r)):((t={}).props=r.props,plausible(r.name,t)))}}function N(t){var e=t&&t.classList;if(e)for(var a=0;a<e.length;a++)if(e.item(a).match(/plausible-event-name(=|--)(.+)/))return!0;return!1}s.addEventListener("submit",function(t){var e,a=t.target,n=k(a);function r(){e||(e=!0,a.submit())}n.name&&(t.preventDefault(),e=!1,setTimeout(r,5e3),t={props:n.props,callback:r},plausible(n.name,t))}),s.addEventListener("click",x),s.addEventListener("auxclick",x)}();

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.