Skip to content

Instantly share code, notes, and snippets.

@syoichi
Forked from esperia/removeAccesskey.user.js
Created May 9, 2011 13:32
Show Gist options
  • Save syoichi/962521 to your computer and use it in GitHub Desktop.
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で動作を確認した。
// ==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