For those who love to play the New York Times (NYT) Spelling Bee and want to uncover all the words and beecome the Queen Bee! Link to NYT's Spelling Bee: (https://www.nytimes.com/puzzles/spelling-bee).
https://extensionworkshop.com/documentation/publish/distribute-sideloading/
Use web-ext
to quickly load the extension into the browser.
npm install --global web-ext
To load the extension, just run:
web-ext run
in the root of this repository.
To debug and see the console, go to about:debugging
in the browser and inspect the extension.
You'll need to sign the extension. Generate an API key if you haven't already: https://addons.mozilla.org/en-US/developers/addon/api/key/
cp .env.example .env
and add your API key information./publishScript.sh
Be patient; it can take a while
A content script is run within the Spelling Bee page. That content script injects a script element into the
DOM which can access the custom properties (e.g. gameData
) of the window. The script element script will read the
answers from gameData.today.answers
and place them in within a hidden element on the DOM.
The content script will then be able to read the hidden element's content and return the answers to the extension.