Greasy Fork is available in English.

Wordle - Show Answer Hack

This script adds an element to the bottom of the page with the daily word. Simply hover & click and the daily word is revealed. Always "guess" the word in the first try and impress your friends.

// ==UserScript==
// @name         Wordle - Show Answer Hack
// @namespace    q1k
// @version      1.7.0
// @description  This script adds an element to the bottom of the page with the daily word. Simply hover & click and the daily word is revealed. Always "guess" the word in the first try and impress your friends.
// @author       q1k
// @match        *://www.nytimes.com/games/wordle/*
// @run-at       document-idle
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js
// ==/UserScript==
 
var mydiv = document.createElement("div");
mydiv.setAttribute("id","word-reveal");
var styles = document.createElement("style");
styles.innerHTML="*{box-sizing:border-box;} body{margin:0;display:flex;flex-direction:column;} body>div{height:calc(100% - 1.5em);position:relative;}#word-reveal{order:3;width:100%;height:1.5em;margin-left:-100%;margin:0; background:#555;color:#555;text-align:center;line-height:1.5em;z-index:10;user-select:none;} #word-reveal:hover{color:white;}";
 
//var gam = document.querySelector("#wordle-app-game");
document.body.appendChild(mydiv);
document.body.appendChild(styles);
/*
mydiv.addEventListener('click',function(e){
    mydiv.textContent = "Today's word: " + JSON.parse(localStorage['nyt-wordle-state']).solution.toUpperCase();
});
mydiv.innerHTML = "Click to reveal today's word";
*/
 
var fetched=false;
var fetching=false;
var date = new Date().toISOString().split('T')[0]
var fetchURL = 'https://www.nytimes.com/svc/wordle/v2/' + date + '.json'
mydiv.addEventListener('click',function(e){
    if(fetching || fetched){ return }
    fetching=true;
    mydiv.textContent = "revealing...";
    $.ajax({ url: fetchURL, type: 'GET', dataType: 'json',
        success: function(res) {
            mydiv.textContent = "Today's word: " + res.solution.toUpperCase();
            fetched=true;
        },
        error: function(res){
            mydiv.textContent = "Failed to fetch word";
        },
        complete: function(res){
            fetching=false;
        }
    });
});
mydiv.innerHTML = "Click to reveal today's word";