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!)

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!)

ئاپتورى
PRO-2684
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
21
باھا نومۇرى
0 0 0
نەشرى
0.1.3
قۇرۇلغان ۋاقتى
2026-05-12
يېڭىلانغان ۋاقتى
2026-06-12
Size
10.2 KB
ئىجازەتنامىسى
GPL-3.0
قوللايدىغىنى

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.