Disable YouTube Numbers

Disable top-row 1-9, numpad 1-9, 0, Home, and End keys on YouTube video pages

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Alyssa B. Morton
今日安裝
1
安裝總數
5
評價
0 0 0
版本
1.2
建立日期
2025-11-07
更新日期
2025-11-07
尺寸
1.3 KB
授權條款
MIT
腳本執行於

Description:


The Disable YouTube Numbers userscript prevents accidental jumps in YouTube videos by disabling number keys (top row 1-9, numpad 1-9), the 0 key, and Home/End keys. It runs only on video pages.

Features:

  • Disables top-row number keys (1–9)
  • Disables numpad number keys (1–9)
  • Disables the 0 key
  • Disables Home and End keys
  • Only active on YouTube video pages (/watch URLs)
  • Lightweight and efficient

Instructions:


Step 1: Install a Userscript Manager

   To use this script, install a userscript manager such as Violentmonkey or Tampermonkey in your browser.


Step 2: Add the Script

   Copy the entire userscript code and create a new script in your userscript manager.


Step 3: Save and Enable the Script

   After adding the script, save it and ensure it is enabled.


Step 4: Use YouTube Normally

   Navigate to any YouTube video page. Number keys, 0, Home, and End keys will now be disabled on video pages.

Notes:

  • The script only affects YouTube video pages (/watch URLs)
  • You can modify the script to allow the 0 key while still blocking other keys
  • If the script doesn’t work immediately, refresh the page or restart the browser