Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website to Markdown (Website MD)

Browser extension to save web pages as markdown files.

I built this because I don't trust third-party extensions - no idea what data they collect. This one is dead simple, zero dependencies for the core logic, and you can read the entire source code in minutes. Install it yourself and know exactly what's running in your browser.

Features

  • Click toolbar icon to download current page as markdown
  • Extracts main content (excludes nav, header, footer)
  • Preserves heading hierarchy
  • Filename format: example-com_page-path.md

Build

Requires Bun (curl -fsSL https://bun.sh/install | bash)

bun install
bun run build          # Build both browsers
bun run build:firefox  # Firefox only
bun run build:chrome   # Chrome only

Package

bun run pack:firefox   # Creates dist/website-md-firefox.xpi
bun run pack:chrome    # Creates dist/website-md-chrome.zip

Install

Firefox (Permanent)

First, enable unsigned extensions (do this at your own risk, but generally safe for extensions you build yourself):

  1. Go to about:config
  2. Search for xpinstall.signatures.required
  3. Set it to false

Then install:

  1. Go to about:addons → gear icon → "Install Add-on From File"
  2. Select dist/website-md-firefox.xpi

Optionally, you can sign it for free at addons.mozilla.org (can be unlisted/private) to skip the config change.

Firefox (Temporary)

  1. Open about:debugging#/runtime/this-firefox
  2. Click "Load Temporary Add-on"
  3. Select dist/firefox/manifest.json

Chrome

  1. Open chrome://extensions
  2. Enable "Developer mode"
  3. Click "Load unpacked"
  4. Select dist/chrome/ folder

Output Format

# Page Title

> Source: https://example.com/page
> Saved: 2025-01-28

[converted content]

About

Dead simple website to markdown browser extension

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages