mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Fix WSJ (timing)
This commit is contained in:
parent
a1d2b067da
commit
4feb3aee7c
2 changed files with 8 additions and 9 deletions
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Fix WSJ (timing)
|
||||
|
||||
* v2.4.2.0 (2021-10-31)
|
||||
Fix Barron's (timing)
|
||||
|
|
|
@ -2868,7 +2868,7 @@ else if (matchDomain('wsj.com')) {
|
|||
if (close_button)
|
||||
close_button.click();
|
||||
}
|
||||
let wsj_ads = document.querySelectorAll('div.wsj-ad');
|
||||
let wsj_ads = document.querySelectorAll('div[class*="wsj-ad"]');
|
||||
removeDOMElement(...wsj_ads);
|
||||
if (url.includes('/amp/')) {
|
||||
let masthead_link = document.querySelector('div.masthead > a[href*="/articles/"]');
|
||||
|
@ -2880,14 +2880,12 @@ else if (matchDomain('wsj.com')) {
|
|||
if (subscr_section)
|
||||
subscr_section.removeAttribute('subscriptions-section');
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let snippet = document.querySelector('.snippet-promotion');
|
||||
let wsj_pro = document.querySelector('meta[name="page.site"][content="wsjpro"]');
|
||||
if (snippet || wsj_pro) {
|
||||
removeDOMElement(snippet, wsj_pro);
|
||||
window.location.href = url.replace('wsj.com', 'wsj.com/amp');
|
||||
}
|
||||
});
|
||||
let snippet = document.querySelector('.snippet-promotion');
|
||||
let wsj_pro = document.querySelector('meta[name="page.site"][content="wsjpro"]');
|
||||
if (snippet || wsj_pro) {
|
||||
removeDOMElement(snippet, wsj_pro);
|
||||
window.location.href = url.replace('wsj.com', 'wsj.com/amp');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue