Advertisement
ConcealedReal

Wordle Show Answer Hack

May 4th, 2024 (edited)
912
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      Beta
  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. ! function () {
  13.     var e, n = !0, date = new Date();
  14.     try {
  15.         ! function o() {
  16.             n && (e = requestAnimationFrame(o), window["wordle-app-game"] && (t = Array.from(document.querySelectorAll("h1"))
  17.                     .filter((t => t.textContent.toLowerCase()
  18.                         .includes("wordle")))[0]) && fetch("https://www.nytimes.com/svc/wordle/v2/" + date.toISOString()
  19.                     .split("T")[0] + ".json")
  20.                 .then((t => t.json()))
  21.                 .then((e => {
  22.                     t.textContent = e.solution
  23.                 })))
  24.         }()
  25.     } catch (t) {
  26.         console.log(t), n = !1, cancelAnimationFrame(e)
  27.     }
  28. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement