DokuWiki

It's better when it's simple

ユーザ用ツール

サイト用ツール


ja:tips:autominor

デフォルトで「小変更」にチェックしておく

デフォルトで「小変更」にチェックしておくには、conf/userscript.js ファイル(存在しない場合には作成する)に以下を追加する。

conf/userscript.js
jQuery(function() {
    var prv = jQuery('div.preview');
    if(prv[0]) return; //プレビュー時には、状態を変更しない
    jQuery('#minoredit').prop('checked', true);
});

この拡張は enforcesummary プラグインの機能の一部に組み込まれました。

旧方式 (DokuWiki “Angua”以前のバージョンの場合にはこちら):

conf/userscript.js
addInitEvent(function(){
    var cbox = $('minoredit');
    if(!cbox) return;
    var prv = getElementsByClass('preview',document,'div');
    if(prv[0]) return; //プレビュー時には、状態を変更しない
    cbox.checked = true;
});
ja/tips/autominor.txt · 最終更新: 2013-09-13 14:54 by 122.212.225.106

特に明示されていない限り、本Wikiの内容は次のライセンスに従います: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki