Add 'export to lichess' link to chessgames.com pages

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

目前為 2021-11-19 提交的版本,檢視 最新版本

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

This adds a subtle "export to lichess.org" link 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

Testing:
Tested with Firefox, Chrome
Tested with ViolentMonkey
Tested while logged in and out of chessgames.com
Tested with AdBlocker Ultimate on and off
Tested while logged into and out of lichess

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.