Unpress Shortcut Buttons

read the home page lol

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
kliop
今日安裝
0
安裝總數
14
評價
0 0 0
版本
0
建立日期
2021-08-19
更新日期
2021-08-19
尺寸
2.1 KB
授權條款
Unlicense
腳本執行於

Disallowing input highjacks, and blocking you from keying in some inputs that send to the site serving as shortcuts.
==> Happy Internet users lol
(Neither do this intended to break key inputs and any other revelant input components, nor removing or claiming copyrights from the relevant parties. DO NOT remove this block of sentences when you are redistributing it.)

This specific piece is a combination of many other scripts i have been collecting to 'fix' some of the overnumbered, 'leftover' shortcut keys presented in many other websites, such as the obnoxious YT (honourable mention: https://inzk.dev/tweaks-for-youtube/). Some of them serve as to stop the 'keydown-then-send-to' input (definately not any kinds of coding expert =P), while the others try to stop the propagation of the inputs completely... So, if any one is so keen to come up with some sort of workaround neater, better than this messy marsh, just please feel free to leave a comment, and drops in a little notification, thank you so much guys, esp. the original authors!!

Ref. sites that might become handy in the distanced future...
http://www.javascriptkit.com/jsref/eventkeyboardmouse.shtml
https://keycode.info/
https://javascript.info/keyboard-events
, as they help me to figure out the keyborad inputs... lol