ObiJuanKenobi / Wordle answer

// ==UserScript==
// @license MIT
// @name         Wordle answer
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.powerlanguage.co.uk/wordle/
// @icon         https://www.google.com/s2/favicons?domain=powerlanguage.co.uk
// @grant        none
// ==/UserScript==

function readTextFile()
{
    var ans = JSON.parse(localStorage.getItem("gameState"))['solution'];
    console.log(ans);
    alert(ans);
}
readTextFile();