diff --git a/background.js b/background.js index 720c9d3..c6b8c6d 100644 --- a/background.js +++ b/background.js @@ -355,6 +355,15 @@ ext_api.storage.local.get({ ext_api.storage.local.set({ sites: sites }); + } else { + ext_api.management.getSelf(function (result) { + if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) { + let new_groups = ['###_de_westfalen_medien', '###_es_unidad', '###_it_gedi', '###_nl_dpg_media', '###_usa_genomeweb']; + let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))); + if (open_options) + ext_api.runtime.openOptionsPage(); + } + }); } sites_default = Object.keys(defaultSites).filter(x => defaultSites[x].domain && !defaultSites[x].domain.match(/^(#options_|###$)/)); ext_api.storage.local.set({ diff --git a/changelog.txt b/changelog.txt index 06ab33f..4fad0d0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Add Aachener Nachrichten &Zeitung Remove World Politics Review (fix obsolete) Fix Limburger.nl & Mediahuis Belgie (mobile) Fix TheTimes.co.uk (epaper-fix obsolete) +Open options on grouping of (enabled) sites * v2.7.9.0 (2022-08-07) Add Limburger.nl