Wordle - Word Reveal 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.

当前为 2022-08-17 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Wordle - Word Reveal Hack
// @namespace    q1k
// @version      1.6.3
// @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
// ==/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;} #word-reveal{order:3;width:100%;margin-left:-100%;margin:0; background:#555;color:#555;text-align:center;line-height:1.5em;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";