Add mkvking.com bypass (closes #779)

This commit is contained in:
Tim "timmyRS" Speckhals 2019-12-28 23:03:05 +01:00
parent 2b9e0698ba
commit 4d08a5a701
2 changed files with 13 additions and 5 deletions

View File

@ -49,32 +49,37 @@ if(document instanceof HTMLDocument)
let referer=location.href
if(bypassClipboard&&location.href.indexOf("?id=")>-1)
{
let id=location.href.split("?id=")[1]
switch(domain)
{
case "pahe.in":
case "linegee.net":
case "sweetlantern.com":
case "intercelestial.com":
referer="https://pahe.in/?dd1fa7bc42="+location.href.split("?id=")[1]
referer="https://pahe.in/?dd1fa7bc42="+id
break;
case "wizardsubs.com":
case "zaqe.xyz":
referer="https://wizardsubs.com/?408631a1f0="+location.href.split("?id=")[1]
referer="https://wizardsubs.com/?408631a1f0="+id
break;
case "channelmyanmar.org":
case "roda.site":
referer="https://channelmyanmar.org?1c17f28bf0="+location.href.split("?id=")[1]
referer="https://channelmyanmar.org?1c17f28bf0="+id
break;
case "ad4msan.com":
case "infotekno.net":
referer="https://ad4msan.com?9c2a6bf968="+location.href.split("?id=")[1]
referer="https://ad4msan.com?9c2a6bf968="+id
break;
case "oppa.kdramaindo.tv":
referer="https://oppa.kdramaindo.tv?38971fecb6="+location.href.split("?id=")[1]
referer="https://oppa.kdramaindo.tv?38971fecb6="+id
break;
case "mkvking.com":
referer="https://mkvking.com?c17421bdaf="+id
break;
}
referer+="#bypassClipboard="+bypassClipboard

View File

@ -1020,6 +1020,9 @@ ensureDomLoaded(()=>{
domainBypass("oppa.kdramaindo.tv",()=>document.querySelectorAll("a[href^='https://oppa.kdramaindo.tv?38971fecb6=']").forEach(a=>{
a.href+="#bypassClipboard="+location.pathname.split("/").join("").split("-").join("")+a.parentNode.firstChild.textContent.toLowerCase().split(" ").join("").split("").join("")+a.textContent.trim().toLowerCase()
}))
domainBypass("mkvking.com",()=>document.querySelectorAll("a[href^='https://mkvking.com?c17421bdaf=']").forEach(a=>{
a.href+="#bypassClipboard="+a.getAttribute("title").split("Download ").join("").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))