has -> contains, parent -> parentElement
parent
5f47a52141
commit
8acf4e4c6e
|
@ -77,11 +77,11 @@ const INJECTION = {
|
|||
observador: {
|
||||
url: /observador.pt/,
|
||||
code: `
|
||||
if (!document.body.classList.has(`premium-article`))
|
||||
if (!document.body.classList.contains(`premium-article`))
|
||||
return;
|
||||
document.body.classList.remove(`premium-article`);
|
||||
const paywall = document.querySelector(`.premium-paywall`);
|
||||
paywall.parent.removeChild(paywall);
|
||||
paywall.parentElement.removeChild(paywall);
|
||||
document.querySelector(`.article-body-wrapper`).style.maxHeight = `inherit`
|
||||
`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue