Source code for the extension on Chrome Web Store to hear chess moves and annotation spoken as they are played on Chess.com.
Your browser may require you to interact with the page (such as a click) first before allowing audio playback. Hence, try clicking anywhere on the page, like an empty space. See "Autoplay policy in Chrome", Chrome.com for more.
Open an issue here.
To run the extension locally,
- Check if your Node.js version is >= 6.
- Clone the repository.
- Install yarn.
- Run
yarn
. - Run
npm run start
- Load your extension on Chrome following:
- Access
chrome://extensions/
- Check
Developer mode
- Click on
Load unpacked extension
- Select the
build
folder.
- Access
This workflow uses the webpack server with auto reload feature that reloads the browser automatically every time that you save some file o your editor.
You can run the dev mode on other port if you want. Just specify the env var port
like this:
$ PORT=6002 npm run start
After the development of your extension run the command
$ NODE_ENV=production npm run build
Now, the content of build
folder will be the extension ready to be submitted to the Chrome Web Store.
- Samuel Simões for Chrome Extension Webpack Boilerplate