A Browser extension for chess.com.
This entire project done for the purpose of challenge and education. Not for the purpose of cheating.
⚠ USE AT YOUR OWN RISK. YOUR ACCOUNT WILL GET BANNED IF CHEATED ON REAL PLAYERS WHICH VIOLATES CHESS.COM's FAIR PLAY POLICY. ⚠
git clone URL
Chrome
- GOTO
chrome://extensions(Type in URL bar) - SELECT
Load Unpackedand OPEN themanifest.jsonfile (chess.com (github)/chrome/manifest.json)
Firefox:
- GOTO
about:debugging(Type in URL bar) and then CLICKThis Firefox - CLICK
Load Temporary Add-On - OPEN the
manifest.jsonfile
cd 'chess.com (github)/engine'python server.py
- The Extension loads when you go to
chess.com/play/computer - Next, you need to Connect to the Server from Extension's
Connection Info Element- 😈 == Connection is Down...
- Click on it.
- 😀 == Connection is connected on the connection channel so that the connector can communicate to the other connecting side.
- Click
Start - It will show the next best move for both armies.
Tips:
😈 --> 😀 on First Run. On First Run of Extension, Clicking 😈 won't change to 😀, as connection is failed to establish.
To solve this, visit "https://localhost:9999" once and procede toAdvance/Trust the Certificateas this makes your browser trust the self-signed certs and is is necessary to establish as secure websocket connection. Now 😈 onclick --> 😀.
On Chrome, Since we are running on a HTTPS website, we cannot use HTTP for websockets as of this and hence forced to use Secure WebSockets.
But note it can work with HTTP WebSocket in FireFox, all you need to do change one line in server.py to not use tls.
When you are playing in the middle of game and use forward/backward moves, please note it will mess up the game logic as of now. If so,
- Go the starting position, (better
Stopbefor that) Reset Game Data,Start,- Now come to the last position and wait for the bestmove.
- WebSocket Server
- Python
- Stockfish
- All opensource softwares and developers.