Fix NYTimes subscription form

master
magnolia1234 2019-11-11 22:11:48 +01:00 committed by GitHub
parent f21f0fcdc8
commit 33ac563133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -160,6 +160,13 @@ if (window.location.href.indexOf('lemonde.fr') !== -1) {
});
}
if (window.location.href.indexOf("nytimes.com") !== -1) {
const preview_button = document.querySelector('.css-3s1ce0');
if (preview_button)
preview_button.click();
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();

View File

@ -11,6 +11,7 @@
"*://*.ed.nl/*",
"*://*.haaretz.co.il/*",
"*://*.lemonde.fr/*",
"*://*.nytimes.com/*",
"*://*.nzherald.co.nz/*",
"*://*.parool.nl/*",
"*://*.repubblica.it/*",