PageSourceSearch

https://rapsinews.ru/js/libs/cookie.js?

js rapsinews.ru collected 2026-10-02 04:22:53 UTC 734 bytes, 22 lines download raw bytes

1function setCookie(cookieName, value, msToExpire, path, domain, secure) {
2    var expiryDate;
3
4    // relative time to expire in milliseconds
5    if (msToExpire) {
6        expiryDate = new Date();
7        expiryDate.setTime(expiryDate.getTime() + msToExpire);
8    }
9
10    document.cookie = cookieName + '=' + value +
11        (msToExpire ? ';expires=' + expiryDate.toGMTString() : '') +
12        ';path=' + (path || '/') +
13        (domain ? ';domain=' + domain : '') +
14        (secure ? ';secure' : '');
15}
16
17function getCookie(name) {
18  var matches = document.cookie.match(new RegExp(
19    "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
20  ));
21  return matches ? decodeURIComponent(matches[1]) : undefined;
22}

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.