Greasy Fork is available in English.

Wordle Delete Ad

Delete ad from Wordle

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         Wordle Delete Ad
// @namespace    https://github.com/FractaIism/TamperMonkey-UserScripts
// @version      0.1
// @description  Delete ad from Wordle
// @author       Fractalism
// @match        https://www.nytimes.com/games/wordle/index.html
// @icon         https://www.google.com/s2/favicons?sz=64&domain=nytimes.com
// @grant        none
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';
	let interval_id = setInterval( () => {
		let ad = document.querySelector('.place-ad')
		if (ad) {
			ad.remove();
			clearInterval(interval_id);
		} else {
			console.log('ad not found');
		}
	}, 100);
	setTimeout( () => clearInterval(interval_id), 60000)
})();