Created
October 2, 2013 19:08
-
-
Save shotasenga/6798927 to your computer and use it in GitHub Desktop.
WordPressの投稿画面のショートカットを全部無効にするuser script http://senta.me/blog/wordpress/wp-post-is-bad/
This file contains hidden or 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 WP Remove Accesskeys | |
// @namespace senta.me | |
// @description WordPressのアクセスキーを削除する。 | |
// @include http://*/wp-admin/post.php* | |
// @include http://*/wp-admin/post-new.php* | |
// ==/UserScript== | |
(function(){ | |
window.addEventListener("load",function(){ | |
var els = document.getElementsByTagName("input"); | |
for(var i=0,m=els.length; i<m; i++){ | |
if (els[i].hasAttribute("accesskey")) | |
els[i].removeAttribute("accesskey"); | |
} | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment