Skip to content

Instantly share code, notes, and snippets.

@JohnathonNow
Created April 27, 2021 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnathonNow/886d5a2cd4f620e1dca2d0516ac55d99 to your computer and use it in GitHub Desktop.
Save JohnathonNow/886d5a2cd4f620e1dca2d0516ac55d99 to your computer and use it in GitHub Desktop.
javascript:(function(){var xhr = new XMLHttpRequest(); xhr.open("POST", "https://lichess.org/api/import", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send( "pgn="+encodeURIComponent(window.chesscom.analysis.pgn) ); xhr.onload = function() { window.location=(JSON.parse(this.responseText).url); }}())
@JohnathonNow
Copy link
Author

If you create a bookmark of this nonsense, you can use it on chess.com's analysis page to automatically switch to the lichess analysis tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment