// ==UserScript== // @name Kill hotkeys on Mediawiki // @namespace miyagawa // @description Unbinds Mediawiki hotkeys that conflicts with Emacs key-binding on Safari // @creator Tatsuhiko Miyagawa // @include https://example.com/wiki/* // ==/UserScript== window.addEventListener("load", function(e) { for (var id in window.ta) { var n = document.getElementById(id); if (n) { var a = null; if (ta[id][0].length > 0) { if (n.nodeName.toLowerCase() == "a") { a = n; } else { a = n.childNodes[0]; } if (a) { a.accessKey = undefined; } } } } }, false);