Wordle Delete Ad

Delete ad from Wordle

  1. // ==UserScript==
  2. // @name Wordle Delete Ad
  3. // @namespace https://github.com/FractaIism/TamperMonkey-UserScripts
  4. // @version 0.1
  5. // @description Delete ad from Wordle
  6. // @author Fractalism
  7. // @match https://www.nytimes.com/games/wordle/index.html
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=nytimes.com
  9. // @grant none
  10. // @run-at document-idle
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. let interval_id = setInterval( () => {
  16. let ad = document.querySelector('.place-ad')
  17. if (ad) {
  18. ad.remove();
  19. clearInterval(interval_id);
  20. } else {
  21. console.log('ad not found');
  22. }
  23. }, 100);
  24. setTimeout( () => clearInterval(interval_id), 60000)
  25. })();