Update popup (fix toggle for custom flex sites)

merge-requests/16/head
magnolia1234 7 months ago
parent 8c8962b6f5
commit 5d86262d66

@ -1411,7 +1411,10 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
if (group) {
let nofix_groups = ['###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian'];
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);
if (enabledSites.includes(group)) {
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
Post-release
Update popup (fix toggle for custom flex sites)
* v3.4.3.0 (2023-11-19)
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');
if (paywall && dompurify_loaded) {
let intro = document.querySelector('div.startPayWall');
removeDOMElement(paywall, intro);
let html = document.documentElement.outerHTML;
if (html.includes('window.__NUXT__=')) {
removeDOMElement(paywall, intro);
try {
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;

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.4.3.0"
"version": "3.4.3.1"
}

@ -815,5 +815,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.4.3.0"
"version": "3.4.3.1"
}

Loading…
Cancel
Save