mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:57:48 +01:00
Fix MediaNama (menu)
This commit is contained in:
parent
6353d3ebdc
commit
0adf36ed57
5 changed files with 13 additions and 12 deletions
|
@ -25,7 +25,6 @@ var restrictions = {
|
||||||
'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)\/)/,
|
||||||
'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/,
|
'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/,
|
||||||
'medianama.com': /\.medianama\.com\/((\d){4}\/(\d){2}|wp-content)\//,
|
|
||||||
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
|
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
|
||||||
'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/,
|
'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/,
|
||||||
'nknews.org': /^((?!nknews\.org\/pro\/).)*$/,
|
'nknews.org': /^((?!nknews\.org\/pro\/).)*$/,
|
||||||
|
@ -173,7 +172,7 @@ function set_rules(sites, sites_updated, sites_custom) {
|
||||||
for (let domain of domains) {
|
for (let domain of domains) {
|
||||||
let custom_in_group = false;
|
let custom_in_group = false;
|
||||||
if (rule_default.hasOwnProperty('exception')) {
|
if (rule_default.hasOwnProperty('exception')) {
|
||||||
let exception_rule = rule_default.exception.filter(x => domain === x.domain);
|
let exception_rule = rule_default.exception.filter(x => domain === x.domain || (typeof x.domain !== 'string' && x.domain.includes(domain)));
|
||||||
if (exception_rule.length > 0)
|
if (exception_rule.length > 0)
|
||||||
rule = exception_rule[0];
|
rule = exception_rule[0];
|
||||||
else
|
else
|
||||||
|
@ -602,9 +601,9 @@ ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||||
['blocking', 'responseHeaders']);
|
['blocking', 'responseHeaders']);
|
||||||
|
|
||||||
// block inline script
|
// block inline script
|
||||||
var block_js_inline = ["*://*.medianama.com/*"];
|
var block_js_inline = [];
|
||||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||||
if (!isSiteEnabled(details)) {
|
if (block_js_inline.length === 0 || !isSiteEnabled(details)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var headers = details.responseHeaders;
|
var headers = details.responseHeaders;
|
||||||
|
|
|
@ -9,6 +9,7 @@ Fix Cairns Post, Code Sports & The Advertiser
|
||||||
Fix Challenges.fr
|
Fix Challenges.fr
|
||||||
Fix Clarin
|
Fix Clarin
|
||||||
Fix El Pais (menu subdomains)
|
Fix El Pais (menu subdomains)
|
||||||
|
Fix MediaNama (menu)
|
||||||
Fix MIT Sloan Management Review (refresh)
|
Fix MIT Sloan Management Review (refresh)
|
||||||
Fix The New Yorker (update)
|
Fix The New Yorker (update)
|
||||||
|
|
||||||
|
|
|
@ -2565,6 +2565,11 @@ else if (matchDomain('medianama.com')) {
|
||||||
let modal = document.querySelector('div.modal');
|
let modal = document.querySelector('div.modal');
|
||||||
removeDOMElement(modal);
|
removeDOMElement(modal);
|
||||||
}, 500); // Delay (in milliseconds)
|
}, 500); // Delay (in milliseconds)
|
||||||
|
function medianama_height(node) {
|
||||||
|
node.removeAttribute('style');
|
||||||
|
}
|
||||||
|
waitDOMAttribute('div.zox-post-body', 'DIV', 'style', medianama_height, true);
|
||||||
|
csDoneOnce = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('mexiconewsdaily.com')) {
|
else if (matchDomain('mexiconewsdaily.com')) {
|
||||||
|
|
|
@ -603,5 +603,5 @@
|
||||||
"*://*.wsj.net/*",
|
"*://*.wsj.net/*",
|
||||||
"*://*.zephr.com/*"
|
"*://*.zephr.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.5.2.7"
|
"version": "2.5.2.8"
|
||||||
}
|
}
|
||||||
|
|
10
sites.js
10
sites.js
|
@ -128,15 +128,11 @@ var defaultSites = {
|
||||||
],
|
],
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
useragent: "googlebot",
|
useragent: "googlebot",
|
||||||
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
|
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/,
|
||||||
exception: [{
|
exception: [{
|
||||||
domain: "adelaidenow.com.au",
|
domain: ["adelaidenow.com.au", "cairnspost.com.au"],
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
|
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
|
||||||
}, {
|
|
||||||
domain: "cairnspost.com.au",
|
|
||||||
allow_cookies: 1,
|
|
||||||
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue