User:August0422/common.js
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
mw.loader.load( '/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
mw.loader.load(['ext.gadget.Twinkle']);
importScript('User:PhiLiP/wikicache/load.js');
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');
mw.loader.load('/w/index.php?title=User:暁月凛奈/DisamAssist-tc.js&action=raw&ctype=text/javascript');
importScript("user:bluedeck/serve/edit-count.js");
importScript('User:Alexander Misel/Gadget-pageview.js');
importScript('User:Alexander Misel/admin.js');
importScript('User:Wetitpig0/OnlineOffline.js');
importScript("User:Bluedeck/serve/ar-auto-s.js");
importScript('User:Carrotkit/duplinks.js');
importScript('User:和平奮鬥救地球/checklinks.js');
mw.util.addPortletLink(
'p-personal', '#',
'放假提醒', 'wikibreak-button'
);
$( "#wikibreak-button" ).click( function() {
if ( confirm( "您是否需要维基假期提醒?" ) ) {
localStorage.setItem( "wikibreak-setting" , "true" );
}
else {
localStorage.setItem( "wikibreak-setting" , "false" );
}
});
if ( localStorage.getItem( "wikibreak-setting" ) === "true" ){
alert( "您正在放维基假期,请关闭此页。" );
}