PageSourceSearch

https://www.vill.it/_assets/4b8447fc5027c18462f92e16ee881224/Js/setCookiesThirdCountry.js

js vill.it collected 2026-10-05 21:25:54 UTC 1,154 bytes, 34 lines download raw bytes

1function setCookiesThirdCountry() {
2  var deleteCookie = "Expires=Thu, 01 Jan 1970 00:00:00 UTC; Path=/";
3  if (window.parent.location.protocol == "https:") {
4    deleteCookie = deleteCookie + "; SameSite=None; Secure; Partitioned";
5  }
6
7  document.cookie = "bh_cookies_accepted=; " + deleteCookie;
8  document.cookie = "bh_cookies_only_functional=; " + deleteCookie;
9  document.cookie = "bh_cookies_allow_all=; " + deleteCookie;
10  document.cookie = "bh_cookies_allow_marketing=; " + deleteCookie;
11  document.cookie = "bh_cookies_allow_statistic=; " + deleteCookie;
12  document.cookie = "bh_cookies_allow_thirdcountries=; " + deleteCookie;
13
14  const cookieIgnoreStrings = [
15    "ignorecookiewarnung",
16    "ignorecookiewarning",
17    "ignorecookiepopup",
18  ];
19
20  function containsIgnoreString(str, substrings) {
21    for (let i = 0; i !== substrings.length; ++i) {
22      if (str.includes(substrings[i])) {
23        return true;
24      }
25    }
26    return false;
27  }
28
29  if (containsIgnoreString(window.parent.location.href, cookieIgnoreStrings)) {
30    window.parent.location = window.parent.location.pathname;
31  } else {
32    window.parent.location.reload();
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.