-
-
Save syoichi/962521 to your computer and use it in GitHub Desktop.
Firefox 4.0.1上のGreasemonkey 0.9.3、Scriptish 0.1、Chromium 11.0.696.57で動作を確認した。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AutoRemove accesskey Attribute | |
// @namespace http://d.hatena.ne.jp/esperia/ | |
// @description remove "accesskey" attribute for Vimperator | |
// @include http://*.wikipedia.org/* | |
// ==/UserScript== | |
// | |
/* | |
Array.prototype.forEach.call(document.querySelectorAll('[accesskey]'), function (v) { | |
v.removeAttribute("accesskey"); | |
}); | |
*/ | |
var a = document.querySelectorAll('[accesskey]'), | |
l = a.length; | |
while (l) { | |
a[--l].removeAttribute("accesskey"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment