iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔍
Built a Chrome Extension for Instant HTML Preview and Editing
What I Made
Available on the Chrome Web Store
(It cost $5 to register as a developer, even though VS Code was free.)
Features
It "only" previews HTML in the Chrome side panel.
How to Use
-
Click this button in the top right corner of Chrome

-
Switch to HTML Preview

Copy and paste the HTML
Example 1: When generating HTML with ChatGPT

Example 2: When you want to copy-paste and make minor edits

Example 3: When you want to experimentally build UI components

It is an extension that saves you a bit of the trouble of editing in an editor for tasks like these.
Local Installation
Clone from git and click "Load unpacked" below:

Implementation Details
It simply displays the HTML from a textarea in an iframe 😇
Motivation
I learned about the existence of the Side Panel and thought it would be good for previewing HTML, so I created it quickly.
I initially explored building a mini-browser, but that plan fell through due to iframe restrictions and Side Panel limitations...
Articles That Might Be Helpful
Discussion