How to create a 'Hello World' bookmarklet in Chrome
- In Chrome, click the three-bar icon in the top right, then 'Bookmarks', then 'Bookmark manager'.
- Right-click the 'Bookmarks bar' folder and select 'Add page'.
- For the 'Name', put 'Hello World!', and for the URL paste in the code below.
- javascript: alert('Hello World!');
- To test the bookmarklet, open a new tab and click the new bookmark.
How to launch a bookmark in Chrome with a keyboard shortcut
- Try this: https://github.com/courage/bookmark-shortcuts (Source)