GitHub Preview (UserScript)

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

Від 12.06.2026. Дивіться остання версія.

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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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 0 0
Версія
0.1.3
Створено
12.05.2026
Оновлено
12.06.2026
Size
10,2 кБ
Ліцензія
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.