/chess-com-voice

Chess.com Voice Commentary Chrome extension

Primary LanguageJavaScriptMIT LicenseMIT

Chess.com Voice Commentary

Source code for the extension on Chrome Web Store to hear chess moves and annotation spoken as they are played on Chess.com.

Issues / Frequently Asked Questions

I don't hear any moves read

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.

I still have an issue

Open an issue here.

Development

To run the extension locally,

  1. Check if your Node.js version is >= 6.
  2. Clone the repository.
  3. Install yarn.
  4. Run yarn.
  5. Run npm run start
  6. Load your extension on Chrome following:
    1. Access chrome://extensions/
    2. Check Developer mode
    3. Click on Load unpacked extension
    4. Select the build folder.

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

Publishing (Chess.com team only)

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.

Credits