Add channelmyanmar.org bypass (closes #752)

This commit is contained in:
Tim "timmyRS" Speckhals 2019-12-21 15:20:57 +01:00
parent 3c8cd7d86b
commit fee1ebe92c
2 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,11 @@ if(document instanceof HTMLDocument)
case "zaqe.xyz":
referer="https://wizardsubs.com/?408631a1f0="+location.href.split("?id=")[1]
break;
case "channelmyanmar.org":
case "roda.site":
referer="https://channelmyanmar.org?1c17f28bf0="+location.href.split("?id=")[1]
break;
}
referer+="#bypassClipboard="+bypassClipboard
}

View File

@ -981,6 +981,14 @@ ensureDomLoaded(()=>{
domainBypass("wizardsubs.com",()=>document.querySelectorAll("a[href^='https://wizardsubs.com?408631a1f0=']").forEach(a=>{
a.href+="#bypassClipboard="+location.pathname.split("/").join("").split("-").join("")+a.parentNode.textContent.split(":")[0].split(" ").join("").toLowerCase()
}))
domainBypass("channelmyanmar.org",()=>document.querySelectorAll("a[href^='https://channelmyanmar.org?1c17f28bf0=']").forEach(a=>{
let qe=a.previousElementSibling
while(qe&&qe.tagName!="H2")
{
qe=qe.previousElementSibling
}
a.href+="#bypassClipboard="+location.pathname.split("/").join("").split("-").join("")+qe.textContent.split(" ").join("").split("(").join("-").split(")").join("-").toLowerCase()
}))
hrefBypass(/stayonline\.pro\/l\/(.*)\//,m=>$.post(endpoint,{id:m[1],ref:""},r=>safelyNavigate(r.data.value)))
hrefBypass(/nexusmods\.com\/.*\/mods\/[0-9]*\?tab=files&file_id=[0-9]*/,()=>ifElement("button#slowDownloadButton[data-download-url]",b=>safelyNavigate(b.getAttribute("data-download-url"))))
domainBypass("xlink.cc",()=>safelyNavigate(JSON.parse(atob(window.bootstrapData)).linkResponse.link.long_url))