Add MediaNama (India)

This commit is contained in:
magnolia1234 2021-05-18 17:11:49 +02:00
parent f5cab90605
commit a8397dd6b0
7 changed files with 20 additions and 6 deletions

View File

@ -561,6 +561,7 @@ Grupo Vocento (ABC) regional sites like
[Bloomberg Quint](https://www.bloombergquint.com)* - [Bloomberg Quint](https://www.bloombergquint.com)* -
[Business Standard](https://www.business-standard.com) - [Business Standard](https://www.business-standard.com) -
[LiveMint](https://www.livemint.com) - [LiveMint](https://www.livemint.com) -
[MediaNama](https://www.medianama.com) -
[The Economic Times (ET Prime)](https://economictimes.indiatimes.com) - [The Economic Times (ET Prime)](https://economictimes.indiatimes.com) -
[The Hindu](https://www.thehindu.com) - [The Hindu](https://www.thehindu.com) -
[The Hindu BusinessLine](https://www.thehindubusinessline.com) - [The Hindu BusinessLine](https://www.thehindubusinessline.com) -

View File

@ -21,9 +21,11 @@ const restrictions = {
'elpais.com': /(\/elpais\.com\/$|\/(.+\.)?elpais\.com\/.+\.html)/, 'elpais.com': /(\/elpais\.com\/$|\/(.+\.)?elpais\.com\/.+\.html)/,
'faz.net': /^((?!\/.+\.faz\.net\/aktuell\/(\?switchfaznet)?$).)*$/, 'faz.net': /^((?!\/.+\.faz\.net\/aktuell\/(\?switchfaznet)?$).)*$/,
'foreignaffairs.com': /.+\.foreignaffairs\.com\/(articles|fa-caching|interviews|reviews|sites)\/.+/, 'foreignaffairs.com': /.+\.foreignaffairs\.com\/(articles|fa-caching|interviews|reviews|sites)\/.+/,
'ft.com': /.+\.ft.com\/content\//, 'ft.com': /.+\.ft\.com\/content\//,
'gestion.pe': /.+\/gestion\.pe\/.+((\w)+(\-)+){3,}.+/, 'gestion.pe': /.+\/gestion\.pe\/.+((\w)+(\-)+){3,}.+/,
'globo.com': /^((?!\/valor\.globo\.com\/).)*$/, 'globo.com': /^((?!\/valor\.globo\.com\/).)*$/,
'medianama.com': /\.medianama\.com\/(\d){4}\/(\d){2}\//,
'timesofindia.com': /.+\.timesofindia\.com\/(toi-plus(\/.+)?|.+\.cms)/,
'nknews.org': /^((?!nknews\.org\/pro\/).)*$/, 'nknews.org': /^((?!nknews\.org\/pro\/).)*$/,
'quora.com': /^((?!quora\.com\/search\?q=).)*$/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
'seekingalpha.com': /.+\/seekingalpha\.com\/($|(amp\/)?(article|news)\/|samw\/)/, 'seekingalpha.com': /.+\/seekingalpha\.com\/($|(amp\/)?(article|news)\/|samw\/)/,
@ -104,6 +106,7 @@ var allow_cookies_default = [
'loeildelaphotographie.com', 'loeildelaphotographie.com',
'lrb.co.uk', 'lrb.co.uk',
'marketwatch.com', 'marketwatch.com',
'medianama.com',
'medium.com', 'medium.com',
'modernhealthcare.com', 'modernhealthcare.com',
'mz-web.de', 'mz-web.de',
@ -279,7 +282,7 @@ var blockedRegexes = {
'businessinsider.com': /\.tinypass\.com\//, 'businessinsider.com': /\.tinypass\.com\//,
'challenges.fr': /\.poool\.fr\//, 'challenges.fr': /\.poool\.fr\//,
'charliehebdo.fr': /\.poool\.fr\//, 'charliehebdo.fr': /\.poool\.fr\//,
'chicagobusiness.com': /(\.tinypass\.com\/|\.chicagobusiness\.com\/.+\/js\/js_-.+\.js)/, 'chicagobusiness.com': /(\.tinypass\.com\/|\.chicagobusiness\.com\/.+\/js\/js_.+\.js)/,
'chronicle.com': /(\.blueconic\.net\/|\.chronicle\.com\/(common\/)?(che-auth0-user|script)\.js)/, 'chronicle.com': /(\.blueconic\.net\/|\.chronicle\.com\/(common\/)?(che-auth0-user|script)\.js)/,
'clarin.com': /js\.matheranalytics\.com\//, 'clarin.com': /js\.matheranalytics\.com\//,
'cmjornal.pt': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js/, 'cmjornal.pt': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js/,
@ -869,7 +872,8 @@ ext_api.webRequest.onHeadersReceived.addListener(function (details) {
}, },
['blocking', 'responseHeaders']); ['blocking', 'responseHeaders']);
// elviajero|retina|verne.elpais.com block inline script // block inline script
var block_js_inline = ["*://elviajero.elpais.com/*", "*://retina.elpais.com/*", "*://verne.elpais.com/*", "*://*.medianama.com/*"]
ext_api.webRequest.onHeadersReceived.addListener(function (details) { ext_api.webRequest.onHeadersReceived.addListener(function (details) {
if (!isSiteEnabled(details)) { if (!isSiteEnabled(details)) {
return; return;
@ -884,7 +888,7 @@ ext_api.webRequest.onHeadersReceived.addListener(function (details) {
}; };
}, { }, {
'types': ['main_frame', 'sub_frame'], 'types': ['main_frame', 'sub_frame'],
'urls': ["*://elviajero.elpais.com/*", "*://retina.elpais.com/*", "*://verne.elpais.com/*"] 'urls': block_js_inline
}, },
['blocking', 'responseHeaders']); ['blocking', 'responseHeaders']);

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome Changelog Bypass Paywalls Clean - Chrome
Post-release Post-release
Add MediaNama (India)
* v2.2.1.0 (2021-05-16) * v2.2.1.0 (2021-05-16)
Add Las Provincias (Spain) Add Las Provincias (Spain)

View File

@ -1722,6 +1722,12 @@ else if (matchDomain('cen.acs.org')) {
}); });
} }
else if (matchDomain('chicagobusiness.com')) {
let body_hidden = document.querySelector('body[class]');
if (body_hidden)
body_hidden.removeAttribute('class');
}
else if (matchDomain('discovermagazine.com')) { else if (matchDomain('discovermagazine.com')) {
window.setTimeout(function () { window.setTimeout(function () {
let mammoth = document.querySelector('.iXVGnF'); let mammoth = document.querySelector('.iXVGnF');

View File

@ -30,5 +30,5 @@
"webRequestBlocking", "webRequestBlocking",
"<all_urls>" "<all_urls>"
], ],
"version": "2.2.1.0" "version": "2.2.1.1"
} }

View File

@ -274,6 +274,7 @@
"*://*.marmai.fi/*", "*://*.marmai.fi/*",
"*://*.maz-online.de/*", "*://*.maz-online.de/*",
"*://*.mcall.com/*", "*://*.mcall.com/*",
"*://*.medianama.com/*",
"*://*.medium.com/*", "*://*.medium.com/*",
"*://*.mediuutiset.fi/*", "*://*.mediuutiset.fi/*",
"*://*.mercuriovalpo.cl/*", "*://*.mercuriovalpo.cl/*",
@ -503,5 +504,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.2.1.0" "version": "2.2.1.1"
} }

View File

@ -163,6 +163,7 @@ var defaultSites =
"Madsack Mediengruppe (Germany)": "###_de_madsack", "Madsack Mediengruppe (Germany)": "###_de_madsack",
"MarketWatch": "marketwatch.com", "MarketWatch": "marketwatch.com",
"McClatchy Group": "###_usa_mcc", "McClatchy Group": "###_usa_mcc",
"MediaNama": "medianama.com",
"Medium": "medium.com", "Medium": "medium.com",
"Medium custom domains": "###_medium_custom", "Medium custom domains": "###_medium_custom",
"Mexico News Daily": "mexiconewsdaily.com", "Mexico News Daily": "mexiconewsdaily.com",