add observador.pt

master
moshmage 2021-01-08 18:13:03 +00:00 committed by GitHub
parent 4599338879
commit 07b51b780b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -74,6 +74,17 @@ const INJECTION = {
document.getElementsByClassName('jota-paywall')[0].remove();
`
},
observador: {
url: /observador.pt/,
code: `
if (!document.body.classList.has(`premium-article`)
return;
document.body.classList.remove(`premium-article`);
const paywall = document.querySelector(`.premium-paywall`);
paywall.parent.removeChild(paywall);
document.querySelector(`.article-body-wrapper`).style.maxHeight = `inherit`
`
}
};
chrome.storage.local.get('sites', function(result) {