https://github.com/ghostflyby/asciinema-github-userjs
View Asciinema directly in README and other markdown on GitHub
https://github.com/ghostflyby/asciinema-github-userjs
asciinema userscript userscripts
Last synced: about 2 months ago
JSON representation
View Asciinema directly in README and other markdown on GitHub
- Host: GitHub
- URL: https://github.com/ghostflyby/asciinema-github-userjs
- Owner: ghostflyby
- License: mit
- Created: 2025-04-07T07:19:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-17T10:53:14.000Z (5 months ago)
- Last Synced: 2026-01-17T19:23:52.237Z (5 months ago)
- Topics: asciinema, userscript, userscripts
- Language: TypeScript
- Homepage:
- Size: 316 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Asciinema GitHub Userscript
## Overview
Asciinema GitHub Userscript is a userscript that automatically embeds [Asciinema](https://asciinema.org/) players into GitHub. It detects asciinema.org/a links with preview in Markdown content and replaces them with an embedded player.
## Installation
1. Install a userscript manager for your browser, such as [Tampermonkey](https://www.tampermonkey.net/)
2. install [https://github.com/ghostflyby/asciinema-github-userjs/blob/dist/asciinema-github.user.js](https://raw.githubusercontent.com/ghostflyby/asciinema-github-userjs/refs/heads/dist/asciinema-github.user.js)
## Usage
After installing the script, visit a GitHub page containing Asciinema links, such as the [asciinema project page](https://github.com/asciinema/asciinema)
## build
install pnpm
```bash
pnpm install
pnpm run build
```
The script is in `dist/asciinema-github.user.js`
## Note
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.