Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Wordle Word Revealer
- // @namespace http://tampermonkey.net/
- // @version Beta
- // @description Reveals wordle answer!
- // @author Splxff
- // @match https://www.nytimes.com/games/wordle/index.html
- // @icon https://www.google.com/s2/favicons?sz=64&domain=nytimes.com
- // @grant none
- // ==/UserScript==
- ! function () {
- var e, n = !0, date = new Date();
- try {
- ! function o() {
- n && (e = requestAnimationFrame(o), window["wordle-app-game"] && (t = Array.from(document.querySelectorAll("h1"))
- .filter((t => t.textContent.toLowerCase()
- .includes("wordle")))[0]) && fetch("https://www.nytimes.com/svc/wordle/v2/" + date.toISOString()
- .split("T")[0] + ".json")
- .then((t => t.json()))
- .then((e => {
- t.textContent = e.solution
- })))
- }()
- } catch (t) {
- console.log(t), n = !1, cancelAnimationFrame(e)
- }
- }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement