Provide version information to universal-bypass.org

This commit is contained in:
Tim "timmyRS" Speckhals 2020-01-24 00:39:49 +01:00
parent 71bd742502
commit a338845230
2 changed files with 13 additions and 1 deletions

View File

@ -210,7 +210,10 @@ const downloadInjectionScript = () => new Promise(callback => {
xhr.send()
}),
refreshInjectionScript = () => {
injectionScript = (upstreamInjectionScript + "\n" + userScript).split("UNIVERSAL_BYPASS_INTERNAL_VERSION").join("1")
injectionScript = (upstreamInjectionScript + "\n" + userScript)
.split("UNIVERSAL_BYPASS_INTERNAL_VERSION").join("2")
.split("UNIVERSAL_BYPASS_EXTERNAL_VERSION").join(brws.runtime.getManifest().version)
.split("UNIVERSAL_BYPASS_INJECTION_VERSION").join(upstreamCommit?upstreamCommit.substr(0,7):"dev")
}
downloadInjectionScript()
brws.alarms.create("update-injection-script", {periodInMinutes: 60})

View File

@ -545,6 +545,15 @@ domainBypass("apkpsp.com",()=>{
//Insertion point 1 — insert bypasses running before the DOM is loaded above this comment
hrefBypass(/(njiir|healthykk|linkasm|dxdrive|getwallpapers)\.com|punchsubs\.net|k2s\.cc|muhammadyoga\.me|u\.to|skiplink\.io|firefaucet\.win\/l\/|emulator\.games\/download\.php/,()=>window.setInterval=f=>setInterval(f,1))
hrefBypass(/(racaty|longfiles|filepuma|filehorse|portableapps)\.com|indishare\.org|datei\.to|keisekai\.fun|nexusmods\.com\/.*\/mods\/[0-9]*\?tab=files&file_id=[0-9]*/,()=>window.setTimeout=f=>setTimeout(f,1))
domainBypass("universal-bypass.org",()=>{
window.universalBypassInstalled=true
window.universalBypassInternalVersion=UNIVERSAL_BYPASS_INTERNAL_VERSION
if(UNIVERSAL_BYPASS_INTERNAL_VERSION>=2)
{
window.universalBypassExternalVersion="UNIVERSAL_BYPASS_EXTERNAL_VERSION"
window.universalBypassInjectionVersion="UNIVERSAL_BYPASS_INJECTION_VERSION"
}
})
if(bypassed)
{
return