Improve drivenime.com bypass (re #930)

This commit is contained in:
ikancupang 2020-04-28 00:28:02 +07:00 committed by GitHub
parent 4df50ffc9c
commit fa99cfbd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1504,7 +1504,7 @@ ensureDomLoaded(()=>{
a.href+="#bypassClipboard="+location.pathname.replace(/[^a-zA-Z0-9]/g,"").toLowerCase()+a.closest("ul").previousElementSibling.textContent.replace(/[^a-zA-Z0-9]/g,"").toLowerCase()+a.textContent.toLowerCase()
}
}))
domainBypass("drivenime.com",()=>document.querySelectorAll("a[href^='https://drivenime.com?a82ad005b1=']").forEach(a=>{
domainBypass("drivenime.com",()=>document.querySelectorAll("a[href*='?a82ad005b1=']").forEach(a=>{
let p=a.parentNode,qe=p.previousElementSibling
while(qe&&qe.tagName!="H2")
{