1
Fork 0

nytimes: close welcome modal when it appears

This commit is contained in:
Conduitry 2023-03-21 17:07:25 -04:00
parent 8ce5e20e84
commit 543caf97af
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
// @description A script to bypass the paywall, mostly. // @description A script to bypass the paywall, mostly.
// @match https://www.nytimes.com/* // @match https://www.nytimes.com/*
// @icon https://www.nytimes.com/favicon.ico // @icon https://www.nytimes.com/favicon.ico
// @version 2023.02.07.122944 // @version 2023.03.21.210726
// ==/UserScript== // ==/UserScript==
async function wait(selector, cb) { async function wait(selector, cb) {
@ -23,3 +23,4 @@ wait('#app > div > div > div[class*="-"]', el => el.className = '');
wait('#gateway-content', el => el.remove()); wait('#gateway-content', el => el.remove());
wait('#standalone-footer > div', el => el.remove()); wait('#standalone-footer > div', el => el.remove());
wait('button[data-testid=GDPR-reject]', el => el.click()); wait('button[data-testid=GDPR-reject]', el => el.click());
wait('#vi_welcome_close', el => el.click());