User:Bencmq/customEdittools.js
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
// 載入「個人化的下拉選單」
importScript('User:Bencmq/MycustomEdittools.js');
// 延長編輯摘要的字數限制
function setLongSummary(){
if(!document.getElementById("wpSummary")){
setTimeout(setLongSummary,1000);
}else if(!document.getElementById("wpSummary").maxLength){
setTimeout(setLongSummary,1000);
}else if(document.getElementById("wpSummary").maxLength<1000){
document.getElementById("wpSummary").maxLength=10000;
}
}
if(wgAction=="edit" || wgAction=="submit") setLongSummary();