Export from chessgames.com to lichess

Allows a user to quickly export a PGN to lichess for analysis

目前為 2022-01-11 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Unclevinny
評價
0 0 0
版本
0.3
建立日期
2021-11-19
更新日期
2022-01-11
尺寸
5.2 KB
授權條款
MIT
腳本執行於

This adds an "export to lichess.org" button on individual game pages on chessgames.com

Based on a script by bfishbaum, see below for details.

About this script:
An "export to lichess" button gets added below the game board. Clicking it shows a link to the game on lichess. If the game had previously been uploaded to lichess, it shows 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 make a note of it if you'd like to find it later.

Testing:
Tested with Firefox/ViolentMonkey and Chrome/TamperMonkey -- not working with GreaseMonkey right now because of a GM_addStyle bug...working on it!
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 (thanks to TimothyHa for the suggestion on how to fix an earlier problem with this)

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; I'll do my best to keep this script updated.

bfishbaum's original script is here: 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