mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Add Aachener Zeitung (Germany)
This commit is contained in:
parent
d84d5d5738
commit
09b758a12e
6 changed files with 27 additions and 3 deletions
|
@ -332,6 +332,7 @@ Grouped in options:\
|
|||
[SudInfo](https://www.sudinfo.be)
|
||||
|
||||
##### Germany/Austria
|
||||
[Aachener Zeitung](https://www.aachener-zeitung.de) -
|
||||
[Augsburger Allgemeine](https://www.augsburger-allgemeine.de) -
|
||||
[Berliner Zeitung](https://www.berliner-zeitung.de) -
|
||||
[Cicero](https://www.cicero.de) -
|
||||
|
|
|
@ -39,6 +39,7 @@ const restrictions = {
|
|||
// Don't remove cookies before page load
|
||||
// allow_cookies are completed with domains in custom sites (default allow/remove_cookies)
|
||||
var allow_cookies_default = [
|
||||
'aachener-zeitung.de',
|
||||
'abc.es',
|
||||
'abril.com.br',
|
||||
'ajc.com',
|
||||
|
@ -268,6 +269,7 @@ var change_headers = use_google_bot.concat(use_bing_bot, use_facebook_referer, u
|
|||
|
||||
// block paywall-scripts individually
|
||||
var blockedRegexes = {
|
||||
'aachener-zeitung.de': /cdn\.ampproject\.org\/v\d\/amp-(ad|analytics|consent|subscriptions)-.+\.js/,
|
||||
'abril.com.br': /\.abril\.com\.br\/.+\/abril-paywall\/js\/abril-paywall\.js/,
|
||||
'adweek.com': /\.lightboxcdn\.com\//,
|
||||
'afr.com': /api\.afr\.com\/graphql\?query=.+PaywallRuleQuery/,
|
||||
|
@ -1183,7 +1185,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
let usa_today_site = (matchUrlDomain('gannett-cdn.com', details.url) && matchUrlDomain(['usatoday.com'], header_referer));
|
||||
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || es_elesp_site || it_repubblica_site || usa_law360_site || usa_mw_site || usa_natgeo_site || usa_today_site;
|
||||
|
||||
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'handelsblatt.com', 'ilfattoquotidiano.it', 'inc42.com', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'scmp.com', 'seekingalpha.com', 'shz.de', 'staradvertiser.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk', 'washingtonpost.com', 'wsj.com'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
|
||||
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['aachener-zeitung.de', 'asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'handelsblatt.com', 'ilfattoquotidiano.it', 'inc42.com', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'scmp.com', 'seekingalpha.com', 'shz.de', 'staradvertiser.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk', 'washingtonpost.com', 'wsj.com'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
|
||||
}
|
||||
|
||||
if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_apn_site && !au_swm_site) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Aachener Zeitung (Germany)
|
||||
Add Grupo Prensa Iberica (Spain)
|
||||
Fix Challenges.fr (blur)
|
||||
Fix LesEchos.fr (json)
|
||||
|
|
|
@ -275,7 +275,25 @@ else {
|
|||
|
||||
} else if (window.location.hostname.match(/\.(de|at|ch)$/) || matchDomain(['faz.net', 'handelsblatt.com'])) {//germany/austria/switzerland - ch
|
||||
|
||||
if (matchDomain('augsburger-allgemeine.de')) {
|
||||
if (matchDomain('aachener-zeitung.de')) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('?output=amp')) {
|
||||
let subscr_sections = document.querySelectorAll('section[subscriptions-section="content"]');
|
||||
for (let subscr_section of subscr_sections)
|
||||
subscr_section.removeAttribute('subscriptions-section');
|
||||
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');
|
||||
removeDOMElement(...amp_ads);
|
||||
} else {
|
||||
let paywall = document.querySelector('.park-article-paywall, .text-blurred');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('augsburger-allgemeine.de')) {
|
||||
let url = window.location.href;
|
||||
if (!url.includes('-amp.html')) {
|
||||
let paywall = document.querySelector('div.aa-visible-logged-out');
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"*://*.360dx.com/*",
|
||||
"*://*.aachener-zeitung.de/*",
|
||||
"*://*.aamulehti.fi/*",
|
||||
"*://*.abc.es/*",
|
||||
"*://*.abendblatt.de/*",
|
||||
|
@ -557,5 +558,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.6.3"
|
||||
"version": "2.3.6.4"
|
||||
}
|
1
sites.js
1
sites.js
|
@ -1,6 +1,7 @@
|
|||
var defaultSites =
|
||||
{
|
||||
"360Dx": "360dx.com",
|
||||
"Aachener Zeitung": "aachener-zeitung.de",
|
||||
"ABC.es": "abc.es",
|
||||
"Adweek": "adweek.com",
|
||||
"Algemeen Dagblad (+ regional)": "###_nl_ad_region",
|
||||
|
|
Loading…
Reference in a new issue