PageSourceSearch

https://www.tet.lv/media/site/cookies.js

js tet.lv collected 2026-09-24 08:59:34 UTC 1,920 bytes, 44 lines download raw bytes

1var docCookies = {
2  getItem: function (sKey) {
3    if (!sKey || !this.hasItem(sKey)) { return null; }
4    try{
5    return decodeURIComponent(document.cookie.replace(new RegExp("(?:^|.*;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"), "$1"));
6    }catch(e){ return null; }
7  },
8  setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {
9    if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) { return; }
10    var sExpires = "";
11    if (vEnd) {
12      switch (vEnd.constructor) {
13        case Number:
14          sExpires = vEnd === Infinity ? "; expires=Tue, 19 Jan 2038 03:14:07 GMT" : "; max-age=" + vEnd;
15          break;
16        case String:
17          sExpires = "; expires=" + vEnd;
18          break;
19        case Date:
20          sExpires = "; expires=" + vEnd.toGMTString();
21          break;
22      }
23    }
24    try{
25    document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : "");
26    }catch(e){ return; }
27  },
28  removeItem: function (sKey, sPath) {
29    if (!sKey || !this.hasItem(sKey)) { return; }
30    try{
31    document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + (sPath ? "; path=" + sPath : "");
32    }catch(e){ return; }
33  },
34  hasItem: function (sKey) {
35    return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie);
36  },
37  keys: /* optional method: you can safely remove it! */ function () {
38    try{
39    var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/);
40    for (var nIdx = 0; nIdx < aKeys.length; nIdx++) { aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]); }
41    return aKeys;
42    }catch(e){return [];}
43  }
44};

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.