
Chrome との動作速度の差が大きくなりすぎたため、しばらく Firefox を捨てようと考えています。しかし、私にとって重要な機能、つまり、キーボード ショートカットを使用して新しいタブを開き、特定のアドレスに直接移動できるようにする機能を再現する方法が見つからないようです。
「有名な」拡張機能 ShortKeys は、最新バージョンの Chrome (58) では動作しないようです。
Chrome に関するこの件についての質問がありますが、かなり古く、回答は無効または古くなっています。2017 年の解決策が必要です :)。
答え1
これは本当に簡単ですオートホットキーChrome が開いているときに、任意のホットキーを使用して実行されるスクリプトを作成するだけです。必要なのは、Ctrl + T と移動先のアドレスを送信して入力するだけです。
答え2
AHK のコメントに応えて、まさにあなたが尋ねたことを実行するスクリプトを以下に示します。
これを「回避策」とみなしても、まさに希望どおりに動作します。ホットキーを使用して、Chrome で定義済みのページを開きます。どの exe がそれを処理するかなんて、誰が気にするでしょうか?
; Only allow 1 instance of the script to run
#SingleInstance, Force
return
; Hotkeys past here only work when chrome.exe is the active window.
#IfWinActive, ahk_exe chrome.exe
; Press F1 while in chrome...
F1::
; To run chrome at the specified address.
Run, % "chrome.exe https://superuser.com/questions/1212547/how-to-add-custom-keyboard-shortcuts-to-chrome/"
return
; Press F2 while in chrome...
F2::
; Open a new tab.
Send, ^t
Sleep, 100
; And then send this reddit's AHK help forum, plus the enter key, to the address bar.
SendInput, www.reddit.com/r/autohotkey{Enter}
; Hotkeys past this will work globally
#IfWinActive