1
Fork 0

nytimes: initial version

This commit is contained in:
Conduitry 2022-09-22 23:57:48 -04:00
parent 7dad4744aa
commit 15134a2a04
1 changed files with 21 additions and 0 deletions

21
scripts/nytimes.user.js Normal file
View File

@ -0,0 +1,21 @@
// ==UserScript==
// @name New York Times thing
// @namespace https://chor.date
// @description A script to bypass the paywall, mostly.
// @match https://www.nytimes.com/*
// @icon https://www.nytimes.com/favicon.ico
// @version 2022.09.23.035748
// ==/UserScript==
(async () => {
for (let i = 0; i < 100; i++) {
const el = document.querySelector('#gateway-content');
if (el) {
el.remove();
document.querySelector('#app > div > div').className = '';
document.querySelector('#app > div > div > div:last-child').remove();
break;
}
await new Promise(res => setTimeout(res, 100));
}
})();