Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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 linkhttps://github.com/courage/bookmark-shortcuts (Source)
    2. Click 'Clone or download'. Image Added
    3. Click 'Download ZIP'. Image Added
    4. Click on the .zip file when it finishes downloading. Image Added
    5. Click 'Extract all files' in the top-left of the window. Image Added
    6. Click 'Extract' in the bottom-right of the UI that appears. Image Added
    7. Drag the folder to your Desktop. Image Added
  2. Enable the Chrome extension.
    1. In Chrome, click the three-bar icon in the top-right, then click 'Settings'. Image Added
    2. Click 'Extensions' in the left side-bar. Image Added
    3. Click 'Load unpacked extension' in the top-left of the main screen. Image Added
    4. In the modal that appears, navigate to Desktop → bookmark-shortcuts-master → app. Image Added
      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. Image Added
  3. Set