Bookmarklets

 

 

 

How to create a 'Hello World' bookmarklet in Chrome

  1. In Chrome, click the three-bar icon in the top right, then 'Bookmarks', then 'Bookmark manager'. 
  2. Right-click the 'Bookmarks bar' folder and select 'Add page'. 
  3. For the 'Name', put 'Hello World!', and for the URL paste in the code below. 
    1. javascript: alert('Hello World!');
  4. To test the bookmarklet, open a new tab and click the new bookmark. 

 

How to launch a bookmark in Chrome with a keyboard shortcut

  1. Download an unofficial Chrome extension that does this for you.
    1. Go to this link: https://github.com/courage/bookmark-shortcuts (Source)
    2. Click 'Clone or download'. 
    3. Click 'Download ZIP'. 
    4. Click on the .zip file when it finishes downloading. 
    5. Click 'Extract all files' in the top-left of the window. 
    6. Click 'Extract' in the bottom-right of the UI that appears. 
    7. Drag the folder to your Desktop. 
  2. Enable the Chrome extension.
    1. In Chrome, click the three-bar icon in the top-right, then click 'Settings'. 
    2. Click 'Extensions' in the left side-bar. 
    3. Click 'Load unpacked extension' in the top-left of the main screen. 
    4. In the modal that appears, navigate to Desktop → bookmark-shortcuts-master → app. 
      1. Explanation: 'app' is the folder that contains the files that Chrome uses as the 'brains' of the extension.
    5. Click 'OK'.
    6. You should see the extension show up in the list of extensions. 
  3. Set a bookmark to be opened with a keyboard shortcut.
    1. Put the string '[Alt+1]' (including the brackets) in the title of a bookmark. (Source)
      1. If multiple bookmarks have the tag, the shortcut key will open them all. (Source)
  4. Press the keyboard combination to test the bookmark.
    1. For the sake of testing, just use '[Alt+1]' in the name of a bookmark and press that combination to confirm that it works.
  5. Modify the extension to