 Issue 29363607:
  Issue 4612 - enable AA on first run and make automatic adding of any subscription optional  (Closed)
    
  
    Issue 29363607:
  Issue 4612 - enable AA on first run and make automatic adding of any subscription optional  (Closed) 
  | Index: lib/prefs.js | 
| diff --git a/lib/prefs.js b/lib/prefs.js | 
| index d15c3b02092a21ad843a44f03b6974937f47a555..04cb1b6b608d71d23b6516d1b4736c028b37366d 100644 | 
| --- a/lib/prefs.js | 
| +++ b/lib/prefs.js | 
| @@ -32,6 +32,7 @@ let defaults = { | 
| subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%VERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNELSTATUS%&responseStatus=%RESPONSESTATUS%", | 
| subscriptions_autoupdate: true, | 
| subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exceptionrules.txt", | 
| + first_run_enable_acceptable_ads: true, | 
| 
Felix Dahlke
2016/11/21 11:41:11
Why not move this down, so it's right next to the
 
sergei
2016/11/21 14:03:20
I wanted to keep it close to subscriptions_excepti
 
Felix Dahlke
2016/11/22 11:45:08
IMO yes, but you could also move the other thing u
 | 
| documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%", | 
| update_url_release: "https://update.adblockplus.org/%NAME%/update.json?type=%TYPE%", | 
| update_url_devbuild: "https://adblockplus.org/devbuilds/%NAME%/update.json?type=%TYPE%", | 
| @@ -44,10 +45,12 @@ let defaults = { | 
| notificationurl: "https://notification.adblockplus.org/notification.json", | 
| suppress_first_run_page: false, | 
| disable_auto_updates: false, | 
| + first_run_enable_current_locale_subscription: true, | 
| 
Felix Dahlke
2016/11/21 11:41:11
Hm, I think the name could be improved. How about
 
sergei
2016/11/21 14:03:20
I think that "enable_ad_blocking" is confusing bec
 
sergei
2016/11/22 09:43:03
Or maybe first_run_enable_subscription_auto_choosi
 
Felix Dahlke
2016/11/22 11:45:08
There is a way to disable ad blocking - this pref
 
sergei
2016/11/22 11:58:43
No, if these pref values are false there is still
 | 
| notifications_ignoredcategories: [], | 
| }; | 
| -let preconfigurable = ["suppress_first_run_page", "disable_auto_updates"]; | 
| +let preconfigurable = ["suppress_first_run_page", "disable_auto_updates", | 
| + "first_run_enable_acceptable_ads", "first_run_enable_current_locale_subscription"]; | 
| 
Felix Dahlke
2016/11/21 11:41:11
Back when we discussed what should be preconfigura
 
sergei
2016/11/21 14:03:20
Could you please remind where it had been discusse
 
Felix Dahlke
2016/11/22 11:45:08
My bad, I forgot how that stuff works :P Yeah of c
 | 
| let values; | 
| let path = _fileSystem.resolve("prefs.json"); |