mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-19 23:01:08 +02:00
Add Blick.ch (Ringier Gruppe)
This commit is contained in:
parent
ab42d49411
commit
818fe15b36
9 changed files with 39 additions and 35 deletions
12
README.md
12
README.md
|
@ -850,17 +850,19 @@ Grouped in options:\
|
|||
*[NWT Media](https://www.nwtmedia.se)* sites (opt-in to custom sites)
|
||||
|
||||
##### Switzerland
|
||||
[Beobachter](https://www.beobachter.ch) -
|
||||
[Handelszeitung](https://www.handelszeitung.ch) -
|
||||
[Neue Zürcher Zeitung](https://www.nzz.ch) -
|
||||
[Schweizer Monat](https://schweizermonat.ch) -
|
||||
[The Market](https://themarket.ch)\
|
||||
[Neue Zürcher Zeitung](https://www.nzz.ch)
|
||||
[The Market](https://themarket.ch)
|
||||
|
||||
Grouped in options:\
|
||||
*[CH Media](https://chmedia.ch/marken)* sites like (opt-in to custom sites for unlisted)\
|
||||
[Aargauer Zeitung](https://www.aargauerzeitung.ch) -
|
||||
[Luzerner Zeitung](https://www.luzernerzeitung.ch) -
|
||||
[St. Galler Tagblatt](https://www.tagblatt.ch)
|
||||
[St. Galler Tagblatt](https://www.tagblatt.ch)\
|
||||
*Ringier Gruppe* sites like\
|
||||
[Blick](https://www.blick.ch) -
|
||||
[Beobachter](https://www.beobachter.ch) -
|
||||
[Handelszeitung](https://www.handelszeitung.ch)
|
||||
|
||||
Grouped in options:\
|
||||
*[Groupe ESH Médias](https://www.eshmedias.ch)* sites like\
|
||||
|
|
|
@ -223,7 +223,7 @@ function prep_regex_str(str, domain = '') {
|
|||
}
|
||||
|
||||
function addRules(domain, rule) {
|
||||
if (rule.remove_cookies > 0 || rule.hasOwnProperty('remove_cookies_select_hold') || !(rule.hasOwnProperty('allow_cookies') || rule.hasOwnProperty('remove_cookies_select_drop')))
|
||||
if (rule.remove_cookies > 0 || rule.hasOwnProperty('remove_cookies_select_hold') || !(rule.hasOwnProperty('allow_cookies') || rule.hasOwnProperty('remove_cookies_select_drop')) || rule.cs_clear_lclstrg)
|
||||
cs_clear_lclstrg.push(domain);
|
||||
if (rule.hasOwnProperty('remove_cookies_select_drop') || rule.hasOwnProperty('remove_cookies_select_hold')) {
|
||||
rule.allow_cookies = 1;
|
||||
|
@ -542,7 +542,7 @@ ext_api.storage.local.get({
|
|||
} else {
|
||||
ext_api.management.getSelf(function (result) {
|
||||
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
|
||||
let new_groups = ['###_fr_groupe_infopro', '###_usa_digiday'];
|
||||
let new_groups = ['###_ch_ringier', '###_fr_groupe_infopro', '###_usa_digiday'];
|
||||
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();
|
||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||
|
||||
Post-release
|
||||
Add Blick.ch (Ringier Gruppe)
|
||||
Add CNN (regwall)
|
||||
Fix Expresso.pt (json)
|
||||
Fix The Athletic (scroll)
|
||||
|
|
|
@ -476,6 +476,8 @@ else {
|
|||
let comments = document.querySelector('#comments-load, .comments-module');
|
||||
removeDOMElement(comments);
|
||||
} else {
|
||||
if (window.location.pathname.includes('/video/') && document.querySelector('div.vms-premium-video'))
|
||||
header_nofix(document.querySelector('div.video-hub'));
|
||||
let ads = document.querySelectorAll('.header_ads-container, .ad-block');
|
||||
hideDOMElement(...ads);
|
||||
}
|
||||
|
@ -816,7 +818,7 @@ else if (matchDomain(['beobachter.ch', 'handelszeitung.ch'])) {
|
|||
}
|
||||
}
|
||||
}
|
||||
let ads = document.querySelectorAll('div.ad-wrapper');
|
||||
let ads = document.querySelectorAll('div.ad-wrapper, div[id^="apn-ad-slot-"]');
|
||||
hideDOMElement(...ads);
|
||||
}
|
||||
|
||||
|
@ -1537,7 +1539,7 @@ if (matchDomain('etc.se')) {
|
|||
let gradient = document.querySelector('div.bg-gradient-white');
|
||||
if (gradient)
|
||||
gradient.removeAttribute('class');
|
||||
let footer = document.querySelector('footer');
|
||||
let footer = document.querySelector('section > footer');
|
||||
removeDOMElement(footer.parentNode);
|
||||
}
|
||||
let ads = document.querySelectorAll('div[class$="-ad"]');
|
||||
|
@ -4853,8 +4855,7 @@ else if (matchDomain('nytimes.com')) {
|
|||
else if (matchDomain('nzherald.co.nz')) {
|
||||
// plus code in contentScript_once_var.js (timing)
|
||||
let premium_toaster = document.querySelector('#premium-toaster');
|
||||
let ads = document.querySelectorAll('.ad');
|
||||
hideDOMElement(premium_toaster, ...ads);
|
||||
hideDOMElement(premium_toaster);
|
||||
}
|
||||
|
||||
else if (matchDomain('outlookbusiness.com')) {
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.6.0.2"
|
||||
"version": "3.6.0.3"
|
||||
}
|
||||
|
|
|
@ -60,11 +60,6 @@
|
|||
"cs_code": "[{\"cond\":\"div.fp-paywall\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.fp-content\", \"rm_attrib\":\"class\"}]}]",
|
||||
"domain": "bizwest.com"
|
||||
},
|
||||
"Blick.ch": {
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.tinypass\\.com",
|
||||
"domain": "blick.ch"
|
||||
},
|
||||
"Bm-online.de": {
|
||||
"add_ext_link": "div.plenigo-teaser|div.entry-content",
|
||||
"add_ext_link_type": "google_search_tool",
|
||||
|
|
4
lib/purify.min.js
vendored
4
lib/purify.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -112,6 +112,7 @@
|
|||
"*://*.bild.de/*",
|
||||
"*://*.billboard.com/*",
|
||||
"*://*.bizjournals.com/*",
|
||||
"*://*.blick.ch/*",
|
||||
"*://*.bloomberg.com/*",
|
||||
"*://*.bloombergadria.com/*",
|
||||
"*://*.bnd.com/*",
|
||||
|
@ -861,5 +862,5 @@
|
|||
"*://archive.vn/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.6.0.2"
|
||||
"version": "3.6.0.3"
|
||||
}
|
||||
|
|
34
sites.js
34
sites.js
|
@ -238,13 +238,6 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
cs_dompurify: 1
|
||||
},
|
||||
"Beobachter.ch": {
|
||||
allow_cookies: 1,
|
||||
domain: "beobachter.ch",
|
||||
block_regex: /\.tinypass\.com\//,
|
||||
cs_dompurify: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Berliner Zeitung": {
|
||||
domain: "berliner-zeitung.de",
|
||||
allow_cookies: 1,
|
||||
|
@ -1127,13 +1120,6 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Handelszeitung.ch": {
|
||||
allow_cookies: 1,
|
||||
domain: "handelszeitung.ch",
|
||||
block_regex: /\.tinypass\.com\//,
|
||||
cs_dompurify: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Harper's Magazine": {
|
||||
domain: "harpers.org",
|
||||
block_regex: /\/harpers\.org\/wp-content\/themes\/timber\/static\/js\/modal.+\.js/
|
||||
|
@ -2095,6 +2081,24 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Ringier Gruppe": {
|
||||
allow_cookies: 1,
|
||||
domain: "###_ch_ringier",
|
||||
group: [
|
||||
"beobachter.ch",
|
||||
"blick.ch",
|
||||
"handelszeitung.ch"
|
||||
],
|
||||
block_regex: /\.tinypass\.com\//,
|
||||
cs_dompurify: 1,
|
||||
useragent: "googlebot",
|
||||
exception: [{
|
||||
domain: "blick.ch",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.tinypass\.com\//
|
||||
}
|
||||
]
|
||||
},
|
||||
"Roularta Media Group": {
|
||||
domain: "###_be_roularta",
|
||||
group: [
|
||||
|
@ -3124,4 +3128,4 @@ var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr'
|
|||
var fr_jamg_nofix_domains = ['africabusinessplus.com', 'jeuneafrique.com', 'theafricareport.com'];
|
||||
var it_gedi_nofix_domains = ['gelocal.it', 'limesonline.com'];
|
||||
var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl'];
|
||||
var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'americanscientist.org', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'svd.se', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, fr_jamg_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains);
|
||||
var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'americanscientist.org', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.com', 'bnn.de', 'borsen.dk', 'businessdesk.co.nz', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'svd.se', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'usine-digitale.fr', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, fr_jamg_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains);
|
||||
|
|
Loading…
Reference in a new issue