diff --git a/README.md b/README.md index 73ba58c..b28f9f4 100755 --- a/README.md +++ b/README.md @@ -171,6 +171,7 @@ [The New York Times](https://www.nytimes.com)\ [The New Yorker](https://www.newyorker.com)\ [The News-Gazette](https://www.news-gazette.com)\ +[The Olive Press](https://www.theolivepress.es)\ [The Philadelphia Inquirer](https://www.inquirer.com)\ [The Saturday Paper](https://www.thesaturdaypaper.com.au)\ [The Seattle Times](https://www.seattletimes.com)\ diff --git a/manifest-ff.json b/manifest-ff.json index 3bf329f..eb2f4ed 100755 --- a/manifest-ff.json +++ b/manifest-ff.json @@ -59,6 +59,7 @@ "*://*.theglobeandmail.com/*", "*://*.thehindu.com/*", "*://*.thenational.scot/*", + "*://*.theolivepress.es/*", "*://*.thestar.com/*", "*://*.thewrap.com/*", "*://*.trouw.nl/*", @@ -243,6 +244,7 @@ "*://*.themercury.com.au/*", "*://*.thenation.com/*", "*://*.thenational.scot/*", + "*://*.theolivepress.es/*", "*://*.thesaturdaypaper.com.au/*", "*://*.thestar.com/*", "*://*.thewrap.com/*", diff --git a/src/js/contentScript.js b/src/js/contentScript.js index 7e98023..3683dfb 100755 --- a/src/js/contentScript.js +++ b/src/js/contentScript.js @@ -498,6 +498,14 @@ if (matchDomain('elmercurio.com')) { removeDOMElement(adblockNotif); document.body.removeAttribute('style'); }, 800); // Delay (in milliseconds) +} else if (matchDomain('theolivepress.es')) { + const modalBackdrop = document.querySelector('.modal-backdrop'); + const paywall = document.querySelector('.ev-open-modal-paywall-REQUIRE_LOGIN_WITH_ENTITLEMENT'); + removeDOMElement(modalBackdrop, paywall); + + for (const clazz of ['ev-modals', 'modal-open']) { + document.body.classList.remove(clazz); + } } else if (matchDomain('themarker.com')) { setTimeout(function () { const paywall = document.querySelector('[data-test="bottomStrip"]'); diff --git a/src/js/sites.js b/src/js/sites.js index 46e053a..153c461 100755 --- a/src/js/sites.js +++ b/src/js/sites.js @@ -150,6 +150,7 @@ const defaultSites = { 'The News-Gazette': 'news-gazette.com', 'The New Yorker': 'newyorker.com', 'The New York Times': 'nytimes.com', + 'The Olive Press': 'theolivepress.es', 'The Philadelphia Inquirer': 'inquirer.com', 'The Saturday Paper': 'thesaturdaypaper.com.au', 'The Seattle Times': 'seattletimes.com',