PageSourceSearch

https://www.waimao.ai/js/ip.js

js waimao.ai collected 2026-10-05 14:59:51 UTC 1,130 bytes, 26 lines download raw bytes

1//获取客户端IP且存本地
2var Visitor_IP = getCookie("Visitor_IP");
3var Visitor_Country = getCookie("Visitor_Country");
4if ((Visitor_IP == null || Visitor_Country == null) || (Visitor_IP == "" || Visitor_Country == "")) {
5    console.log("456")
6    $.ajax({
7        url: "https://api.ipinfodb.com/v3/ip-country/?key=c9dcc88453e33a9e63ebad8d65f91583e87abd8185dd95f09fbeef6c62264f7d&format=json",
8        type: "GET",
9        data: {},        
10        dataType: "json",
11        success: function (result) {
12            $("input[name='Visitor_IP']").val(result.ipAddress)
13            $("input[name='Visitor_Country']").val(result.countryName)
14            setCookie("Visitor_IP", result.ipAddress, 30);
15            setCookie("Visitor_Country", result.countryName, 30);
16        },
17        error: function () {
18            $("input[name='Visitor_IP']").val("0.0.0.0")
19            $("input[name='Visitor_Country']").val("未知地区")
20        }
21    });
22} else {
23    console.log("cookie存在")
24    $("input[name='Visitor_IP']").val(Visitor_IP)
25    $("input[name='Visitor_Country']").val(Visitor_Country)
26}

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.