Fixed youtube script
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user