Disable number key shortcuts for YouTube Video Players, works in both youtube.com and embedded iframes
Denumber YouTube Extension
Open-source extension that disables number key shortcuts for YouTube Video Players, works in both youtube.com and embedded iframes.
Read more
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "description": "Disable number key shortcuts for YouTube Video Players, works in both youtube.com and embedded iframes", "version": "1.0.0", "name": "Denumber YouTube", "content_scripts": [ { "matches": [ "*://*/*" ], "js": [ "content.js" ], "run_at": "document_start", "all_frames": true } ], "permissions": [ "webNavigation", "scripting" ], "host_permissions" : [ "https://www.youtube.com/" ], "optional_host_permissions": [ "*://*/*" ], "background": { "service_worker": "service_worker.js" }, "icons": { "16": "icons/icon16.png", "48": "icons/icon32.png", "128": "icons/icon128.png" }, "action": { "default_icon": { "16": "icons/icon16.png", "48": "icons/icon32.png", "128": "icons/icon128.png" } }}
Read more