PageSourceSearch

https://www.huhutv.com.cn/images/57/userNumMonitor.js

js huhutv.com.cn collected 2026-10-02 18:29:17 UTC 845 bytes, 20 lines download raw bytes

1var xhr = new XMLHttpRequest();
2xhr.open("GET", "http://www.huhutv.com.cn/wzis/front/userDataService/getTotal.do", true);
3xhr.onload = function() {
4    if (xhr.status >= 200 && xhr.status < 400) {
5        var responseText = xhr.responseText;
6        var parser = new DOMParser();
7        var doc = parser.parseFromString(responseText, "text/html");
8        var targetDivContent = doc.querySelector('div').innerHTML;
9        var targetElement = document.querySelector('.usermonitele');
10        var newNum=parseInt(targetDivContent.trim(),10);
11        if ( newNum > 0 ) {
12            targetElement.innerHTML = newNum;
13        } else {
14            console.error("未找到目标元素,或者目标元素未大于0");
15        }
16    } else {
17        console.error("获取数据请求失败:" + xhr.status);
18    }
19};
20xhr.send();

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.