mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:27:48 +01:00
Fix Business Standard
This commit is contained in:
parent
92adeb72f0
commit
c0ccdac903
3 changed files with 29 additions and 31 deletions
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix Business Standard
|
||||
Fix Financial Times (amp)
|
||||
|
||||
* v2.4.0.0 (2021-10-17)
|
||||
|
|
|
@ -1724,13 +1724,12 @@ else if (matchDomain('bostonglobe.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('business-standard.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let skip_button = document.querySelector('a.btn_skip');
|
||||
if (skip_button)
|
||||
skip_button.click();
|
||||
let paywall = document.querySelector('div.sbc_panel');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall.parentElement);
|
||||
let p_content = document.querySelector('span.p-content.paywall');
|
||||
if (p_content) {
|
||||
p_content.classList.remove('paywall');
|
||||
let scripts = document.querySelectorAll('script[type="application/ld+json"]');
|
||||
let json;
|
||||
for (let script of scripts) {
|
||||
|
@ -1744,8 +1743,6 @@ else if (matchDomain('business-standard.com')) {
|
|||
let article = document.createElement('div');
|
||||
article.innerText = json_text;
|
||||
if (article) {
|
||||
let p_content = document.querySelector('span.p-content.paywall');
|
||||
if (p_content) {
|
||||
let old_pars = p_content.querySelectorAll('p');
|
||||
for (let old_par of old_pars) {
|
||||
if (!old_par.querySelector('img'))
|
||||
|
@ -1756,8 +1753,8 @@ else if (matchDomain('business-standard.com')) {
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
else if (matchDomain('businessoffashion.com')) {
|
||||
let paywall = document.querySelector('div.paywall');
|
||||
|
|
|
@ -556,5 +556,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.4.0.0"
|
||||
"version": "2.4.0.1"
|
||||
}
|
Loading…
Reference in a new issue