Kill Keyboard Shortcut on Github Notifications

Kill all keyboard shortcuts on Github Notification screen because of that causes critical effect by easy operational error.

目前為 2022-10-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Kill Keyboard Shortcut on Github Notifications
// @namespace   Violentmonkey Scripts
// @icon        https://github.githubassets.com/favicons/favicon.svg
// @match       https://github.com/notifications*
// @grant       none
// @version     0.1.1
// @author      y-saeki
// @description Kill all keyboard shortcuts on Github Notification screen because of that causes critical effect by easy operational error.
// @supportURL  https://github.com/y-saeki/UserScript
// ==/UserScript==

const target = document.querySelectorAll('[data-hotkey]');

for (i = 0; i < Object.keys(target).length; i++) {
  target[i].removeAttribute('data-hotkey');
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址