Add an information about file hosters not being bypassable

This commit is contained in:
Tim "timmyRS" Speckhals 2020-04-01 19:09:57 +02:00
parent db31ac4312
commit 8812c2f11c
3 changed files with 11 additions and 2 deletions

View File

@ -107,6 +107,9 @@
"beforeNavigateInstant": {
"message": "You are being navigated to %"
},
"infoFileHoster": {
"message": "Unfortunately, they use backend validation to make sure you have actually waited before you can download the file."
},
"crowdWait": {
"message": "Unfortunately, you're the first to encounter this link, but after you've waited, other Universal Bypass users will no longer have to."
},

View File

@ -177,7 +177,7 @@ const updateBypassDefinitions = callback => {
uniqueness.push(val)
upstreamInjectionScript = upstreamInjectionScript.split("{{channel."+name+"}}").join(channel[name] = "data-" + val)
})
;["crowdWait","crowdDisabled"].forEach(name => {
;["infoFileHoster","crowdWait","crowdDisabled"].forEach(name => {
upstreamInjectionScript = upstreamInjectionScript.split("{{msg."+name+"}}").join(brws.i18n.getMessage(name).split("\\").join("\\\\").split("\"").join("\\\""))
})
upstreamInjectionScript = upstreamInjectionScript.split("{{icon/48.png}}").join(brws.runtime.getURL("icon/48.png"))
@ -278,7 +278,7 @@ refreshInjectionScript = () => {
if(enabled)
{
injectionScript = (upstreamInjectionScript + "\n" + userScript)
.split("UNIVERSAL_BYPASS_INTERNAL_VERSION").join("6")
.split("UNIVERSAL_BYPASS_INTERNAL_VERSION").join("7")
.split("UNIVERSAL_BYPASS_EXTERNAL_VERSION").join(extension_version)
.split("UNIVERSAL_BYPASS_INJECTION_VERSION").join(upstreamCommit?upstreamCommit.substr(0,7):"dev")
Object.keys(preflightRules).forEach(name=>{

View File

@ -639,6 +639,12 @@ if(!bypassed)
document.querySelectorAll("form[action]").forEach(e=>e.action+="#ignoreCrowdBypass")
document.querySelectorAll("a[href]").forEach(e=>e.href+="#ignoreCrowdBypass")
}
domainBypass("up-load.io",()=>{
if(UNIVERSAL_BYPASS_INTERNAL_VERSION>=7)
{
insertInfoBox("{{msg.infoFileHoster}}")
}
})
domainBypass(/adfoc\.us|ads\.bdcraft\.net/,()=>ifElement(".skip[href]",b=>safelyNavigate(b.href)))
domainBypass("srt.am",()=>{
if(document.querySelector(".skip-container"))