您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows a user to quickly export a PGN to lichess for analysis
当前为
This adds an "export to lichess.org" button on individual game pages on chessgames.com
Based on a script by bfishbaum: https://greasyfork.org/en/scripts/389928-lichess-analysis-link-on-chessbase
I wrote this to make a few fixes in that script, since it hadn't been updated in a while:
* Title and code referred to Chessbase, not chessgames.com
* Chessgames.com switched to using https, so the script didn't load
* The DOM structure has also changed, so even after the https fix it was still broken
* Unnecessary logging to the console
About the script:
A "export to lichess" button gets added. Clicking it shows a link to the game on lichess. If the game had previously been uploaded to lichess, you'll get a link to that game. Annotations and computer eval aren't imported. Even if you're logged in to lichess, the imported game isn't added to your "imported games" list, so be sure to bookmark it or add it to a study if you'd like to find it later.
Testing:
Tested with Firefox/ViolentMonkey and Chrome/TamperMonkey
Tested while logged in and out of chessgames.com
Tested with AdBlocker Ultimate on and off
Tested while logged into and out of lichess
Tested with large (> 100 move) games
Note: Use the default "Olga" PGN viewer to see the link. If this is a huge problem, let me know.
I'd appreciate your feedback, and will do my best to keep this updated.