GitHub Preview (UserScript)

Adds a button on GitHub to preview HTML and media files directly.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

May akda
PRO-2684
Mga pang araw araw na pag install
2
Kabuuan na installs
25
Mga Rating
0 0 0
Bersyon
0.1.3
Nilikha
2026-05-12
Na update
2026-06-12
Laki
10.2 KB
Lisensya
GPL-3.0
Nalalapat sa

GitHub Preview (UserScript)

Greasy Fork GitHub Repo stars

Adds a button on GitHub to preview HTML and media files directly. Uses GitHub Preview.

Preview Button

🪄 Features

  • Event-driven: Faster and more efficient than mutation observers. Less error-prone than monkey-patching.
  • Seamless: Reuses GitHub's design language and icon. Blends in perfectly with the UI.

🔒 Private Repos

This script works on private repositories as well, as long as you have access to the files. To do that, this script simply issues a HEAD request to the raw file URL, follows the redirect, and use the final URL which would include a token. However, HTML files referencing other files (e.g. CSS, JS) may not work properly due to the lack of token in their URLs.