Fix La Tercera & MIT Technology Review

This commit is contained in:
magnolia1234 2022-01-31 20:16:36 +01:00
parent fc2125b434
commit 19ccdf79b6
5 changed files with 23 additions and 31 deletions

View file

@ -2,6 +2,8 @@
Changelog Bypass Paywalls Clean - Firefox Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Fix La Tercera (js)
Fix MIT Technology Review (TinyPass)
* v2.5.4.0 (2022-01-30) * v2.5.4.0 (2022-01-30)
Add group Outside magazines Add group Outside magazines

View file

@ -774,7 +774,7 @@ else if (matchDomain('nyteknik.se')) {
else else
csDone = true; csDone = true;
} else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'lavanguardia.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal } else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal
if (matchDomain('abc.es')) { if (matchDomain('abc.es')) {
if (window.location.pathname.endsWith('_amp.html')) { if (window.location.pathname.endsWith('_amp.html')) {
@ -918,12 +918,6 @@ else if (matchDomain(es_epiberica_domains)) {
} }
} }
else if (matchDomain('lavanguardia.com')) {
let paywall = document.querySelector('[class*="ev-open-modal-paywall"]');
let infinite_loading = document.querySelector('#infinite-loading');
removeDOMElement(paywall, infinite_loading);
}
else if (matchDomain('observador.pt')) { else if (matchDomain('observador.pt')) {
let paywall = document.querySelector('.premium-article'); let paywall = document.querySelector('.premium-article');
if (paywall) if (paywall)
@ -2517,7 +2511,7 @@ else if (matchDomain('law360.com')) {
} }
else if (matchDomain('livelaw.in')) { else if (matchDomain('livelaw.in')) {
let paywall = document.querySelectorAll('div.restricted_message > div.story, div.restricted_message > div.row'); let paywall = document.querySelectorAll('div.restricted_message, div.subscribeNow');
if (paywall.length) { if (paywall.length) {
removeDOMElement(...paywall); removeDOMElement(...paywall);
let paywall_content = document.querySelector('div.paywall-content.hide'); let paywall_content = document.querySelector('div.paywall-content.hide');
@ -2927,23 +2921,6 @@ else if (matchDomain('techinasia.com')) {
removeDOMElement(splash_subscribe, paywall_hard); removeDOMElement(splash_subscribe, paywall_hard);
} }
else if (matchDomain('technologyreview.com')) {
window.setTimeout(function () {
let body_obscured = document.querySelector('body[class*="body__obscureContent"]');
if (body_obscured)
removeClassesByPrefix(body_obscured, 'body__obscureContent');
let overlay = document.querySelector('div[class*="overlayFooter__wrapper"]');
if (overlay)
overlay.setAttribute('style', 'display:none');
let content_body_hidden = document.querySelector('div[class*="contentBody__contentHidden"]');
if (content_body_hidden)
removeClassesByPrefix(content_body_hidden, 'contentBody__contentHidden');
let content_body_overlay = document.querySelector('div[class*="contentBody__overlay"]');
if (content_body_overlay)
content_body_overlay.removeAttribute('class');
}, 500);
}
else if (matchDomain('the-american-interest.com')) { else if (matchDomain('the-american-interest.com')) {
let counter = document.getElementById('article-counter'); let counter = document.getElementById('article-counter');
removeDOMElement(counter); removeDOMElement(counter);

View file

@ -586,6 +586,7 @@
"*://*.qiota.com/*", "*://*.qiota.com/*",
"*://*.tinypass.com/*", "*://*.tinypass.com/*",
"*://*.tribdss.com/*", "*://*.tribdss.com/*",
"*://*.zephr.com/*",
"*://*.amazonaws.com/*", "*://*.amazonaws.com/*",
"*://*.apnarm.net.au/*", "*://*.apnarm.net.au/*",
"*://*.bntech.io/*", "*://*.bntech.io/*",
@ -610,8 +611,7 @@
"*://*.rndtech.de/*", "*://*.rndtech.de/*",
"*://*.sanoma-sndp.fi/*", "*://*.sanoma-sndp.fi/*",
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*", "*://*.wsj.net/*"
"*://*.zephr.com/*"
], ],
"version": "2.5.4.0" "version": "2.5.4.1"
} }

View file

@ -855,7 +855,8 @@ var defaultSites = {
}, },
"La Tercera": { "La Tercera": {
domain: "latercera.com", domain: "latercera.com",
block_regex: /(\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/)/ allow_cookies: 1,
block_regex: /(\.latercera\.com\/arc\/subs\/p\.min\.js|cdn\.cxense\.com\/)/
}, },
"La Tribune": { "La Tribune": {
domain: "latribune.fr", domain: "latribune.fr",
@ -886,7 +887,8 @@ var defaultSites = {
block_regex: /\.poool\.fr\// block_regex: /\.poool\.fr\//
}, },
"Le Journal du Net": { "Le Journal du Net": {
domain: "journaldunet.com" domain: "journaldunet.com",
allow_cookies: 1
}, },
"Le Parisien": { "Le Parisien": {
domain: "leparisien.fr", domain: "leparisien.fr",
@ -1061,7 +1063,8 @@ var defaultSites = {
}, },
"MIT Technology Review": { "MIT Technology Review": {
domain: "technologyreview.com", domain: "technologyreview.com",
block_regex: /(\.blueconic\.net\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.mjs)/ allow_cookies: 1,
block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.mjs)/
}, },
"Mitteldeutsche Zeitung": { "Mitteldeutsche Zeitung": {
domain: "mz.de", domain: "mz.de",

View file

@ -30,6 +30,16 @@
"domain": "huffingtonpost.it", "domain": "huffingtonpost.it",
"group_rule": "###_gr_it_repubblica_domains" "group_rule": "###_gr_it_repubblica_domains"
}, },
"La Tercera": {
"domain": "latercera.com",
"allow_cookies": 1,
"block_regex": "(\\.latercera\\.com\\/arc\\/subs\\/p\\.min\\.js|cdn\\.cxense\\.com\\/)"
},
"MIT Technology Review": {
"domain": "technologyreview.com",
"allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.mjs)"
},
"###_gr_it_repubblica_domains": { "###_gr_it_repubblica_domains": {
"group_rule_domains": ["gelocal.it", "huffingtonpost.it", "ilsecoloxix.it", "italian.tech", "lanuovasardegna.it", "lastampa.it", "lescienze.it", "limesonline.com", "repubblica.it"], "group_rule_domains": ["gelocal.it", "huffingtonpost.it", "ilsecoloxix.it", "italian.tech", "lanuovasardegna.it", "lastampa.it", "lescienze.it", "limesonline.com", "repubblica.it"],
"allow_cookies": 1, "allow_cookies": 1,