User:Cdip150/customEdittools.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
// 更換「短簽名」按鈕
mwCustomEditButtons.remove(mwCustomEditButtons['btnSigOnly']);
mwCustomEditButtons.insert( createEditButton('btnMyShortSign',{
src : 'd/d8/Button_sig_zh.png',
tagOpen : '—{\{subst:User:Cdip150\/sign|short}\} ~~\~~\~',
sampleText : '',
tagClose : '',
speedTip : '短簽名',
width : 12
}) , mwCustomEditButtons['btnSignature']);
// 載入「澳門條目專用編輯工具」
importScript('User:Cdip150/工具/介面/MacauEditTool.js');
// 載入「個人化的下拉選單」
importScript('User:Cdip150/工具/介面/customEditMenu.js');
$( function(){
// 延長編輯摘要的字數限制
var setLongSummary=function(){
document.editform.wpSummary.maxLength=10000;
}
setLongSummary();
setTimeout(setLongSummary,1000);
//改變編輯框字型
with(document.editform.wpTextbox1.style){
fontSize="10pt";
fontFamily="細明體,MingLiU";
}
});
importScript('User:Cdip150/工具/介面/PreviewFootnotes.js');