Add accesskey shortcut to Google search

Adds accesskey+f as shortcut for accessing Google search bar

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name        Add accesskey shortcut to Google search
// @namespace   tpenguinltg
// @description Adds accesskey+f as shortcut for accessing Google search bar
// @include     https://www.google.*
// @version     1
// @grant       none
// ==/UserScript==

var searchBar = document.querySelector("input[name=q]");
if (searchBar) {
  searchBar.accessKey="f";
}