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)?$).)*$/,
|
||||
'foreignaffairs.com': /\.foreignaffairs\.com\/((articles|fa-caching|interviews|reviews|sites)\/)/,
|
||||
'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/,
|
||||
'medianama.com': /\.medianama\.com\/((\d){4}\/(\d){2}|wp-content)\//,
|
||||
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
|
||||
'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/,
|
||||
'nknews.org': /^((?!nknews\.org\/pro\/).)*$/,
|
||||
|
@ -173,7 +172,7 @@ function set_rules(sites, sites_updated, sites_custom) {
|
|||
for (let domain of domains) {
|
||||
let custom_in_group = false;
|
||||
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)
|
||||
rule = exception_rule[0];
|
||||
else
|
||||
|
@ -602,9 +601,9 @@ ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
|||
['blocking', 'responseHeaders']);
|
||||
|
||||
// block inline script
|
||||
var block_js_inline = ["*://*.medianama.com/*"];
|
||||
var block_js_inline = [];
|
||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
if (block_js_inline.length === 0 || !isSiteEnabled(details)) {
|
||||
return;
|
||||
}
|
||||
var headers = details.responseHeaders;
|
||||
|
|
|
@ -9,6 +9,7 @@ Fix Cairns Post, Code Sports & The Advertiser
|
|||
Fix Challenges.fr
|
||||
Fix Clarin
|
||||
Fix El Pais (menu subdomains)
|
||||
Fix MediaNama (menu)
|
||||
Fix MIT Sloan Management Review (refresh)
|
||||
Fix The New Yorker (update)
|
||||
|
||||
|
|
|
@ -2565,6 +2565,11 @@ else if (matchDomain('medianama.com')) {
|
|||
let modal = document.querySelector('div.modal');
|
||||
removeDOMElement(modal);
|
||||
}, 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')) {
|
||||
|
|
|
@ -603,5 +603,5 @@
|
|||
"*://*.wsj.net/*",
|
||||
"*://*.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,
|
||||
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: [{
|
||||
domain: "adelaidenow.com.au",
|
||||
domain: ["adelaidenow.com.au", "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)/
|
||||
}, {
|
||||
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)/
|
||||
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue