UNPKG

@mhg/blog

Version:
152 lines (151 loc) 2.91 kB
function checkp() { var checkExistIP = setInterval(function() { if (typeof window.MV == 'undefined') return; if (typeof window.MV.ip == 'undefined') return; clearInterval(checkExistIP); try { window.MV.MC.util.Visitor(); } catch(e) {} }, 100) }; function ipa(url, fun) { $.ajax({ url: url, type: 'GET', data: { type: "json" }, success: function(data) { try { window.MV.region = data; window.MV.ip = data.data.myip; checkp() } catch(e) {} }, error(data) { checkp(); var p = new fun(); p.start(); } }) }; function ipb(url, fun) { $.ajax({ url: url, type: 'GET', success: function(data) { try { window.MV.region = data; window.MV.region.data.country = data.data.city; window.MV.ip = data.data.ip; checkp(); } catch(e) {} }, error(data) { checkp(); var p = new fun(); p.start(); } }) }; function ipc(url) { $.ajax({ url: url, type: 'GET', success: function(data) { try { window.MV.region = data; window.MV.region.data.country = data.data.city; window.MV.ip = data.data.ip; checkp(); } catch(e) {} }, error(data) { checkp(); kill(); } }) }; var checkExistJQ = setInterval(function() { if (typeof jQuery == "undefined") return; clearInterval(checkExistJQ); var fN = function() { this.start = function() { ipc('https://i.pi.mhuig.top/getIp') }; }; var f14 = function() { this.start = function() { ipb('https://i.ph.mhuig.top/getIp', fN); }; }; var f13 = function() { this.start = function() { ipb('https://i.pg.mhuig.top/getIp', f14); }; }; var f12 = function() { this.start = function() { ipb('https://i.pf.mhuig.top/getIp', f13); }; }; var f11 = function() { this.start = function() { ipb('https://i.pe.mhuig.top/getIp', f12); }; }; var f10 = function() { this.start = function() { ipb('https://i.pd.mhuig.top/getIp', f11); }; }; var f9 = function() { this.start = function() { ipb('https://i.pc.mhuig.top/getIp', f10); }; }; var f8 = function() { this.start = function() { ipb('https://i.pb.mhuig.top/getIp', f9); }; }; var f7 = function() { this.start = function() { ipb('https://ipa.mhuig.top/getIp', f8); }; }; var f6 = function() { this.start = function() { ipa('https://ip.ss.zxinc.org/info.php', f7); }; }; var f5 = function() { this.start = function() { ipa('https://ip.lsy.cn/info.php', f6); }; }; var f4 = function() { this.start = function() { ipa('https://ip.zxinc.org/info.php', f5); }; }; var f3 = function() { this.start = function() { ipa('https://ip.ss.zxinc.org/api.php', f4); }; }; var f2 = function() { this.start = function() { ipa('https://ip.lsy.cn/api.php', f3); }; }; var f1 = function() { this.start = function() { ipa('https://ip.zxinc.org/api.php', f2); }; }; var p = new f1(); p.start(); }, 100);