Advertisement
ConcealedReal

Wordle Auto Answer Hack

Jul 19th, 2024
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Wordle Word Revealer
  3. // @namespace    http://tampermonkey.net/
  4. // @version      1.1
  5. // @description  Reveals wordle answer!
  6. // @author       Splxff
  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. // ==/UserScript==
  11.  
  12. (() => {
  13.     var e, t = !0
  14.         , n = new Date
  15.         , l = "";
  16.     try {
  17.         ! function o() {
  18.             if (t)
  19.                 if (e = requestAnimationFrame(o), l) {
  20.                     if (document.querySelectorAll('[class*="Key-"]')
  21.                         .length > 5) {
  22.                         console.log(l), t = !1, cancelAnimationFrame(e);
  23.                         for (let e = 0; e < l.length; e++) Array.from(document.querySelectorAll('[class*="Key-"]'))
  24.                             .filter((t => t.textContent == l[e]))[0].click();
  25.                         Array.from(document.querySelectorAll('[class*="Key-"]'))
  26.                             .filter((e => "enter" == e.textContent))[0].click()
  27.                     }
  28.                 } else fetch("https://www.nytimes.com/svc/wordle/v2/" + n.toISOString()
  29.                         .split("T")[0] + ".json")
  30.                     .then((e => e.json()))
  31.                     .then((e => l = e.solution))
  32.         }()
  33.     } catch (n) {
  34.         console.log(n), t = !1, cancelAnimationFrame(e)
  35.     }
  36. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement