Disable YouTube Hotkeys with Modern Settings Page

Disable various YouTube hotkeys, including frame skip, with a modern settings page

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
RetroSteve0
日安装量
0
总安装量
45
评分
1 1 0
版本
1.4
创建于
2024-09-16
更新于
2024-09-16
大小
10.7 KB
许可证
MIT
适用于

Disable YouTube Hotkeys with Modern Settings Page

Description

This user script allows you to easily disable various YouTube hotkeys using a modern settings page with a sleek UI. You can disable hotkeys like numeric keys (0-9), spacebar, arrow keys, fullscreen (F), mute (M), speed control (Shift + > / <), and frame skipping (, and .) based on your preferences.

The settings are accessible via a user-friendly modal with modern styling, including custom checkboxes and smooth animations. No need to manually interact with YouTube hotkeys anymore—this script lets you choose which keys to disable for a more customized experience.

Features

  • Disable numeric keys (0-9) used for video seeking.
  • Disable spacebar used for play/pause.
  • Disable arrow keys (left/right for rewind/fast-forward, up/down for volume control).
  • Disable fullscreen (F key).
  • Disable mute (M key).
  • Disable speed control keys (Shift + > to increase speed and Shift + < to decrease speed).
  • Disable frame skipping (, for frame backward and . for frame forward).
  • Modern settings page with responsive design, custom checkboxes, and a notification banner.

How It Works

  1. Once the script is installed, click the Tampermonkey icon in your browser’s toolbar.
  2. Select "YouTube Hotkey Settings" from the dropdown menu.
  3. A modern settings modal will appear where you can toggle which hotkeys to disable.
  4. After making your selections, click Save Settings. A notification will confirm that your preferences have been saved.
  5. You can always return to the settings page to modify or reset your preferences.

Hotkeys You Can Disable

  • Numeric Keys (0-9): Disable seeking to specific points in the video using the number keys.
  • Spacebar: Disable play/pause functionality with the spacebar.
  • Arrow Keys: Disable left/right arrows for rewind/fast-forward and up/down arrows for volume control.
  • Fullscreen (F): Disable toggling fullscreen with the F key.
  • Mute (M): Disable muting/unmuting with the M key.
  • Speed Control (Shift + > / <): Disable adjusting playback speed using the Shift + > and Shift + < keys.
  • Frame Skip (, and .): Disable skipping frames forward and backward using the , and . keys.

Installation

  1. Install Tampermonkey or Violentmonkey for your browser.
  2. Click Install on this page to add the script.
  3. Configure your hotkeys by accessing the YouTube Hotkey Settings in Tampermonkey's menu.

Changelog

v1.4

  • Refactored the script to use document.createElement for safer DOM manipulation.
  • Added modern UI enhancements with sleek buttons, checkboxes, and animations.
  • Fixed issues related to TrustedHTML in modern browsers.

Screenshots

Coming soon...

License

MIT License