v-fixed43: IPv6切换按钮更明显(图标+间距)
This commit is contained in:
1 parent
762ce64d67
commit
7a945dda72
1 file changed
+1
-1
@@ -223,7 +223,7 @@ function writeChecked(p, s) {
|
||||
// 清理旧版探针(V1 自动跳转 / V2 旧版)
|
||||
s = s.replace(/\/\*V6-PROBE-V[12]\*\/.*?catch\(e\)\{\}\s*/s, "");
|
||||
if (s.includes("/*V6-PROBE-V1*/")) { log("v6-probe: skip (already)"); return; }
|
||||
const probe = '/*V6-PROBE-V1*/try{if("tv.88531.cn"===location.hostname){var H={v4:"https://tv.88531.cn",v6:"https://tv6.88531.cn"};function showSel(){var m=document.createElement("div");m.id="__v6m";m.style.cssText="position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6)";var c=document.createElement("div");c.style.cssText="background:#1e1e2e;color:#fff;padding:24px;border-radius:12px;max-width:360px;text-align:center;font-family:sans-serif";var h=document.createElement("h3");h.textContent="选择访问线路";h.style.margin="0 0 12px";c.appendChild(h);var p=document.createElement("p");p.textContent="IPv4 / IPv6 自由切换";p.style.cssText="opacity:.7;font-size:13px;margin:0 0 16px";c.appendChild(p);var row=document.createElement("div");row.style.cssText="display:flex;gap:10px;justify-content:center";function btn(txt,col,host){var b=document.createElement("button");b.textContent=txt;b.style.cssText="padding:8px 18px;border:none;border-radius:8px;background:"+col+";color:#fff;cursor:pointer";b.onclick=function(){localStorage.setItem("__v6dest",host===H.v4?"v4":"v6");location.replace(host+location.pathname+location.search+location.hash)};row.appendChild(b)}btn("IPv4","#3b82f6",H.v4);btn("IPv6","#10b981",H.v6);c.appendChild(row);m.appendChild(c);document.body.appendChild(m)}function addToggle(){var b=document.createElement("button");b.textContent="IPV4/IPV6";b.style.cssText="position:fixed;top:8px;right:8px;z-index:99998;padding:6px 10px;border:none;border-radius:6px;background:rgba(0,0,0,.5);color:#fff;font-size:12px;cursor:pointer";b.onclick=function(){var c=localStorage.getItem("__v6dest")||"v4";localStorage.setItem("__v6dest",c==="v4"?"v6":"v4");location.replace((c==="v4"?H.v6:H.v4)+location.pathname+location.search+location.hash)};document.body.appendChild(b)}if(!localStorage.getItem("__v6dest")){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",showSel)}else{showSel()}}else{if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",addToggle)}else{addToggle()}}}}catch(e){} ';
|
||||
const probe = '/*V6-PROBE-V1*/try{if("tv.88531.cn"===location.hostname){var H={v4:"https://tv.88531.cn",v6:"https://tv6.88531.cn"};function showSel(){var m=document.createElement("div");m.id="__v6m";m.style.cssText="position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6)";var c=document.createElement("div");c.style.cssText="background:#1e1e2e;color:#fff;padding:24px;border-radius:12px;max-width:360px;text-align:center;font-family:sans-serif";var h=document.createElement("h3");h.textContent="选择访问线路";h.style.margin="0 0 12px";c.appendChild(h);var p=document.createElement("p");p.textContent="IPv4 / IPv6 自由切换";p.style.cssText="opacity:.7;font-size:13px;margin:0 0 16px";c.appendChild(p);var row=document.createElement("div");row.style.cssText="display:flex;gap:10px;justify-content:center";function btn(txt,col,host){var b=document.createElement("button");b.textContent=txt;b.style.cssText="padding:8px 18px;border:none;border-radius:8px;background:"+col+";color:#fff;cursor:pointer";b.onclick=function(){localStorage.setItem("__v6dest",host===H.v4?"v4":"v6");location.replace(host+location.pathname+location.search+location.hash)};row.appendChild(b)}btn("IPv4","#3b82f6",H.v4);btn("IPv6","#10b981",H.v6);c.appendChild(row);m.appendChild(c);document.body.appendChild(m)}function addToggle(){var b=document.createElement("button");b.textContent="🌐 IPV4/IPV6";b.style.cssText="position:fixed;top:10px;right:120px;z-index:99998;padding:8px 14px;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(0,0,0,.55);color:#fff;font-size:13px;font-weight:600;cursor:pointer;backdrop-filter:blur(6px)";b.onclick=function(){var c=localStorage.getItem("__v6dest")||"v4";localStorage.setItem("__v6dest",c==="v4"?"v6":"v4");location.replace((c==="v4"?H.v6:H.v4)+location.pathname+location.search+location.hash)};document.body.appendChild(b)}if(!localStorage.getItem("__v6dest")){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",showSel)}else{showSel()}}else{if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",addToggle)}else{addToggle()}}}}catch(e){} ';
|
||||
writeChecked(target, probe + s);
|
||||
log("v6-probe: injected into", target);
|
||||
})();
|
||||
|
||||
Reference in new issue
Block a user