diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 30afa36..2c338a7 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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!" diff --git a/background.js b/background.js index f3f93e0..00b210c 100644 --- a/background.js +++ b/background.js @@ -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})