mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 00:54:17 +01:00
Fix BizJournals (css)
This commit is contained in:
parent
593e5b77ce
commit
1a82be68d4
3 changed files with 29 additions and 1 deletions
|
@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
|
||||||
Post-release
|
Post-release
|
||||||
Add OVB Media (opt-in to custom sites for unlisted)
|
Add OVB Media (opt-in to custom sites for unlisted)
|
||||||
Add Private Media AU
|
Add Private Media AU
|
||||||
|
Fix BizJournals (css)
|
||||||
Fix The Economist (regwall)
|
Fix The Economist (regwall)
|
||||||
Fix WaPo (js)
|
Fix WaPo (js)
|
||||||
Update custom sites (block_regex_ignore_default)
|
Update custom sites (block_regex_ignore_default)
|
||||||
|
|
|
@ -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')) {
|
else if (matchDomain('bloomberg.com')) {
|
||||||
let paywall_sel = 'div[id^="fortress-"]';
|
let paywall_sel = 'div[id^="fortress-"]';
|
||||||
let paywall = paywall_sel;
|
let paywall = paywall_sel;
|
||||||
|
|
2
sites.js
2
sites.js
|
@ -2439,7 +2439,7 @@ var defaultSites = {
|
||||||
},
|
},
|
||||||
"The Business Journals (free articles only; do not block Cxense-script externally)": {
|
"The Business Journals (free articles only; do not block Cxense-script externally)": {
|
||||||
domain: "bizjournals.com",
|
domain: "bizjournals.com",
|
||||||
block_regex: /cdn\.cxense\.com\/cx\.js/
|
allow_cookies: 1
|
||||||
},
|
},
|
||||||
"The Business of Fashion": {
|
"The Business of Fashion": {
|
||||||
domain: "businessoffashion.com",
|
domain: "businessoffashion.com",
|
||||||
|
|
Loading…
Reference in a new issue