Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cho45/476373 to your computer and use it in GitHub Desktop.
Save cho45/476373 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Hatena::Diary: Fix edit-in-place toolbar tabindex
// @namespace http://lowreal.net/
// @include http://d.hatena.ne.jp/*/
// ==/UserScript==
location.href = "javascript:"+encodeURIComponent(uneval(function () {
Hatena.Diary.EditInPlace.Form.addEventListener('create', function (day) {
Array.forEach(day.element.querySelectorAll('.edit-in-place-toolbar a'), function (e) {
e.tabIndex = 9999;
});
});
}))+"()";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment