User:Xiplus/common.js
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
if(document.cookie.indexOf("TWtest=1") !== -1){
mw.loader.load('//zh.wikipedia.org/w/index.php?title=MediaWiki:Gadget-site-lib.js&action=raw&ctype=text/javascript');
mw.loader.load('//zh.wikipedia.org/w/index.php?title=User:Xiplus/Twinkle-dev.js&action=raw&ctype=text/javascript');
console.log("測試版Twinkle");
} else {
console.log("未啟用Twinkle");
}
window.TranslateVariants = {
summary: '自動轉換變體自[[$1]] via [[w:User:Xiplus/js/TranslateVariants.js|TranslateVariants]]'
};
mw.loader.load('https://zh.wikipedia.org/w/index.php?title=User:Xiplus/js/TranslateVariants.js&action=raw&ctype=text/javascript');