Kill Keyboard Shortcut on Github Notifications

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

  1. // ==UserScript==
  2. // @name Kill Keyboard Shortcut on Github Notifications
  3. // @namespace Violentmonkey Scripts
  4. // @icon https://github.githubassets.com/favicons/favicon.svg
  5. // @match https://github.com/notifications*
  6. // @grant none
  7. // @noframes
  8. // @version 0.1.1
  9. // @author y-saeki
  10. // @supportURL https://github.com/y-saeki/UserScript
  11. // @description Kill all keyboard shortcuts on Github Notification screen because of that causes critical effect by easy operational error.
  12. // ==/UserScript==
  13.  
  14. const target = document.querySelectorAll('[data-hotkey]');
  15.  
  16. for (i = 0; i < Object.keys(target).length; i++) {
  17. target[i].removeAttribute('data-hotkey');
  18. }

QingJ © 2025

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