Asciinema GitHub Userscript is a userscript that automatically embeds Asciinema players into GitHub. It detects asciinema.org/a links with preview in Markdown content and replaces them with an embedded player.
- Install a userscript manager for your browser, such as Tampermonkey
- install https://github.com/ghostflyby/asciinema-github-userjs/blob/dist/asciinema-github.user.js
After installing the script, visit a GitHub page containing Asciinema links, such as the asciinema project page
install pnpm
pnpm install
pnpm run build
The script is in dist/asciinema-github.user.js
Due to the CSP of GitHub, the AsciinemaPlayer library is bundled into the script.
If you don't trust the prebuilt script, you can build it yourself.