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