Lewdle - 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-03-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         Lewdle - Word Reveal Hack
// @namespace    q1k
// @version      1.0.2
// @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
// @include      *://www.lewdlegame.com/*
// @run-at       document-idle
// ==/UserScript==

var mydiv = document.createElement("div");
mydiv.setAttribute("id","word-reveal");
var styles = document.createElement("style");
styles.innerHTML="body{overflow:auto;} .versionNumMain{display:none;} .mainKeyboard{height:100%;} /*.overlayCopied{padding:0 5px;margin:0;}*/ #root>.App{display:flex;flex-direction:column;} .AppContainer{margin:auto;} *{box-sizing:border-box;} #word-reveal{user-select:none;text-align:center;line-height:1.5em;background:#555;color:#555;} #word-reveal:hover{color:white;} .game-id{display:none;}";

var game = document.querySelector("#root > div");
game.appendChild(styles);
game.appendChild(mydiv);

mydiv.addEventListener('click',function(e){
    mydiv.textContent = "Today's word: " + atob(JSON.parse(localStorage.currentTarget)).toUpperCase();
});
mydiv.innerHTML = "Click to reveal today's word";