Wordle Word Revealer

Reveals wordle answer!

当前为 2024-05-04 提交的版本,查看 最新版本

// ==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 f, r = true;
    function a() {
        if (r) {
            f = requestAnimationFrame(a);
            if (window['wordle-app-game']) {
                if (t = Array.from(document.querySelectorAll('h1')).filter(t => t.textContent.toLowerCase().includes('wordle'))[0]) {
                    var first = Object.values(window['wordle-app-game'])[0].stateNode.offsetParent;
                    var second = Object.values(first)[0];
                    var third = second.return.return.stateNode.offsetParent;
                    var fourth = Object.values(third)[0].child.sibling.child.child.child.child.child.child.child.child.child.child.child.stateNode._reactInternals.return.return.memoizedState.next.next.next.next.memoizedState.current.api.solution.data.solution;
                    t.textContent = fourth;
                };
            };
        };
    };
    try {
        a();
    } catch (error) {
        console.log(error);
        r = false;
        cancelAnimationFrame(f);
    };
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址