Disable crowd bypass by default on Firefox

This commit is contained in:
Sainan 2020-04-23 16:58:19 +02:00
parent f4abe8d614
commit 996c939e6a
2 changed files with 14 additions and 3 deletions

View File

@ -60,7 +60,7 @@
"message": "Block IP loggers if they can't be bypassed."
},
"optionsCrowdBypass": {
"message": "Give and take the destinations of unbypassable shorteners."
"message": "Crowd Bypass: Give and take the destinations of unbypassable shorteners."
},
"optionsCrowdAutoOpen": {
"message": "Open crowd-sourced destinations in a new tab after % second(s)."
@ -129,7 +129,7 @@
"message": "Unfortunately, you're the first to encounter this link, but after you've waited, other Universal Bypass users will no longer have to."
},
"crowdDisabled": {
"message": "This website is bypassed by crowd bypass, which you have disabled in the options."
"message": "This website is bypassed by crowd bypass, which you can enable in the options."
},
"crowdBypassed": {
"message": "You might not have to wait!"

View File

@ -87,7 +87,18 @@ brws.storage.sync.get(["disable","navigation_delay","no_tracker_bypass","no_inst
trackerBypassEnabled=(res.no_tracker_bypass!=="true")
instantNavigationTrackers=(res.no_instant_navigation_trackers!=="true")
blockIPLoggers=(res.allow_ip_loggers!=="true")
crowdEnabled=(res.crowd_bypass_opt_out!=="true")
if(res.crowd_bypass_opt_out)
{
crowdEnabled=(res.crowd_bypass_opt_out!=="true")
}
else
{
crowdEnabled=!firefox
if(firefox)
{
brws.storage.sync.set({crowd_bypass_opt_out:"true"})
}
}
if(!res.crowd_open_delay||res.crowd_open_delay==61)
{
brws.storage.sync.set({crowd_open_delay:-6})