Fix Faz.net (timing)

master
magnolia1234 2022-01-27 19:21:08 +01:00
parent f4e974a035
commit dda023efe7
2 changed files with 45 additions and 40 deletions

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Fix Australia News Corp (amp-redirect)
Fix Faz.net (timing)
Fix The Telegraph (modal)
Fix The West Australian (regional)
Fix block inline script (Firefox-synch)

View File

@ -440,6 +440,7 @@ else if (matchDomain('faz.net')) {
removeDOMElement(paywall);
let url = new URL(window.location.href);
let mUrl = new URL(url.pathname, 'https://m.faz.net/');
try {
fetch(mUrl)
.then(response => {
if (response.ok) {
@ -481,6 +482,9 @@ else if (matchDomain('faz.net')) {
})
}
});
} catch (err) {
console.log(err);
}
}
let lay_paysocial = document.querySelector('div.lay-PaySocial');
removeDOMElement(lay_paysocial);