bookmarkify
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "bookmarkify", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "view-component-bookmarklet.js", |
@@ -14,4 +14,11 @@ # Bookmarkify | ||
```sh | ||
bookmarkify source.js label > bookmarklet.js | ||
bookmarkify ./source.js label > target.html | ||
``` | ||
For example, if `./source.js` consists of just `alert()`, and you want the label to be "alert", then `bookmarkify ./source.js alert` will produce the following HTML: | ||
```html | ||
<a href="javascript:alert%28%29%3B">alert</a> | ||
``` | ||
If you put this HTML on a page, users will be able to drag the link to their bookmarks bar and then click it to do stuff as defined in your code. | ||
1204
24