您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
This script focuses and clicks the "Message Input" button on the sidebar when the right arrow key is pressed.
当前为
// ==UserScript== // @name Click Message Input on Right Arrow Key // @namespace http://greasyfork.icu/en/users/1200587-trilla-g // @match *://*.kick.com/* // @grant none // @version 2.1 // @license MIT // @author Trilla_G // @description This script focuses and clicks the "Message Input" button on the sidebar when the right arrow key is pressed. // ==/UserScript== (function() { 'use strict'; document.addEventListener('keydown', function(event) { // Check if the right arrow key is pressed if (event.key === 'ArrowRight') { clickMessageInput(); } }); function clickMessageInput() { // Target the message input element let messageInputButton = document.querySelector('.editor-input'); if (messageInputButton) { // Ensure the element is focused before clicking messageInputButton.focus(); // Focus the input field messageInputButton.click(); // Click the input field } } })();