76

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

4
  • 3
    Firefox users interested in this feature can set keywords for bookmarks, which can also be used to create custom searches.
    – user33758
    May 25 '14 at 17:14
  • 1
    I totally vote for implementing the keyword feature from Firefox into Chrome. Each bookmark can have a single key to be triggered (that's how I am using it). This saved me hundreds of hours of typing. Really a pity that Chrome 51 is still not providing this feature by core.
    – Avatar
    Aug 5 '16 at 7:42
  • 8
    An extension called AutoControl Shortcut Manager lets you assign shortcuts to specific bookmarks, bookmark folders and URLs.
    – GetFree
    Jun 8 '19 at 2:26
  • If you are already using Vimium, you can press b and any letter from your bookmarks to open it.
    – Betty
    Oct 15 '21 at 3:53

13 Answers 13

56

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 bookmarks 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://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.

8
  • 1
    The userscript can't work on some pages (github.com for example), since they don't accept script-injection...
    – yckart
    Apr 2 '14 at 15:49
  • 1
    I have tried adding a js file by dragging over the chrome://extensions window but the file cannot be dropped there, the cursor changes to a blocked icon. I appreciate this answer is quite old but can anyone confirm that this is still possible with current versions? I am on 52.0.2743.116 m
    – tallpaul
    Aug 26 '16 at 13:09
  • 2
    The OP asked for Shortcut, the stuff listed above is no shortcut. A shortcut is e. g. CTRL SHIFT G to open Google Mail etc.
    – Avatar
    Feb 16 '18 at 13:32
  • 1
    Seems like a highly outdated version sadly. After writing manifest files and everything, which is now a requirement, it still does not work.
    – codepleb
    Apr 12 '18 at 6:37
  • 1
    @Dennis Thank you for your work. Based on this answer, I created an extension that works again: superuser.com/a/1313997/276470
    – codepleb
    Apr 14 '18 at 9:33
21

As reported in How to Assign a Keyboard Shortcut Key to Frequently Used Google Chrome Bookmarks the key is to set the specific URL to a default Search engine.

  1. Open chrome://settings/searchEngines to load the list of search engines.

  2. In "Other search engines" add a new one with the following parameters:

    • Search engine: the name you give to the search engine.
    • Keyword: the keyword you want, say SU.
    • URL with %s in place of query: http://superuser.com/ alone if you want the alias to point directly to the site.

After saving it, whenever you type SU in your URL bar you will be either sent to http://superuser.com/ or to http://superuser.com/bla.

enter image description here

You can also specify a placeholder %s when filling the URL with %s in place of query field, say http://superuser.com/%s. Then, when you type "su" Tab + "bla" it will send you to http://superuser.com/bla.

This is the current behaviour for Google Chroome 79.

6
  • 1
    love this idea, gist.github.com/Artistan/45fa744b899f4f054173693298d41930
    – Artistan
    Jan 25 '18 at 17:17
  • 5
    One can also rightclick the url bar and select "edit search engines" instead of having to remember the chrome: url Feb 7 '18 at 14:36
  • In 2020 you're going to have to type a space and a "search phrase" as well -- Enter won't work. That's fine, your URL won't have a %s in it, so any letter will work. For example just type SU s.
    – Noumenon
    Jan 31 '20 at 3:50
  • This stopped working after the first time I tried it, I think because Google figured out it was a static site with no search variable. I put a dummy %s in the URL, like http://superuser.com/#%s, and that seems to keep it working.
    – Noumenon
    Jan 31 '20 at 4:09
  • @Noumenon thanks for your comment. Using Chroome 79 it worked to me without any placeholder. I updated the answer, feel free to indicate your version if the behaviour I explain is not the same in your version.
    – fedorqui
    Jan 31 '20 at 9:32
19

Another approach is to

  • Move focus to the url bar with +L.
  • Type the full name of the bookmark followed by a /.
  • Press tab to select the second autocompletion (which in my experience is always the first matching bookmark name).
  • Press enter.
5
  • 23
    Type the full name of the bookmark is not a shortcut, sorry.
    – Avatar
    Feb 16 '18 at 13:34
  • 4
    @KaiNoack I just tried it on Chrome on Linux. It doesn't actually require the full name, partial is enough (with possibly more tab auto-complete usage)
    – 6005
    Feb 21 '18 at 22:35
  • 4
    Typing enough characters to be unique is enough, if you prefix your bookmark names with the desired shortcut keys this can be kept very short. (Unfortunately it doesn't substring match anywhere in the name, you have to type from the left)
    – 79E09796
    Dec 3 '18 at 13:26
  • This doesn't work any more, unless there's a way to turn Google search recommendations off. Even "bxzyz" would need seven tab presses.
    – Noumenon
    Jan 31 '20 at 4:15
  • This method is really good. It even works with js bookmarklet. Very handy. Just put a short prefix as the desired shortcut in front of the name of your bookmark.
    – Betty
    Mar 29 '21 at 11:50
10

Note: Shortcut is defined as 1 key combination, most of the other answers do require more typing.

Solution A: Autohotkey

Use Autohotkey and define your own shortcuts for your main bookmarks. Here is a script that I prepared as a dummy for you: chrome-bookmarks-shortcuts.ahk

For instance, hold SHIFT WIN and hit G to open gmail.com.


Solution B: Chrome extension: SiteLauncher (Speed Dial)

It helps to a certain extent, however, you can only assign one letter to a bookmark, not two or more.


Solution C: Chrome extension: Shortkeys (Custom Keyboard Shortcuts)

This extension can handle one letter or combinations to open assigned bookmarks. The only problem: You cannot enter those combinations in the URL bar. My workaround, CTRL + T for new tab, then TAB then combination.

However, both extensions feel a bit buggy.


Solution D: Using Chrome's "Custom SearchEngine" (Hack)

This solution does not need any plugin or extra software: https://superuser.com/a/468548/169199 👍


Shortcuts in Firefox

To recall how the bookmark properties look like in Firefox and how easily you can assign a keyword (shortcut) to it:

Firefox keyword field

In Firefox, now entering "mp" in the URL bar opened the specific website. As you can read in the net, Chrome does not have this simple feature and uses the "Search engine" section for this.

0
6

This works well on Windows:

First make sure your booksmarks bar is showing (CTRL+Shift+b) and then use:

F6

or

Shift+F6

Those keys switch focus between the Address bar, Bookmarks bar (if showing), and page content.

So if my focus is on the page content, I would use Shift+F6 and then use my arrow keys to navigate my bookmarks.

1
  • For firefox without using keywords? Oct 27 '18 at 13:28
6

Inspired by the approach of Dennis:

It didn't work for me and this is probably because his answer is kind of old, but I liked the approach about implementing this myself, since there doesn't seem to be a proper solution out there in the web store.

Here's what you need to do:

  • Create 2 files, manifest.json and background.js. Put them into a new folder and add the content below to those files.
  • Within chrome, type chrome://extensions in the address bar and activate developer mode on the top right (switch).
  • Click on the Load unpacked button that appeared and select your folder containing the files.

That's it, with this, you have what you need. As soon as you type CTRL+ALT+G, google will open in a new tab. :)

manifest.json:

  {
    "name": "Bookmark Shortcutter",
    "version": "1.0",
    "description": "Custom shortcuts for bookmarks! Coolio!",

    "permissions": ["http://*/*", "tabs"],
    "content_scripts": [
      {
        "matches": ["http://*/*", "https://*/*"],
        "js": ["background.js"],
        "run_at": "document_start"
      }
      ],
    "manifest_version": 2
  }

background.js:

if (window == top) {
    window.addEventListener('keyup', doKeyPress, false);
}

var bookmarks = {}, url;

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

function doKeyPress(event){
    if(event.ctrlKey && event.altKey && !event.shiftKey) {
        if(url = bookmarks[String.fromCharCode(event.keyCode)]) {
            window.open(url);
        }   
    }
}
2
  • Looks like an amazing solution, but when I press "Load Unpacked" no dialog comes up. I think it doesn't work when the page says "Your browser is managed by your organization." You still deserve an upvote.
    – Noumenon
    Jan 31 '20 at 4:03
  • worked for me, right of the bat :) Oct 1 '20 at 20:08
3

Try this chrome extention Shortkeys (Custom Keyboard Shortcuts) provided by Mike Crittenden.

shortcut

1
  • Works beautifully for my bookmarklet. Though I had to use Run Javascript instead of Open Bookmark/Bookmarklet. And it supports Mac Cmd modifiers. Sep 20 '19 at 23:27
2

Addition to the top answer's solution, if you want to also use some scripts like changing playback speed on youtube:

var bookmarkLauncherSetup = (function() {
    var bookmarks = {}, url;
    bookmarks['G'] = 'http://google.com';
    bookmarks['1'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 1';
    bookmarks['2'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 1.5';
    bookmarks['3'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 2';
    bookmarks['4'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 2.5';
    bookmarks['5'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 3';
    bookmarks['6'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 4';
    bookmarks['7'] = 'javascript:document.getElementsByClassName("video-stream html5-main-video")[0].playbackRate = 5';

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

The following works by typing a keyword into the address bar (omnibar) and pressing enter to jump to a specific url. In Chrome (as of version 59.0), this isn't available through the bookmark manager like it is in Firefox, but you can easily use the Search Engine Shortcuts feature of Chrome to work the same way.

  1. Right click the address bar (omnibar)
  2. Select edit search engines...
  3. Click on 'ADD' - which appears after the default search engines section
  4. In the dialog that pops up:
    • in the search-engine field - name your bookmark
    • in the keyword field - enter your keyword shortcut string (what you will need to type in the omnibar to quickly jump to this 'bookmark'
    • In URL field - type in the url you want to associate with the keyword

Note: the url can contain a special placeholder: "%s" (without the quotes) that will serve as a placeholder for additional text that you can enter if you press tab after typing the keyword shortcut.

For example: I use a keyword shortcut that jumps to list of bookmarks on pinboard.com by given tag. For that:

Then to access all my bookmarks on pinboard tagged with 'todo'

1

An easily accessible fuzzy search over your Chrome bookmarks:

  1. In order to search the bookmarks, activate Vimium chrome extension's "Vomnibar" with b key from any webpage.

  2. If you want to create a system-wide shortcut, you could use the following Autohotkey automation tool script

    #NoEnv
    SetBatchLines -1
    ListLines Off
    SendMode Input
    
    #Space::  ; windows+space will open a Chrome window with search bar over bookmarks from any location
    run, http://blank.org  ; Or any regular webpage. A local webpage would work as well.
    WinWait ahk_exe chrome.exe
    WinActivate ahk_exe chrome.exe
    WinWaitActive ahk_exe chrome.exe
    send, {b}
    return
    

Bonus: you can search your bookmarks by folder by using /. Type in "Vomnibar" /myBookmarkDir myBookmark

0

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.

1
0

I know this thread is quite old. But this is to inform those interested by a solution, that in the past weeks I have programmed an extension to mimic firefox behavior.

The extension picks the aliases directly from your bookmarks. The user adds an alias by editing a bookmark in chrome's bookmark manager. If it works as a bookmark it works as an alias (http(s), javascript, with/without %s parameter). It's also easier to export/import bookmarks with their aliases.

You can find it in the webstore under the name "Alias Bookmarks" by Achernar.

1
  • Update: I have since added aliased folders to the extension. It is still experimental, but you can use it to do a "group search" with a set of search engines (with parameters). Feel free to test.
    – Achernar
    May 28 '18 at 14:28
0

December 2019.

If you arrived here looking for what Google Chrome calls now shortcuts (differing from keyboard shortcuts) because you want to add shortcuts to specific URLs in your Windows 10, this might help.

Make sure your Windows 10 is updated to the latest version (1903).

Create shortcut manually

Most flexible option.

In order to add multiple shortcuts to the same domain you need to create them manually. COPY-PASTE doesn't work.

  1. Open your file explorer and go to %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps

  2. Right click > New > Shortcut

  3. The location of the item is: "C:\Program Files (x86)\Google\Chrome\Application\chrome_proxy.exe" --profile-directory=Default --app="TARGET_URL" .

    • Replace TARGET_URL with your relevant URL
    • Note that the path to chrome_proxy.exe might differ in your installation.
  4. Now the shortcut is created but doesn't look pretty. You can change this by opening the shortcut properties > Change icon… and finding the relevant icon. Tip: If you created a shortcut from your browser before, the icon will be somewhere.

  5. Right click on icon > pin to start. You can have multiple shortcuts to the same app, as long as the URL is somehow different.

Create shortcut using Chrome options

To then modify it to open a specific URL rather than the landing page.

  1. Create the shortcut from Chrome: "⋮" > More tools > Create shortcut…
  2. Go to %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps
  3. Right click the shortcut you created
  4. In the Target field, replace --app-id=XXXXXX for --app="TARGET_URL"
    • Replace TARGET_URL with your relevant URL

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