PageSourceSearch

https://xcrom.com/xcrom-cookie.js

js xcrom.com collected 2026-10-10 02:14:36 UTC 742 bytes, 29 lines download raw bytes

1function setCookie(cname, cvalue) {
2    var d = new Date();
3    d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000));
4    var expires = "expires="+d.toUTCString();
5    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
6	location.reload();
7}
8
9function getCookie(cname) {
10    var name = cname + "=";
11    var ca = document.cookie.split(';');
12    for(var i = 0; i < ca.length; i++) {
13        var c = ca[i];
14        while (c.charAt(0) == ' ') {
15            c = c.substring(1);
16        }
17        if (c.indexOf(name) == 0) {
18            return c.substring(name.length, c.length);
19        }
20    }
21    return "";
22}
23
24function catala(){
25	if (getCookie('lang')=='ca') 
26		return true; 
27	else 
28		return false;
29}

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.