Add Augsburger Allgemeine (Germany)

This commit is contained in:
magnolia1234 2021-02-13 18:11:58 +01:00
parent 516705c5c8
commit b6793533f6
6 changed files with 19 additions and 2 deletions

View file

@ -265,6 +265,7 @@ Groupe Rossel sites (grouped in options) like
[SudInfo](https://www.sudinfo.be)
##### Germany/Austria
[Augsburger Allgemeine](https://www.augsburger-allgemeine.de) -
[Cicero](https://www.cicero.de) -
[Deutsche Wirtschafts Nachrichten](https://deutsche-wirtschafts-nachrichten.de) -
[Die Zeit](https://www.zeit.de) -

View file

@ -33,6 +33,7 @@ const restrictions = {
// allow_cookies are completed with domains in sites.js (default allow/remove_cookies)
var allow_cookies_default = [
'abc.es',
'augsburger-allgemeine.de',
'belfasttelegraph.co.uk',
'berlingske.dk',
'bostonglobe.com',
@ -222,6 +223,7 @@ var change_headers = use_google_bot.concat(use_bing_bot, use_facebook_referer, u
// block paywall-scripts individually
var blockedRegexes = {
'adweek.com': /.+\.lightboxcdn\.com\/.+/,
'augsburger-allgemeine.de':/(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(ad|subscriptions)-.+\.js)/,
'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/,
'alternatives-economiques.fr': /.+\.poool\.fr\/.+/,
'americanbanker.com': /\.tinypass\.com\/.+/,
@ -904,7 +906,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.com', header_referer) && isSiteEnabled({url: header_referer}));
let bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && isSiteEnabled({url: header_referer}) &&
matchUrlDomain(['barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'gelocal.it', 'ilsecoloxix.it', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'seekingalpha.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, usa_mcc_domains), header_referer));
matchUrlDomain(['augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'gelocal.it', 'ilsecoloxix.it', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'seekingalpha.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, usa_mcc_domains), header_referer));
if (!isSiteEnabled(details) && !inkl_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !cl_elmerc_site && !medium_custom_domain && !uk_nlr_site && !usa_discmag_site && !usa_mw_site && !bpc_amp_site) {
return;

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Augsburger Allgemeine (Germany)
Add group McClatchy (USA)
Add Neue Osnabruecker Zeitung (Germany)
Add Time Magazine

View file

@ -14,7 +14,7 @@ var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'l
var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com'];
// clean local storage of sites (with an exemption for hold-list)
var arr_localstorage_hold = ['charliehebdo.fr', 'cmjornal.pt', 'elmundo.es', 'expansion.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'];
var arr_localstorage_hold = ['augsburger-allgemeine.de', 'charliehebdo.fr', 'cmjornal.pt', 'elmundo.es', 'expansion.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'];
arr_localstorage_hold = arr_localstorage_hold.concat(de_funke_media_domains, es_grupo_vocento_domains);
if (!matchDomain(arr_localstorage_hold)){
window.localStorage.clear();
@ -2105,6 +2105,17 @@ else if (matchDomain('noz.de')) {
}
}
else if (matchDomain('augsburger-allgemeine.de')) {
let url = window.location.href;
if (url.includes('-amp.html')) {
let subscr_sections = document.querySelectorAll('div[subscriptions-section="content"]');
for (let subscr_section of subscr_sections)
subscr_section.removeAttribute('subscriptions-section');
let amp_ads = document.querySelectorAll('amp-ad');
removeDOMElement(...amp_ads);
}
}
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
csDone = true;

View file

@ -58,6 +58,7 @@
"*://*.arvopaperi.fi/*",
"*://*.asia.nikkei.com/*",
"*://*.atavist.com/*",
"*://*.augsburger-allgemeine.de/*",
"*://*.baltimoresun.com/*",
"*://*.barrons.com/*",
"*://*.bd.nl/*",

View file

@ -9,6 +9,7 @@ var defaultSites =
"American Affairs": "americanaffairsjournal.org",
"American Banker": "americanbanker.com",
"Atavist Magazine": "atavist.com",
"Augsburger Allgemeine": "augsburger-allgemeine.de",
"Australia News Corp": "###_au_news_corp",
"Australian Community Media (daily)": "###_au_comm_media",
"Australian Provincial Newspapers (daily) (opt-in)": "###_au_prov_news",