Use ShortcutKey2URL to make your browser operation more comfortable

ShortcutKey2URL is a very useful extension for Chrome/Firefox that I have been using for a long time, so I would like to introduce it as an article.

What is ShortcutKey2URL

The following are some of the actions that can be set.

  • Jump to URL. For already opened URL, go to that tab. Open it as a new tab if it is not already open.
  • Open URL in new tab.
  • Open URL in current tab.
  • Execute the JavaScript on the current tab.
  • Open URL as a new tab and then execute the JavaScript.

About what you find useful

Shortcut keys are not limited to a single character

For example, Google provides multiple services, and you can set the first letter as G and the second letter as the first letter of each service.

When a key is entered consecutively, the system is designed to execute the action once the shortcut target is narrowed down to one.

You can jump to an already open tab

  • If the URL is already open, go to that tab.
    URLs are compared by forward matching.
  • If the URL is not already open, open it as a new tab.

For frequently opened sites (e.g. Twitter), it is very convenient to use jump to url to move to an already open tab without opening a new tab each time.

Bookmarklets can be registered

javascript: can be used with or without it.

JavaScript can be executed after the URL is opened

For example, right after opening a website, you may want to

  • I want to change the initial focus position.
  • I want to put a value in the input form as the initial value.

This will allow you to do such things as.

Usage

Install

Setting the Startup Key

You can change it by going to Menu > More Tools > Extensions > Keyboard shortcuts.

How to operate

Entering a key in the list will execute the corresponding shortcut.

Shortcut settings

The Options screen can be accessed from the Options link on the pop-up screen.

You can also navigate to Options in the Extensions menu.

Settings

If you check the Interactive filter of shortcut keys on the popupin Option, you can interactively filter the shortcuts to be displayed in the popup.

Shortcut Keys

It can also be added from the context menu.

Set the Key to be assigned as a shortcut key. It can be multiple characters.
After pressing the Startup key, you can execute the shortcut by pressing the key you set here.

If you check the Hide in shortcut key list displayed in popup, you can hide the shortcut key in the list of shortcuts displayed in popup.
It will only be hidden, but it is still a valid shortcut key.

Specify the action to be taken as a shortcut key in Action.
The following items can be specified.

  • Jump to URL
    If the URL is already open, go to that tab.
    URLs are compared by forward matching.
  • Open url in new tab
  • Open url in current tab
  • Execute script
    Execute the specified JavaScript in the current tab.

By specifying Script (optional), you can execute any JavaScript after opening the URL.

Import / Export

Support

If you have any questions or requests, please ask on GitHub.