Keybind HIT Return for Turkernator

Return any HIT with a press of a key.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Keybind HIT Return for Turkernator
// @namespace    https://github.com/Kadauchi
// @version      1.0.1
// @description  Return any HIT with a press of a key.
// @author       Kadauchi
// @include      *
// ==/UserScript==

const eventCode = 'NumpadSubtract'; // Visit https://keycode.info/ and use the event.code to change this value.
const useCtrlKey = true;
const useShiftKey = true;
const useAltKey = false;
const useMetaKey = false;

document.addEventListener('keydown', (event) => {
  if (event.code === eventCode) {
    if (useCtrlKey && !event.ctrlKey) return;
    if (useShiftKey && !event.shiftKey) return;
    if (useAltKey && !event.altKey) return;
    if (useMetaKey && !event.metaKey) return;
    TKNR.hitReturn();
  }
});