Update bypass

Now pahe.ph uses a click event handler to negate the bypass.
This commit is contained in:
CEPU 2020-08-04 22:52:33 +07:00
parent 145e20c13e
commit 1c873a96e2

View File

@ -1445,24 +1445,27 @@ ensureDomLoaded(()=>{
})) }))
/*jshint ignore:end*/ /*jshint ignore:end*/
} }
domainBypass(/pahe\.(in|me|ph)/,()=>document.querySelectorAll("a[href*='?'], a[href*='?id=']").forEach(a=>{ domainBypass(/pahe\.(in|me|ph)/,()=>{
let qe=a.previousElementSibling document.querySelectorAll("a[href*='?']").forEach(a=>{
while(qe&&qe.tagName!="B"&&qe.tagName!="STRONG") let qe=a.previousElementSibling
{ while(qe&&qe.tagName!="B"&&qe.tagName!="STRONG")
qe=qe.previousElementSibling {
} qe=qe.previousElementSibling
a.href+="#bypassClipboard="+location.pathname.replace(/[^a-zA-Z0-9]/g,"") }
let ep=a.parentNode.querySelector("span[style] > b") a.href+="#bypassClipboard="+location.pathname.replace(/[^a-zA-Z0-9]/g,"")
if(ep!==null) let ep=a.parentNode.querySelector("span[style] > b")
{ if(ep!==null)
a.href+=ep.textContent.replace(/[^a-zA-Z0-9]/g,"").toLowerCase() {
} a.href+=ep.textContent.replace(/[^a-zA-Z0-9]/g,"").toLowerCase()
if(qe!==null) }
{ if(qe!==null)
a.href+=qe.textContent.replace(/[^a-zA-Z0-9]/g,"").toLowerCase() {
} a.href+=qe.textContent.replace(/[^a-zA-Z0-9]/g,"").toLowerCase()
a.href+=a.textContent.toLowerCase() }
})) a.href+=a.textContent.toLowerCase()
})
jQuery&&jQuery(document).off("click",".box.download a")
})
domainBypass("channelmyanmar.org",()=>document.querySelectorAll("a[href^='https://channelmyanmar.org?1c17f28bf0=']").forEach(a=>{ domainBypass("channelmyanmar.org",()=>document.querySelectorAll("a[href^='https://channelmyanmar.org?1c17f28bf0=']").forEach(a=>{
if(a.classList.contains("FLMBTN-Btn")) if(a.classList.contains("FLMBTN-Btn"))
{ {