Is it possible to assign custom (own) hotkey on any Google chrome extension? Looking for in-box or 3-rd party solution.
2 Answers
Type into your Chrome address bar: chrome://extensions/shortcuts
.
Or use the link in the top left corner of chrome://extensions
page, in the navigation sidebar.
Note: "Activate the extension" acts the same as clicking on extension's toolbar button.
-
chrome://extensions/configureCommands
has been changed tochrome://extensions/shortcuts
, and the link on thechrome://extensions
page has been moved to the sidenav, which can be accessed from the top left corner.configureCommands
still redirects toshortcuts
, but might not in the future.– JoakimMay 15, 2020 at 8:36 -
@Joakim Thank you for your suggestions, I've edited them in. Please feel free to use edit functionality on Stack Exchange sites to suggest updates to answers!– a13phMay 15, 2020 at 9:47
Yes, you can. You need the following:
- The extension ID of your extension.
- A program to script the hotkey with (AutoHotkey for Windows, Keyboard Maestro for Mac or Autokey for Linux).
- The script needs to open a link to your extension such as chrome-extension://iinhokidgfoomcighckbjmlcndbjmomp/options.html
You'll find the ID of your desired chrome extension in the Webstore - e.g. https://chrome.google.com/webstore/detail/mgjjeipcdnnjhgodgjpfkffcejoljijf?hl=en
An AutoHotkey script for a hotkey like this would be:
F5:: ; Hotkey is F5 here
SendInput ^t ; open new tab
SendInput chrome-extension://iinhokidgfoomcighckbjmlcndbjmomp/options.html ; write the extension's address
SendInput {enter} ; press enter to confirm.
Return
I have toyed with the Shortcuts Manager extension to create a JavaScript command to open the extension, but my knowledge of JS is very limited and I was unsuccessful. I'll post an example code in a comment to this answer.
-
Here's an example of what I have tried: chrome.tabs.create({"url": "chrome-extension://iinhokidgfoomcighckbjmlcndbjmomp/options.html"}); Nov 4, 2011 at 14:06
-