Add group ARA.cat

This commit is contained in:
magnolia1234 2022-05-22 19:59:59 +02:00
parent b4833762e9
commit 9da652fee6
6 changed files with 40 additions and 2 deletions

View file

@ -594,6 +594,9 @@ Grouped in options:\
[Política Exterior](https://www.politicaexterior.com)
Grouped in options:\
*ARA* sites like:\
[Ara.cat](https://www.ara.cat) -
[Ara Balears](https://www.arabalears.cat)\
*Grupo Prensa Ibérica* sites like (opt-in to custom sites for unlisted):\
[Diario de Mallorca](https://www.diariodemallorca.es) -
[El Día](https://www.eldia.es) -

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add group ARA.cat
Add LaVie.fr
Add Mallorca Zeitung
Add The Lawyer's Daily (Canada)

View file

@ -1023,6 +1023,18 @@ if (matchDomain('abc.es')) {
}
}
else if (matchDomain(['ara.cat', 'arabalears.cat'])) {
let url = window.location.href;
if (!window.location.pathname.endsWith('.amp.html')) {
let paywall = document.querySelector('div.paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
}
}
else if (matchDomain('cmjornal.pt')) {
let paywall = document.querySelector('.bloqueio_exclusivos');
let amphtml = document.querySelector('link[rel="amphtml"]');

View file

@ -74,6 +74,8 @@
"*://*.americanaffairsjournal.org/*",
"*://*.americanbanker.com/*",
"*://*.apollo-magazine.com/*",
"*://*.ara.cat/*",
"*://*.arabalears.cat/*",
"*://*.artnet.com/*",
"*://*.arvopaperi.fi/*",
"*://*.asiatimes.com/*",
@ -676,5 +678,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.6.9.7"
"version": "2.6.9.8"
}

View file

@ -78,6 +78,16 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.tinypass\.com\//
},
"ARA": {
domain: "###_cat_ara",
group: [
"ara.cat",
"arabalears.cat"
],
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
useragent: "googlebot"
},
"Artnet": {
domain: "artnet.com",
allow_cookies: 1,
@ -1852,7 +1862,7 @@ var defaultSites = {
"sun-sentinel.com"
],
allow_cookies: 1,
block_regex: /(\.tribdss\.com\/|js\.matheranalytics\.com\/|\.zephr\.com\/zephr-browser\/.+\/zephr-browser\.umd\.js)/
block_regex: /(\.tribdss\.com\/|\.blueconic\.net\/|\.zephr\.com\/zephr-browser\/.+\/zephr-browser\.umd\.js)/
},
"Trouw": {
domain: "trouw.nl",

View file

@ -1,4 +1,14 @@
{
"ARA": {
"domain": "###_cat_ara",
"group": [
"ara.cat",
"arabalears.cat"
],
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js",
"useragent": "googlebot"
},
"La Vie": {
"domain": "lavie.fr",
"allow_cookies": 1,