User:Qinyongr/common.js:修订间差异
外观
| 此編輯使用Wikiplus。 |
小 | 此編輯使用Wikiplus。 |
||
| 第23行: | 第23行: | ||
//Others | //Others | ||
//importScript("User:Qinyongr/toc.js"); | //importScript("User:Qinyongr/toc.js"); | ||
//Test1 | |||
function deletemods(){ | |||
if (mw.config.get('wgAction') == "delete") { | |||
var wpReason = document.getElementById("wpReason"); | |||
if (!wpReason) return; | |||
var regexp = /(内容为|page was empty|content before blanking was)/i; | |||
if (regexp.test(wpReason.value)){ | |||
wpReason.value = ""; | |||
} | |||
} | |||
} | |||
$(deletemods); | |||
2016年5月11日 (三) 11:23的版本
//UserHighlight
importScript("MediaWiki:Gadget-AGFHighlight.js");
importScript("MediaWiki:Gadget-BHighlight.js");
importScript("MediaWiki:Gadget-AdminHighlight.js");
//OnlineAdmin
importScript("MediaWiki:Gadget-OnlineAdmin.js");
//Wikiplus
mw.loader.load('https://wikiplus-app.smartgslb.com/Main.js');
localStorage.setItem('Wikiplus_Settings', JSON.stringify({
"defaultSummary":"function(w){return (w.sectionNumber > 0 && '/*' + w.sectionName + '*/ ' || (w.sectionNumber == 0 && '/* top */ ' || '') ) + ' | 此編輯使用[[Special:参数设置#mw-prefsection-gadgets|Wikiplus]]。' }"
}));
//Tabs
importScript("MediaWiki:Gadget-Tabs.js");
//MP-2015-01
importScript("MediaWiki:Gadget-MP-2015-01.css");
//BPanel
importScript("MediaWiki:Gadget-BPanel.js");
//Wordcount
importScript("MediaWiki:Gadget-Wordcount.js");
//WikEd
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript');
//以上為我開啟的 Gadget
//Others
//importScript("User:Qinyongr/toc.js");
//Test1
function deletemods(){
if (mw.config.get('wgAction') == "delete") {
var wpReason = document.getElementById("wpReason");
if (!wpReason) return;
var regexp = /(内容为|page was empty|content before blanking was)/i;
if (regexp.test(wpReason.value)){
wpReason.value = "";
}
}
}
$(deletemods);