GitHub Preview (UserScript)

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

Od 12.06.2026.. Pogledajte najnovija verzija.

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

Autor
PRO-2684
Ocjene
0 0 0
Verzija
0.1.3
Stvoreno
12.05.2026.
Ažurirano
12.06.2026.
Size
10,2 KB
Licenza
GPL-3.0
Primjenjuje se

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.