Chess.app is open source! https://opensource.apple.com/source/Chess/Chess-318/
https://opensource.apple.com/source/Chess/Chess-318/Styles/G...
2-3mb JS files brought it to a crawl, and I didn’t have many plugins btw.
For comparison, the source of the older Chess is also available, in https://opensource.apple.com/release/mac-os-x-1015.html though some parts might no longer compile.