PageSourceSearch

https://www.bangordailynews.com/wp-content/plugins/bdn-paywall/inc…/support.js?ts=1789960091&ver=1789960091

js bangordailynews.com collected 2026-10-01 08:30:18 UTC 2,059 bytes, 75 lines download raw bytes

1function initpwdiag() {
2    let urlParams = new URLSearchParams(window.location.search);
3    let blockLogConsole = true;//urlParams.has("blockpackagepwconsole");
4    window.pwSupportString = Date.now().toString().slice(-9).replace(/(.{3})/, '$1-').replace(/(.{7})/, '$1-');
5    
6    window.pwMessageQueue = [];
7    let counter = 0;
8
9    if(!blockLogConsole) {
10        
11        window.oConsole = window.console;
12
13        window.console = {
14
15            log : function(msg) {
16                window.pwMessageQueue.push(msg);
17                oConsole.log(msg);
18            },
19
20            info: function(msg) {
21                oConsole.info(msg);
22            },
23
24            warn: function(msg) {
25                oConsole.warm(msg);
26            }
27        }
28    }
29}
30
31function submituntaggedarticle() {
32
33}
34
35function submitpwdiag() {
36    try {
37        let xhr = new XMLHttpRequest();
38        let url = "https://" + window.location.hostname + "/wp-content/plugins/bdn-paywall/utils/pwdiag.php";
39        xhr.open("POST", url);
40        xhr.setRequestHeader("Accept", "application/json");
41        xhr.setRequestHeader("Content-Type", "application/json");
42
43        xhr.onreadystatechange = function () {
44            if (xhr.readyState === 4) {
45              window.pwMessageQueue = [];
46              window.alert("trace log id: " + window.pwSupportString);
47            }
48        };
49
50        let name = prompt("what is your name?");
51        let phone = prompt("what is a good callback number?");
52
53        if(phone.trim() != "" && name.trim != "") {
54            let data = JSON.stringify({
55                code: window.pwSupportString,
56                contact: {
57                    name: name,
58                    phone: phone
59                },
60                userState: window.userState,
61                payload: window.pwMessageQueue
62            });
63    
64            xhr.send(data);
65        }
66        else {
67            window.alert("All fields are required, trace not submitted!");
68        }
69
70    } catch(error) {
71        console.log(error);
72    }
73}
74
75//initpwdiag();

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.