Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 913 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 913 Bytes

Make Bookmarklet

Overview

Converts a JavaScript file into a javascript: URL that can be used as a bookmarklet. The bookmarklet text is inserted into the current file as a comment on the first line for reference or to copy out later. It is also immediately copied to the clipboard (which can be disabled with a setting).

This is an unabashed rip-off of John Gruber's Perl version, just made to work natively in Sublime Text 3 and 4.

Usage

From the Command Palette, search for Make Bookmarklet.

Or, under the menu Tools > Make Bookmarklet.

Example Bookmarklet

Limitations

  1. Does not strip /* multi-line comments*/, so don't use them.