Skip to content

bcantoni/bookmarklets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookmarklets

Supercharge your browser with custom bookmarklets — tiny JavaScript programs that live in your bookmarks bar and run with a single click. Build them, decode existing ones, and manage your whole collection, all without installing anything.

Live site: https://bcantoni.github.io/bookmarklets/

Blog post: https://www.cantoni.org/2025/12/30/modern-browser-bookmarklets/

Bookmarklets web app screenshot

Features

  • Create & Edit Bookmarklets - Write JavaScript code and convert it to bookmarklet format
  • Reverse Engineering - Paste any bookmarklet to decode it back to readable JavaScript
  • Code Formatting - Built-in prettifier to clean up your code
  • Test In-Browser - Run your bookmarklet directly in the current page
  • Local Storage - All bookmarklets are saved in your browser's local storage
  • Import/Export - Backup and restore your collection as JSON
  • Drag & Drop Install - Drag the generated link directly to your bookmarks bar

How It Works

The bookmarklet conversion process:

  1. Minifies the JavaScript code (preserving strings)
  2. Wraps it in an IIFE (Immediately Invoked Function Expression) to isolate scope
  3. URL encodes the result
  4. Adds the javascript: prefix

Built With

  • Single HTML file with embedded CSS and JavaScript
  • Vanilla JavaScript (no frameworks)
  • Highlight.js for syntax highlighting
  • js-beautify for code formatting
  • Browser localStorage for persistence
  • Hosted on GitHub Pages

License

MIT License

Development

This project was built with assistance from Claude Code.

About

Bookmarklet collection editor

Resources

License

Stars

Watchers

Forks

Contributors

Languages