PageSourceSearch

https://www.uptrends.de/script/cookieconsent.js

js uptrends.de collected 2026-10-04 09:39:22 UTC 1,122 bytes, 34 lines download raw bytes

1(() => {
2  // <stdin>
3  var ONETRUST_LOAD_DELAY_MS = 1300;
4  var UPTRENDS_COOKIE_ID = "UptrendsCookieConsent";
5  function hasCookie(cookieName) {
6    return document.cookie.indexOf(cookieName) > -1;
7  }
8  window.addEventListener("load", () => {
9    setTimeout(() => {
10      if (window.OneTrust || window.Optanon) {
11        return;
12      }
13      if (hasCookie("OptanonConsent") || hasCookie("OptanonAlertBoxClosed")) {
14        return;
15      }
16      if (hasCookie(UPTRENDS_COOKIE_ID)) {
17        return;
18      }
19      const cookieConsentPopup = document.querySelector(`#${UPTRENDS_COOKIE_ID}`);
20      cookieConsentPopup.setAttribute("open", "open");
21      cookieConsentPopup.querySelector("button").addEventListener("click", () => {
22        cookieConsentPopup.removeAttribute("open");
23        const expires = new Date();
24        expires.setFullYear(expires.getFullYear() + 2);
25        const cookieParams = [
26          `${UPTRENDS_COOKIE_ID}=1`,
27          `expires=${expires.toUTCString()}`,
28          `path=/`
29        ];
30        document.cookie = cookieParams.join(";");
31      });
32    }, ONETRUST_LOAD_DELAY_MS);
33  });
34})();

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.