Fixed youtube script

This commit is contained in:
stabosa87
2026-05-19 19:28:19 -05:00
parent 71221d8f06
commit bcab3a923c
+7 -6
View File
@@ -1,8 +1,9 @@
// ==UserScript==
// @name No youtube numpad
// @match https://www.youtube.com/watch*
// @match https://www.youtube.com/*
// @author Stabosa87
// @grant none
// @run-at document-start
// ==/UserScript==
(function () {
@@ -19,10 +20,11 @@
if (!el) return false;
const tag = el.tagName;
if (tag === 'INPUT' || tag === 'TEXTAREA') return true;
if (el.isContentEditable) return true;
return false;
return (
tag === 'INPUT' ||
tag === 'TEXTAREA' ||
el.isContentEditable
);
}
function handler(e) {
@@ -30,7 +32,6 @@
if (typing(document.activeElement)) return;
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
}