GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - html-preview/html-preview.github.io: HTML Preview for git-forge Repositories

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

152 Commits
152 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
LICENSES
LICENSES
 
 
run
run
 
 
.eslintrc.yml
.eslintrc.yml
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
forges.md
forges.md
 
 
htmlpreview.js
htmlpreview.js
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package-lock.json.license
package-lock.json.license
 
 
package.json
package.json
 
 
package.json.license
package.json.license
 
 

Repository files navigation

Git-Forge HTML Preview

License: Apache-2.0 REUSE status

Allows to render HTML files on git forges (like GitHub) in your browser, without cloning or downloading.

Warning

Freely hosted CORS (Cross-origin resource sharing) proxies - like the ones used by this script - are a potential security risk!

Warning

If a script stores sensitive data (as cookie, localStorage, etc...), then other repos you open will also have access to this data.

How to avoid risk:

  • Don't input sensitive data while previewing
  • Clear all site data after previewing a repo

Currently supported git forges:

  • GitHub
  • BitBucket
  • GitLab
    • gitlab.com
    • lab.allmende.io
    • gitlab.opensourceecology.de
  • ForgeJo
    • codeberg.org
  • SourceHut
  • Gitea

We have a collection of the file URLs for the above.

How it works

If you try to open raw version of any HTML, CSS or JS file in a web browser directly from GitHub, all you will see is its source code. GitHub forces them to use the "text/plain" content-type, so they cannot be interpreted in their native form by the browser.

Usage

In order to use it, just prepend this fragment to the URL of any HTML file: https://html-preview.github.io/?url= e.g.:

  • https://html-preview.github.io/?url=https://github.com/twbs/bootstrap/gh-pages/2.3.2/index.html
  • https://html-preview.github.io/?url=https://github.com/documentcloud/backbone/blob/master/examples/todos/index.html

What it does:

  1. Load HTML using CORS proxy
  2. Process all links, frames, scripts and styles, and
  3. Load each of them using CORS proxy, so they can be evaluated by the browser.

Git-Forge HTML Preview was tested under the latest Google Chrome and Mozilla Firefox (in 2012).

About

HTML Preview for git-forge Repositories

html-preview.github.io/

Topics

bitbucketcodebergforgejogitforgegithubgitlabhtmlpreviewersourcehut

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

56 stars

Watchers

2 watching

Forks

20 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.