Add Quotidiano.net (Italy)

This commit is contained in:
magnolia1234 2020-10-16 18:41:41 +02:00
parent 17b8d485d1
commit 097d51659c
6 changed files with 17 additions and 2 deletions

View file

@ -175,7 +175,8 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid.
[La Repubblica](https://www.repubblica.it) -
[La Stampa](https://www.lastampa.it) -
[Le Scienze](https://www.lescienze.it) -
[LimesOnline (it/en)](https://www.limesonline.com)
[LimesOnline (it/en)](https://www.limesonline.com) -
[Quotidiano.net](https://www.quotidiano.net)
##### Netherlands/Flanders
[Algemeen Dagblad](https://www.ad.nl) and regional ADR sites like
[BN DeStem](https://www.bndestem.nl) -

View file

@ -66,6 +66,7 @@ var allow_cookies = [
'nytimes.com',
'nzz.ch',
'parool.nl',
'quotidiano.net',
'quora.com',
'repubblica.it',
'rollingstone.com',
@ -216,6 +217,7 @@ var blockedRegexes = {
'newyorker.com': /.+\.newyorker\.com\/verso\/static\/presenter-articles.+\.js/,
'nknews.org': /.+\.nknews\.org\/wp-content\/plugins\/leaky-paywall-ajax\/js\/leaky-paywall-ajax\.js/,
'nytimes.com': /(.+meter-svc\.nytimes\.com\/meter\.js.+|.+mwcm\.nyt\.com\/.+\.js)/,
'quotidiano.net': /.+\.tinypass\.com\/.+/,
'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/,
'rollingstone.com': /cdn\.cxense\.com/,
'sacbee.com': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Quotidiano.net (Italy)
Add The West Australian (+ regional)
Fix-update Toronto Star (external cookie-script)
Update opt-in tab (default settings)

View file

@ -1365,6 +1365,15 @@ else if (matchDomain("slate.com")) {
removeDOMElement(slate_roadblock);
}
else if (matchDomain("quotidiano.net")) {
let detail_text_truncated = document.querySelector('div.detail-text--truncated');
let detail_page_paywall = document.querySelector('body.detail-page--paywall');
if (detail_page_paywall) {
removeDOMElement(detail_text_truncated);
detail_page_paywall.classList.remove('detail-page--paywall');
}
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View file

@ -208,6 +208,7 @@
"*://*.post-gazette.com/*",
"*://*.qt.com.au/*",
"*://*.quora.com/*",
"*://*.quotidiano.net/*",
"*://*.qz.com/*",
"*://*.repubblica.it/*",
"*://*.republic.ru/*",
@ -325,5 +326,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.9.0.4"
"version": "1.9.0.5"
}

View file

@ -133,6 +133,7 @@ var defaultSites =
"Pittsburgh Post Gazette": "post-gazette.com",
"Quartz (free articles only)": "qz.com",
"Quora": "quora.com",
"Quotidiano.net": "quotidiano.net",
"Republic.ru": "republic.ru",
"Rolling Stone": "rollingstone.com",
"San Diego Union Tribune": "sandiegouniontribune.com",