「編集内容の要約」欄で Enter キーを押しても、ページが保存されないようにする Greasemonkey スクリプト
以下のような悲劇を防ぐための Greasemonkey スクリプトです。
http://developer.mozilla.org/ja/docs/index.php?title=Core_JavaScript_1.5_Reference:Global_Objects:Array&diff=prev&oldid=12883
2008-03-10:履歴ページで動作しないように、@exclude を追加
2008-02-12:節単位編集時にも有効になるように、@include を修正
// ==UserScript== // @name MDC_NoSubmitByEnter // @namespace http://developer.mozilla.org/ja/docs/User:Potappo // @description not submit when you press a Enter key on a summary box in edit pages // @include http://developer.mozilla.org/*/docs/index.php*&action=* // @exclude http://developer.mozilla.org/*/docs/index.php*&action=history // ==/UserScript== (function(){ function enterNoSubmit(evt) { if (evt.which == 13) evt.preventDefault(); } var summaryBox = document.getElementById("wpSummary"); summaryBox.addEventListener("keydown", enterNoSubmit, true); })();