MediaWiki:Gadget-VisualEditorFixed.js:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
第5行: | 第5行: | ||
mw.notify('您是新用户,必须前往源代码页观看确认您刚才进行的改动,并输入正确的验证码后才能提交编辑!') | mw.notify('您是新用户,必须前往源代码页观看确认您刚才进行的改动,并输入正确的验证码后才能提交编辑!') | ||
document.getElementById("ca-edit").click(); | document.getElementById("ca-edit").click(); | ||
} | }})} | ||
}); | else{ | ||
return; | |||
} | } |
2021年7月17日 (六) 16:33的版本
if (mw.config.get('wgUserGroups').indexOf('autoconfirmed') != -1 ) {
mw.hook('ve.activationComplete').add(function () {
document.querySelector(".oo-ui-toolbar-actions > .oo-ui-buttonElement").innerHTML = '<input type="button" value="预览一次后提交" class="oo-ui-buttonElement-button mw-ui-destructive" >';
document.querySelector(".oo-ui-toolbar-actions > .oo-ui-buttonElement").onclick = function(){
mw.notify('您是新用户,必须前往源代码页观看确认您刚才进行的改动,并输入正确的验证码后才能提交编辑!')
document.getElementById("ca-edit").click();
}})}
else{
return;
}