Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess.com to Lichess Import

Chrome extension that detects supported Chess.com game pages and imports the current game into Lichess with one click.

Development

  1. Install dependencies with npm install.
  2. Build the extension with npm run build.
  3. Re-run npm run build whenever you change files under src/.

The TypeScript source lives in src/, and the compiled extension files are emitted to dist/.

How it works

  1. On a Chess.com game page, the content script watches for the Share button.
  2. While the game page is supported but the PGN is not ready yet, the extension badge shows as a retry state.
  3. When the PGN can be imported, the badge shows PGN.
  4. Clicking the extension action always tries to read the PGN again, even if the page was loaded earlier or the content script needs to be reattached.
  5. If the import succeeds, the extension opens https://lichess.org/paste with an import token in the URL hash, and a Lichess content script fills the PGN form and submits it in-page.

This avoids using the clipboard, avoids requiring a Lichess API token, avoids cross-origin POST failures from extension pages, and avoids matching the game through Chess.com's monthly archive API.

Load the extension

  1. Run npm run build.
  2. Open chrome://extensions.
  3. Enable Developer mode.
  4. Click Load unpacked.
  5. Select this folder.

Notes

  • The extension is currently scoped to Chess.com game pages.
  • Lichess imports created through this flow are public, matching the normal import page behavior.
  • If Chrome already has a Lichess import tab open, this extension still opens a fresh https://lichess.org/paste tab for a predictable one-click flow.

About

Chrome extension that detects supported Chess.com game pages and imports the current game into Lichess with one click.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages