Unpress Shortcut Buttons

read the home page lol

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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