Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to enable keyboard shortcut to open specific bookmark / URL while using Chrome?

share|improve this question
    
Firefox users interested in this feature can set keywords for bookmarks, which can also be used to create custom searches. –  screener May 25 at 17:14
add comment

2 Answers 2

up vote 7 down vote accepted

Without extensions

The only ways (that I know of) to open a bookmark with the keyboard are the following:

  • Using the Bookmark Manager:

    1. Open Bookmark Manager by pressing Ctrl + Shift + O.

    2. Three options:

      • Search all bookmarks (just start typing), press Tab twice and select the desired bookmark with the arrow keys.

      • Press Tab, select the desired folder, press Tab again and select the desired bookmark with the arrow keys.

      • If the desired bookmark is in the Bookmarks Bar, press Tab twice and select the desired bookmark with the arrow keys.

    3. Press Enter.

  • Using Customize and control Google Chrome:

    1. Press Alt + E or Alt + F to open Customize and control Google Chrome.

    2. Press B to enter Bookmarks.

    3. Assuming the desired bookmark is in the Bookmarks Bar, select it with the arrow keys.

    4. Press Enter.

  • Using the Omnibox:

    1. Press Ctrl + L, Alt + D or F6 to focus the Omnibox.

    2. Type (part of) the desired bookmark's name.

    3. When it appears in the drop-down below the Omnibox, select the desired bookmark with the arrow keys.

    4. Press Enter.

With extensions

Several extensions are able to do this. The easiest way is probably a user script like this one:

// ==UserScript==
// @name          Bookmark Launcher
// @description   Launches bookmakrs with keyboard shortcuts
// ==/UserScript==

var bookmarkLauncherSetup = (function() {
    var bookmarks = {}, url;

    bookmarks['G'] = 'http://google.com';
    bookmarks['S'] = 'http://superuser.com';

    window.addEventListener('keyup', function() {
        if(event.ctrlKey && event.altKey && !event.shiftKey)
            if(url = bookmarks[String.fromCharCode(event.keyCode)])
                window.open(url);
    });
}());

To use it, do the following:

  1. Modify the array bookmarks to suit your needs. All letter and number keys should work fine.

  2. Save the code as bookmark-launcher.user.js in a location of your choice.

  3. Open chrome://chrome/extensions/ in Google Chrome.

  4. Drag and drop bookmark-launcher.user.js in the open tab.

  5. Click Add.

Note that no extension can function in tabs opening chrome://... URLs (this includes New Tab) or the Chrome Web Store.

In any other tab (after reloading it), pressing Ctrl + Alt + S will open Super User in a new tab.

Note that you have to be focusing the tab itself. If you're focusing, e.g., the omnibox or the developer console, the keyboard shortcuts won't have any effect.

share|improve this answer
    
It's working like a charm! Many thanks! :) –  RCola Oct 30 '12 at 13:52
1  
+1, Great answer! –  amiregelz Oct 30 '12 at 15:30
    
The userscript can't work on some pages (github.com for example), since they don't accept script-injection... –  yckart Apr 2 at 15:49
    
Update fixed the problem with script-injection, edited the answer. Should work now... –  yckart Apr 2 at 16:03
    
@yckart: It does. Thanks. –  Dennis Apr 2 at 17:03
add comment

Try this Chrome Bookmark Shortcut:

You can now open bookmarks using key board shortcuts.

You need to manually edit the javascript code, but instructions are provided at the above link.

share|improve this answer
1  
what does this do? –  Sathya May 25 at 17:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.