diff --git a/README.md b/README.md index c5d1013..c459045 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ [Eindhovens Dagblad](https://www.ed.nl)\ [El Pais](https://www.elpais.com/)\ [Encyclopedia Britannica](https://www.britannica.com)\ +[Estadão](https://www.estadao.com.br)\ [Examiner](https://www.examiner.com.au)\ [Financial News](https://www.fnlondon.com)\ [Financial Times](https://www.ft.com)\ diff --git a/manifest-ff.json b/manifest-ff.json index 02e98a7..6cdccbb 100644 --- a/manifest-ff.json +++ b/manifest-ff.json @@ -21,6 +21,7 @@ "*://*.economist.com/*", "*://*.ed.nl/*", "*://*.elpais.com/*", + "*://*.estadao.com.br/*", "*://*.examiner.com.au/*", "*://*.firstthings.com/*", "*://*.ft.com/*", diff --git a/src/js/contentScript.js b/src/js/contentScript.js index 92a986f..e41e1c1 100644 --- a/src/js/contentScript.js +++ b/src/js/contentScript.js @@ -2,7 +2,15 @@ if (!matchDomain(['seekingalpha.com', 'sfchronicle.com', 'cen.acs.org'])) { window.localStorage.clear(); } -if (matchDomain('rep.repubblica.it')) { +if (matchDomain('estadao.com.br')) { + setTimeout(function () { + const paywall = document.querySelector('#paywall-wrapper-iframe-estadao'); + const body = document.querySelector('html'); + + removeDOMElement(paywall); + body.removeAttribute('style'); + }, 300); // Delay (in milliseconds) +} else if (matchDomain('rep.repubblica.it')) { if (window.location.href.includes('/pwa/')) { setTimeout(function () { window.location.href = window.location.href.replace('/pwa/', '/ws/detail/'); diff --git a/src/js/sites.js b/src/js/sites.js index b177dce..6d6c89d 100644 --- a/src/js/sites.js +++ b/src/js/sites.js @@ -25,6 +25,7 @@ const defaultSites = { 'Eindhovens Dagblad': 'ed.nl', 'El Pais': 'elpais.com', 'Encyclopedia Britannica': 'britannica.com', + 'Estadão': 'estadao.com.br', 'Examiner': 'examiner.com.au', 'Financial News': 'fnlondon.com', 'Financial Times': 'ft.com',