Fix h-gen.xyz detecting Universal Bypass (closes #994)

This commit is contained in:
Tim "timmyRS" Speckhals 2020-03-06 06:49:26 +01:00
parent 09796d3595
commit c9934577e9

View File

@ -792,7 +792,7 @@ brws.webRequest.onHeadersReceived.addListener(details=>{
for(let i in details.responseHeaders) for(let i in details.responseHeaders)
{ {
let header=details.responseHeaders[i] let header=details.responseHeaders[i]
if(header.name.toLowerCase()=="location"&&header.value.substr(0,30)=="https://h-gen.xyz/redirect?id=") if(header.name.toLowerCase()=="location"&&header.value.substr(0,18)=="https://h-gen.xyz/"&&header.value!="https://h-gen.xyz/")
{ {
return {redirectUrl:brws.runtime.getURL("html/before-navigate.html")+"?target="+encodeURIComponent(header.value)+"&referer="+details.url+"&safe_in=90"} return {redirectUrl:brws.runtime.getURL("html/before-navigate.html")+"?target="+encodeURIComponent(header.value)+"&referer="+details.url+"&safe_in=90"}
} }