57
28
How to enable keyboard shortcut to open specific bookmark / URL while using Chrome?
57
28
How to enable keyboard shortcut to open specific bookmark / URL while using Chrome?
40
The only ways (that I know of) to open a bookmark with the keyboard are the following:
Using the Bookmark Manager:
Open Bookmark Manager by pressing Ctrl + Shift + O.
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.
Press Enter.
Using Customize and control Google Chrome:
Press Alt + E or Alt + F to open Customize and control Google Chrome.
Press B to enter Bookmarks.
Assuming the desired bookmark is in the Bookmarks Bar, select it with the arrow keys.
Press Enter.
Using the Omnibox:
Press Ctrl + L, Alt + D or F6 to focus the Omnibox.
Type (part of) the desired bookmark's name.
When it appears in the drop-down below the Omnibox, select the desired bookmark with the arrow keys.
Press Enter.
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:
Modify the array bookmarks
to suit your needs. All letter and number keys should work fine.
Save the code as bookmark-launcher.user.js
in a location of your choice.
Open chrome://extensions/
in Google Chrome.
Drag and drop bookmark-launcher.user.js
in the open tab.
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.
1I 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 – 2016-08-26T13:09:41.030
@tallpaul it looks like now you need to package it as an extension, with manifest.json
file, to add it. – freginold – 2017-04-07T22:59:23.747
1The OP asked for Shortcut
, the stuff listed above is no shortcut. A shortcut is e. g. CTRL SHIFT G
to open Google Mail etc. – Kai Noack – 2018-02-16T13:32:09.743
@KaiNoack A shortcut is a faster way to achieve something and can very well involve several commands. In any case, the with extensions part of my answer requires only a single key combo to open the specified website. – Dennis – 2018-02-16T14:23:30.573
Seems like a highly outdated version sadly. After writing manifest files and everything, which is now a requirement, it still does not work. – codepleb – 2018-04-12T06:37:06.767
@Dennis Thank you for your work. Based on this answer, I created an extension that works again: https://superuser.com/a/1313997/276470
– codepleb – 2018-04-14T09:33:32.243The userscript can't work on some pages (http://github.com for example), since they don't accept script-injection...
– yckart – 2014-04-02T15:49:36.383Update fixed the problem with script-injection, edited the answer. Should work now... – yckart – 2014-04-02T16:03:07.407
20
Another approach is to
11Type the full name of the bookmark
is not a shortcut, sorry. – Kai Noack – 2018-02-16T13:34:04.647
3@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 – 2018-02-21T22:35:09.980
2Typing 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 – 2018-12-03T13:26:03.557
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 – 2020-01-31T04:15:46.810
14
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.
Open chrome://settings/searchEngines
to load the list of search engines.
In "Other search engines" add a new one with the following parameters:
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
.
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.
love this idea, https://gist.github.com/Artistan/45fa744b899f4f054173693298d41930
– Artistan – 2018-01-25T17:17:22.9804One can also rightclick the url bar and select "edit search engines" instead of having to remember the chrome: url – Florian Straub – 2018-02-07T14:36:56.353
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 – 2020-01-31T03:50:33.547
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 – 2020-01-31T04:09:44.917
@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 – 2020-01-31T09:32:52.373
I'm on 79 too. If it's not the same for everyone, I honestly think you're better off reverting the edit and leaving the pristine, simple answer. Explaining how %s works takes away from the lightbulb moment of "Hey, I could add a keyword search without a keyword!" If it doesn't work for them, then my comment would be there for a workaround. – Noumenon – 2020-01-31T12:52:50.993
7
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.
Shortcuts in Firefox
To recall how the bookmark properties look like in Firefox and how easily you can assign a keyword (shortcut) to it:
In Firefox, now entering "mp" in the URL bar opened the specific website. As you can read in the net, Chrome 52- does not have this simple feature implemented and abuses the "Search engine" section for this.
3
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.
For firefox without using keywords? – SmartManoj – 2018-10-27T13:28:12.773
2
Try this chrome extention Shortkeys (Custom Keyboard Shortcuts) provided by Mike Crittenden.
Works beautifully for my bookmarklet. Though I had to use Run Javascript
instead of Open Bookmark/Bookmarklet
. And it supports Mac Cmd
modifiers. – Sridhar Sarnobat – 2019-09-20T23:27:43.757
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.
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
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:
manifest.json
and background.js
. Put them into a new folder and add the content below to those files.chrome://extensions
in the address bar and activate developer mode on the top right (switch).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);
}
}
}
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 – 2020-01-31T04:03:10.193
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.
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 – 2018-05-28T14:28:21.917
0
An easily accessible fuzzy search over your Chrome bookmarks:
In order to search the bookmarks, activate Vimium chrome extension's "Vomnibar" with b
key from any webpage.
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
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).
Most flexible option.
In order to add multiple shortcuts to the same domain you need to create them manually. COPY-PASTE doesn't work.
Open your file explorer and go to %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps
Right click > New > Shortcut
The location of the item is: "C:\Program Files (x86)\Google\Chrome\Application\chrome_proxy.exe" --profile-directory=Default --app="
TARGET_URL"
.
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.
Right click on icon > pin to start
. You can have multiple shortcuts to the same app, as long as the URL is somehow different.To then modify it to open a specific URL rather than the landing page.
"⋮" > More tools > Create shortcut…
%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps
--app-id=XXXXXX
for --app="
TARGET_URL"
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.
1what does this do? – Sathyajith Bhat – 2014-05-25T17:38:32.687
1I 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. – Kai Noack – 2016-08-05T07:42:50.013
6
An extension called AutoControl Shortcut Manager lets you assign shortcuts to specific bookmarks, bookmark folders and URLs.
– GetFree – 2019-06-08T02:26:23.8033
Firefox users interested in this feature can set keywords for bookmarks, which can also be used to create custom searches.
– None – 2014-05-25T17:14:25.563