mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:37:47 +01:00
Update popup (fix toggle for custom flex sites)
This commit is contained in:
parent
8c8962b6f5
commit
5d86262d66
5 changed files with 8 additions and 4 deletions
|
@ -1411,7 +1411,10 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||||
if (group) {
|
if (group) {
|
||||||
let nofix_groups = ['###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian'];
|
let nofix_groups = ['###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian'];
|
||||||
if (!custom_flex_domains.includes(custom_domain)) {
|
if (!custom_flex_domains.includes(custom_domain)) {
|
||||||
custom_flex[group] = custom_flex[group] ? custom_flex[group].push(custom_domain) : [custom_domain];
|
if (custom_flex[group])
|
||||||
|
custom_flex[group].push(custom_domain);
|
||||||
|
else
|
||||||
|
custom_flex[group] = [custom_domain];
|
||||||
custom_flex_domains.push(custom_domain);
|
custom_flex_domains.push(custom_domain);
|
||||||
if (enabledSites.includes(group)) {
|
if (enabledSites.includes(group)) {
|
||||||
if (!enabledSites.includes(custom_domain))
|
if (!enabledSites.includes(custom_domain))
|
||||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Update popup (fix toggle for custom flex sites)
|
||||||
|
|
||||||
* v3.4.3.0 (2023-11-19)
|
* v3.4.3.0 (2023-11-19)
|
||||||
Add Doorbraak.be
|
Add Doorbraak.be
|
||||||
|
|
|
@ -2500,9 +2500,9 @@ else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('head > lin
|
||||||
let paywall = document.querySelector('div.signupPlus, div.pw-wrapper');
|
let paywall = document.querySelector('div.signupPlus, div.pw-wrapper');
|
||||||
if (paywall && dompurify_loaded) {
|
if (paywall && dompurify_loaded) {
|
||||||
let intro = document.querySelector('div.startPayWall');
|
let intro = document.querySelector('div.startPayWall');
|
||||||
removeDOMElement(paywall, intro);
|
|
||||||
let html = document.documentElement.outerHTML;
|
let html = document.documentElement.outerHTML;
|
||||||
if (html.includes('window.__NUXT__=')) {
|
if (html.includes('window.__NUXT__=')) {
|
||||||
|
removeDOMElement(paywall, intro);
|
||||||
try {
|
try {
|
||||||
let json = html.split('window.__NUXT__=')[1].split('</script>')[0].trim();
|
let json = html.split('window.__NUXT__=')[1].split('</script>')[0].trim();
|
||||||
let url_nuxt = json.includes(',canonical:"') ? json.split(',canonical:"')[1].match(/\d+\.(html|ece)/)[0] : false;
|
let url_nuxt = json.includes(',canonical:"') ? json.split(',canonical:"')[1].match(/\d+\.(html|ece)/)[0] : false;
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.4.3.0"
|
"version": "3.4.3.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -815,5 +815,5 @@
|
||||||
"*://*.wyleex.com/*",
|
"*://*.wyleex.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.4.3.0"
|
"version": "3.4.3.1"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue