Fix BizJournals (css)

This commit is contained in:
magnolia1234 2024-04-12 08:01:22 +02:00
parent 593e5b77ce
commit 1a82be68d4
3 changed files with 29 additions and 1 deletions

View file

@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Add OVB Media (opt-in to custom sites for unlisted)
Add Private Media AU
Fix BizJournals (css)
Fix The Economist (regwall)
Fix WaPo (js)
Update custom sites (block_regex_ignore_default)

View file

@ -3862,6 +3862,33 @@ else if (matchDomain('billboard.com')) {
}
}
else if (matchDomain('bizjournals.com')) {
let paywall = document.querySelector('div[data-dev="CxWidget_article:wall"]');
if (paywall) {
removeDOMElement(paywall);
let hidden_content = document.querySelector('article div[style="display: none;"]');
if (hidden_content)
hidden_content.removeAttribute('style');
} else {
let paywall = document.querySelector('div#cxense-paywall');
if (paywall) {
removeDOMElement(paywall);
let paywalled_content = document.querySelectorAll('.paywalled-content[style]');
for (let elem of paywalled_content)
elem.removeAttribute('style');
}
}
let dialog = document.querySelector('div[id^="headlessui-dialog-"]');
if (dialog) {
removeDOMElement(dialog);
let body = document.querySelector('body');
if (body)
body.click();
}
let ads = 'div.adwrap';
hideDOMStyle(ads);
}
else if (matchDomain('bloomberg.com')) {
let paywall_sel = 'div[id^="fortress-"]';
let paywall = paywall_sel;

View file

@ -2439,7 +2439,7 @@ var defaultSites = {
},
"The Business Journals (free articles only; do not block Cxense-script externally)": {
domain: "bizjournals.com",
block_regex: /cdn\.cxense\.com\/cx\.js/
allow_cookies: 1
},
"The Business of Fashion": {
domain: "businessoffashion.com",