Skip to content

Add YouTube hotkeys disabling script details - #101

Open
VKrishna04 wants to merge 2 commits into
awesome-scripts:masterfrom
VKrishna04:master
Open

Add YouTube hotkeys disabling script details#101
VKrishna04 wants to merge 2 commits into
awesome-scripts:masterfrom
VKrishna04:master

Conversation

@VKrishna04

Copy link
Copy Markdown

Added details for disabling YouTube hotkeys with a modern settings page.

Added details for disabling YouTube hotkeys with a modern settings page.
Add YouTube hotkeys disabling script details

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new userscript entry for "Disable YouTube Hotkeys with Modern Settings Page" to the README's YouTube section.

Changes:

  • Added a new collapsible details section for the "Disable YouTube Hotkeys" userscript with description, installation link, project view link, and bug report link

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread README.md
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/awesome-scripts/awesome-userscripts@f11c95f/assets/images/icons/sites/youtube/white/icon32.png"><img height=17 src="https://cdn.jsdelivr.net/gh/awesome-scripts/awesome-userscripts@f11c95f/assets/images/icons/sites/youtube/icon32.png"></picture> YouTube

<details> <!-- Disable YouTube Hotkeys with Modern Settings Page -->
<summary><a href="https://greasyfork.org/en/scripts/563265-disable-youtube-hotkeys-with-modern-settings-page">Disable YouTube Hotkeys</a> - with Modern Settings Page</summary><br>

Copilot AI Jan 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The summary text appears to redundantly repeat part of the script title. The link text "Disable YouTube Hotkeys" is followed by " - with Modern Settings Page", but this phrase is already part of the script's full name. Consider either using the full title in the link text without the repetitive suffix, or replacing the suffix with a more descriptive summary of what the script does (following the pattern of other entries like "Simple Sponsor Skipper" which has a functional description rather than repeating the title).

Suggested change
<summary><a href="https://greasyfork.org/en/scripts/563265-disable-youtube-hotkeys-with-modern-settings-page">Disable YouTube Hotkeys</a> - with Modern Settings Page</summary><br>
<summary><a href="https://greasyfork.org/en/scripts/563265-disable-youtube-hotkeys-with-modern-settings-page">Disable YouTube Hotkeys</a> - Disable various YouTube hotkeys with fine-grained control.</summary><br>

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure then move the with Modern Settings page to the title and then add the Disable various YouTube hotkeys with fine-grained control. beside

@VKrishna04

VKrishna04 commented Mar 23, 2026

Copy link
Copy Markdown
Author

Sup @VKrishna04 can you tell me what does the userscript do? Thanks! (i.e. what are the hot keys disabled and then I can test it because left/right arrows still seek to frames)

Sorry about the delay —

Hey! Thanks for checking.

This is not just “disable numbers” — it’s a fine‑grained YouTube hotkeys blocker. The script intercepts keyboard events on youtube.com (keydown/keypress/keyup, capture phase) and, depending on the toggles you enable, it blocks specific shortcuts by calling preventDefault() + stopPropagation() (but it does NOT block anything while you’re typing in an input/textarea/contenteditable — so search/comments/chat are excluded).

Hotkeys it can block (configurable)

Timeline / seeking

  • 0–9 → jump to % of timeline
  • ← / → → rewind/forward (5s)
  • j / l → seek −10s / +10s
  • , / . → frame-by-frame navigation
  • Ctrl + ← / → → chapter navigation (prev/next chapter)

Playback / UI

  • Space → play/pause (optional)
  • k → play/pause (optional)
  • f → fullscreen (optional)
  • t → theatre mode (optional)
  • i → miniplayer (optional)
  • m → mute/unmute (default ON)

Other YouTube shortcut panels / controls

  • Shift + / (aka ?) → “Keyboard shortcuts” help overlay (optional)
  • ↑ / ↓ → volume up/down (optional)
  • Shift + < / Shift + > → playback speed control (optional)

(There are also extra toggles for some player “advanced” behaviors like text/window opacity, font size +/- and pan/zoom keys — they’re off by default.)

Defaults (important for your test)

By default it blocks:

  • 0–9
  • Ctrl+Left, Ctrl+Right
  • m

…and it does NOT block left/right arrows unless you enable the “Disable Progress Forward / Rewind (← →)” toggle.

About your note (left/right still seeking)

That’s expected with default settings: left/right is not blocked by default in the current script.
If you enable the horizontal arrows toggle, then ←/→ should stop seeking (and if it still seeks after enabling it, tell me your browser + userscript manager and whether the player is focused).
And try once again after reloading.

VKrishna04,
Life Experimentalist

@bvolpato bvolpato left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friendly ping on this PR — it's been ~3 weeks since the last activity and the author (@VKrishna04) responded to Copilot's review comments but hasn't pushed updates yet.

The requested changes from Copilot are reasonable:

  1. Fix the 📢 emoji usage (should be for "Discuss" links, not "View")
  2. Remove redundant title repetition in the summary

Since the author seems receptive to feedback, this might just need a gentle nudge to push the fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants