mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:24:16 +01:00
Update custom (flex) sites (no fix group)
This commit is contained in:
parent
cbbedafa7c
commit
c3d6c77056
6 changed files with 37 additions and 24 deletions
|
@ -1303,12 +1303,9 @@ function clear_cookies() {
|
||||||
}
|
}
|
||||||
if (rules.ld_json)
|
if (rules.ld_json)
|
||||||
ld_json[custom_domain] = rules.ld_json;
|
ld_json[custom_domain] = rules.ld_json;
|
||||||
custom_flex_domains.push(custom_domain);
|
|
||||||
if (!enabledSites.includes(custom_domain))
|
|
||||||
enabledSites.push(custom_domain);
|
|
||||||
ext_api.tabs.reload({bypassCache: true});
|
|
||||||
if (rules.add_ext_link && rules.add_ext_link_type)
|
if (rules.add_ext_link && rules.add_ext_link_type)
|
||||||
add_ext_link[custom_domain] = {css: rules.add_ext_link, type: rules.add_ext_link_type};
|
add_ext_link[custom_domain] = {css: rules.add_ext_link, type: rules.add_ext_link_type};
|
||||||
|
ext_api.tabs.reload({bypassCache: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
var chrome_scheme = 'light';
|
var chrome_scheme = 'light';
|
||||||
|
@ -1325,23 +1322,31 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||||
let group = message.data.group;
|
let group = message.data.group;
|
||||||
if (group) {
|
if (group) {
|
||||||
let nofix_groups = ['###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews'];
|
let nofix_groups = ['###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews'];
|
||||||
if (enabledSites.concat(nofix_groups).includes(group) && !custom_flex_domains.includes(custom_domain)) {
|
if (!custom_flex_domains.includes(custom_domain)) {
|
||||||
|
if (enabledSites.includes(group)) {
|
||||||
let rules;
|
let rules;
|
||||||
if (group === 'elmercurio.com')
|
if (group === 'elmercurio.com')
|
||||||
rules = {block_regex: "(\\.{domain}\\/impresa\\/.+\\/assets\\/(vendor|\\d)\\.js|pram\\.pasedigital\\.cl\\/API\\/User\\/Status\\?)"};
|
rules = {block_regex: "(\\.{domain}\\/impresa\\/.+\\/assets\\/(vendor|\\d)\\.js|pram\\.pasedigital\\.cl\\/API\\/User\\/Status\\?)"};
|
||||||
else if (nofix_groups.includes(group))
|
|
||||||
nofix_sites.push(custom_domain);
|
|
||||||
else {
|
else {
|
||||||
rules = Object.values(defaultSites).filter(x => x.domain === group)[0];
|
rules = Object.values(defaultSites).filter(x => x.domain === group)[0];
|
||||||
|
if (rules) {
|
||||||
if (group === '###_de_madsack')
|
if (group === '###_de_madsack')
|
||||||
if (!set_var_sites.includes(custom_domain))
|
if (!set_var_sites.includes(custom_domain))
|
||||||
set_var_sites.push(custom_domain);
|
set_var_sites.push(custom_domain);
|
||||||
|
} else
|
||||||
|
rules = Object.values(customSites).filter(x => x.domain === group)[0];
|
||||||
}
|
}
|
||||||
if (rules) {
|
if (rules) {
|
||||||
|
custom_flex_domains.push(custom_domain);
|
||||||
|
if (!enabledSites.includes(custom_domain))
|
||||||
|
enabledSites.push(custom_domain);
|
||||||
customAddRules(custom_domain, rules);
|
customAddRules(custom_domain, rules);
|
||||||
}
|
}
|
||||||
} else if (disabledSites.includes(group))
|
} else if (disabledSites.includes(group))
|
||||||
custom_flex_not_domains.push(custom_domain);
|
custom_flex_not_domains.push(custom_domain);
|
||||||
|
else if (nofix_groups.includes(group))
|
||||||
|
nofix_sites.push(custom_domain);
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
custom_flex_not_domains.push(custom_domain);
|
custom_flex_not_domains.push(custom_domain);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ Remove Puck.news (fix obsolete)
|
||||||
Fix Adweek (premium)
|
Fix Adweek (premium)
|
||||||
Fix Modern Healthcare (sponsored)
|
Fix Modern Healthcare (sponsored)
|
||||||
Fix Sportico (amp)
|
Fix Sportico (amp)
|
||||||
|
Update custom (flex) sites (no fix group)
|
||||||
|
|
||||||
* v3.1.6.0 (2023-04-30)
|
* v3.1.6.0 (2023-04-30)
|
||||||
Remove Zeit.de (fix obsolete)
|
Remove Zeit.de (fix obsolete)
|
||||||
|
|
|
@ -909,7 +909,7 @@ else if (matchDomain('tagesanzeiger.ch')) {
|
||||||
let paywall = document.querySelector('div#piano-premium > div');
|
let paywall = document.querySelector('div#piano-premium > div');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
removeDOMElement(paywall.parentNode);
|
removeDOMElement(paywall.parentNode);
|
||||||
let article = document.querySelector('article p');
|
let article = document.querySelector('article p > span');
|
||||||
if (article)
|
if (article)
|
||||||
article.firstChild.before(archiveLink(url));
|
article.firstChild.before(archiveLink(url));
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.1.6.5"
|
"version": "3.1.6.6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -575,6 +575,13 @@
|
||||||
"amp_redirect": "div#story-notification",
|
"amp_redirect": "div#story-notification",
|
||||||
"domain": "swarajyamag.com"
|
"domain": "swarajyamag.com"
|
||||||
},
|
},
|
||||||
|
"Tamedia.ch": {
|
||||||
|
"add_ext_link": "div#piano-premium>div|article p>span",
|
||||||
|
"add_ext_link_type": "google_search_tool",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"block_regex": "\\.piano\\.io\\/xbuilder\\/experience\\/execute",
|
||||||
|
"domain": "###_ch_tamedia"
|
||||||
|
},
|
||||||
"The-past.com": {
|
"The-past.com": {
|
||||||
"domain": "the-past.com"
|
"domain": "the-past.com"
|
||||||
},
|
},
|
||||||
|
|
|
@ -755,5 +755,5 @@
|
||||||
"*://html.onlineviewer.net/*",
|
"*://html.onlineviewer.net/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.1.6.5"
|
"version": "3.1.6.6"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue