add theolivepress.es

This commit is contained in:
laur 2022-04-02 11:49:17 +02:00 committed by Adam
parent b30fbf0471
commit b7a7fe0906
4 changed files with 12 additions and 0 deletions

View File

@ -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)\

View File

@ -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/*",

View File

@ -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"]');

View File

@ -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',