PageSourceSearch

https://cniasia.news/assets/js/VisitorCookie.js?v=1.3

js cniasia.news collected 2026-10-07 23:09:49 UTC 894 bytes, 27 lines download raw bytes

1function generateGUID() {
2    var d = new Date().getTime();
3    var guid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
4        var r = (d + Math.random() * 16) % 16 | 0;
5        d = Math.floor(d / 16);
6        return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16);
7    });
8    return guid;
9};
10
11function SetVisitorCookie(cname, cvalue, exdays) {
12    var d = new Date();
13    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
14    var expires = "expires=" + d.toUTCString();
15    document.cookie = cname + "=" + cvalue + "; " + expires;
16}
17
18function GetVisitorCookie(cname) {
19    var name = cname + "=";
20    var ca = document.cookie.split(';');
21    for (var i = 0; i < ca.length; i++) {
22        var c = ca[i];
23        while (c.charAt(0) == ' ') c = c.substring(1);
24        if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
25    }
26    return "";
27}

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.