diff --git a/contentScript.js b/contentScript.js index 83ccfbb..7bb832a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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(); diff --git a/manifest.json b/manifest.json index c3b085a..2281e85 100644 --- a/manifest.json +++ b/manifest.json @@ -11,6 +11,7 @@ "*://*.ed.nl/*", "*://*.haaretz.co.il/*", "*://*.lemonde.fr/*", + "*://*.nytimes.com/*", "*://*.nzherald.co.nz/*", "*://*.parool.nl/*", "*://*.repubblica.it/*",