mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:07:47 +01:00
Open options on grouping of (enabled) sites
This commit is contained in:
parent
925b83eee2
commit
01218cd1f1
2 changed files with 10 additions and 0 deletions
|
@ -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({
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue