This commit is contained in:
Tim Speckhals 2018-08-22 02:34:24 +02:00
parent 6aedd420e1
commit 233256bdb9
No known key found for this signature in database
GPG Key ID: A62ADB92F7ADEEB6
3 changed files with 19 additions and 31 deletions

View File

@ -1,34 +1,21 @@
//Install & Uninstall Actions
chrome.runtime.onInstalled.addListener(details=>{
if(details.reason=="install")
window.open(chrome.extension.getURL("/html/firstrun.html"))
})
chrome.runtime.setUninstallURL("https://goo.gl/forms/H8FswYQ2a37LSxc13")
var trackerBypassEnabled=true,customBypasses={};
//Disableable Tracker Bypass using api.hell.sh. Privacy Policy: https://hell.sh/privacy
var trackerBypassEnabled=true;
chrome.storage.sync.get(["no_tracker_bypass"],result=>{
if(result&&result.no_tracker_bypass&&result.no_tracker_bypass==="true")
{
trackerBypassEnabled=false
}
})
chrome.storage.local.get(["custom_bypasses"],result=>
{
if(result&&result.custom_bypasses)
{
customBypasses=JSON.parse(result.custom_bypasses)
}
})
chrome.storage.onChanged.addListener(changes=>{
if(changes.custom_bypasses)
{
customBypasses=JSON.parse(changes.custom_bypasses.newValue)
}
if(changes.no_tracker_bypass)
{
trackerBypassEnabled=(changes.no_tracker_bypass.newValue!=="true");
}
trackerBypassEnabled=(changes.no_tracker_bypass.newValue!=="true")
})
//This requires the <all_urls> permission. For more information on why Universal Bypass has access to all websites, read the section on https://universal-bypass.org/
chrome.webRequest.onBeforeRequest.addListener(details=>{
if(!trackerBypassEnabled||details.method!="GET"||details.type!="main_frame")
return
@ -52,7 +39,6 @@ chrome.webRequest.onBeforeRequest.addListener(details=>{
return{redirectUrl:destination}
}
},{urls:getTrackerPatterns()},["blocking"])
function getTrackerPatterns()
{
let trackerPatterns=[

View File

@ -356,8 +356,9 @@ if(document instanceof HTMLDocument)
})
if(!bypassed)
ensureDomLoaded(()=>{
hrefBypass(/ouo\.(io|press)/,()=>showNotification(msgs.backend))
domainBypass("rom.io",()=>showNotification(msgs.backend))
hrefBypass(/ouo\.(io|press)/,()=>showNotification(msgs.backend))
hrefBypass(/bspin\.club\/faucet\//,()=>showNotification(msgs.backend))
domainBypass("adfoc.us",()=>{
let b=document.querySelector(".skip[href]")
if(b)
@ -366,15 +367,6 @@ if(document instanceof HTMLDocument)
safelyNavigate(b.href)
}
})
domainBypass("linkshrink.net",()=>{
let p=document.getElementById("pause"),s=document.getElementById("skip")
if(p&&s)
{
p.style.display="none"
s.style.display="block"
showNotification(msgs.timerSkip)
}
})
domainBypass("sub2unlock.com",()=>{
$(document).ready(()=>{
let steps=document.querySelectorAll(".uk.unlock-step-link.check")
@ -598,7 +590,7 @@ if(document instanceof HTMLDocument)
//GemPixel Premium URL Shortener
if(typeof appurl!="undefined"&&typeof token!="undefined")
{
//For this bypass to work, we detect a certain inline script and we might have to modify and execute (eval) it. Please note that eval is needed for this to work.
//For this bypass to work, we detect a certain inline script and we might have to modify and execute (eval) it. Please note that eval is needed for this to work and does not decrease security because the site would execute its scripts either way — Universal Bypass is just executing it without the timer.
let scripts=document.getElementsByTagName("script")
for(let i in scripts)
{
@ -801,6 +793,16 @@ if(document instanceof HTMLDocument)
form.submit()
return
}
if(document.querySelector("a[href^='https://linkshrink.net/homepage'] > img.lgo"))//LinkShrink.net
{
let p=document.getElementById("pause"),s=document.getElementById("skip")
if(p&&s)
{
p.style.display="none"
s.style.display="block"
showNotification(msgs.timerSkip)
}
}
if(typeof app!="undefined"&&"options"in app&&"intermediate"in app.options)//Shorte.st
{
app.options.intermediate.timeToWait=3

View File

@ -10,7 +10,7 @@
"name": "Universal Bypass",
"description": "__MSG_appDesc__",
"homepage_url": "https://universal-bypass.org/",
"version": "5.5.7.1",
"version": "5.5.8",
"author": "timmyRS",
"minimum_chrome_version": "41",
"options_ui": {