Skip to content

Add Disable YouTube Hotkeys userscript - #101

Merged
adamlui merged 4 commits into
awesome-scripts:masterfrom
VKrishna04:master
Aug 25, 2026
Merged

Add Disable YouTube Hotkeys userscript#101
adamlui merged 4 commits into
awesome-scripts:masterfrom
VKrishna04:master

Conversation

@VKrishna04

@VKrishna04 VKrishna04 commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Disable YouTube Hotkeys with Modern Settings Page to the YouTube userscript list.

Changes

  • Use the full script title and a functional description
  • Link Install directly to the current Greasy Fork userscript
  • Apply established Readme and Report bug link conventions
  • Clarify that blocking pauses while typing in text fields

Testing

  • Downloaded userscript v5.0.1 and ran node --check
  • npm ci --ignore-scripts
  • npm run lint
  • npm audit --audit-level=high: 0 vulnerabilities
  • Lychee: 705 links checked, 609 OK, 0 errors
  • GitHub Markdown rendering and balanced <details> tags

Did this cause any problems?

README-only change. Revert the added entry to restore the previous list.

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 Outdated
Comment thread README.md Outdated
@VKrishna04

VKrishna04 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor 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.

VKrishna04 and others added 2 commits August 23, 2026 20:04
Added details for disabling YouTube hotkeys with a modern settings page.
@bvolpato bvolpato changed the title Add YouTube hotkeys disabling script details Add Disable YouTube Hotkeys userscript Aug 24, 2026
@bvolpato
bvolpato force-pushed the master branch 2 times, most recently from 404d53c to 7943e60 Compare August 24, 2026 00:14
@bvolpato bvolpato closed this Aug 24, 2026
@bvolpato bvolpato reopened this Aug 24, 2026
@devactivity-app

Copy link
Copy Markdown

Pull Request Summary by devActivity

Metrics

Cycle Time: 212d 12h 19m Coding Time: 2d 1h 26m Pickup Time: 2m Review Time: 210d 10h 50m Comments: 5

Achievements

@bvolpato
bvolpato marked this pull request as draft August 24, 2026 00:16
@bvolpato
bvolpato marked this pull request as ready for review August 24, 2026 00:16
@bvolpato
bvolpato dismissed a stale review via 2f4796f August 24, 2026 02:50
@adamlui
adamlui merged commit fd1f7c7 into awesome-scripts:master Aug 25, 2026
2 checks passed
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