Improve Linkvertise bypass (re timmyRS#747)

This commit is contained in:
ikancupang 2019-12-19 22:33:35 +07:00 committed by GitHub
parent a9ae2f1121
commit daf5591740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,8 +509,10 @@ if(document instanceof HTMLDocument)
}, },
pause:()=>{} pause:()=>{}
}]} }]}
ensureDomLoaded(()=>{
let xhr=new XMLHttpRequest(), let xhr=new XMLHttpRequest(),
url="/main-es5.f1fb1c6609d5e9bbcd58.js", script=document.querySelectorAll("script[src]"),
url=script[script.length-1].src,
o={timestamp:new Date().getTime()} o={timestamp:new Date().getTime()}
const xhrget=f=>{ const xhrget=f=>{
xhr.onload=f xhr.onload=f
@ -536,12 +538,11 @@ if(document instanceof HTMLDocument)
let json=JSON.parse(xhr.responseText) let json=JSON.parse(xhr.responseText)
if(json&&json.data.target) if(json&&json.data.target)
{ {
safelyNavigate(json.data.target) location.assign(json.data.target)
} }
}) })
}) })
}) })
ensureDomLoaded(()=>{
var div = document.createElement('div'); var div = document.createElement('div');
div.id = "ogxzi8ZzrLy8S4zhUwyc3jPMlXi1h91bA0bASIiZtyT6cOTlX78HtEyXTK0WUGCY3CO8E4hBYI02ZD9mr7jit7R1YqPdkllJ"; div.id = "ogxzi8ZzrLy8S4zhUwyc3jPMlXi1h91bA0bASIiZtyT6cOTlX78HtEyXTK0WUGCY3CO8E4hBYI02ZD9mr7jit7R1YqPdkllJ";
document.body.appendChild(div); document.body.appendChild(div);