跳转到内容

User:FRDian/common.js

维基百科,自由的百科全书

这是本页的一个历史版本,由FRDian留言 | 贡献2016年1月9日 (六) 14:19编辑。这可能和当前版本存在着巨大的差异。

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
importScript('User:Chiefwei/rater/rater.js'); // [[User:Chiefwei/rater]],作者:[[:en:User:Kephir/gadgets/rater]]
importScript('User:Zuohaocheng/patrollCount.js');
importScript('User:Liangent/Scripts/NewPagePatroller.js')
importScript('User:Liangent/Gadgets/Toolkit/wordcount.js')

/*** BEGIN WIKIBREAK ENFORCER ***/
/*** From [[:en:Wikipedia:WikiProject User scripts/Scripts/WikiBreak Enforcer/script]] ***/
$(document).ready(function() {

	/*** 编辑此处 ***/

	// 你的假期何时结束?
	// 没有前导零,如 7 ~ 正确,但是 07 ~ 错误。

	var date = { year: 2016, month: 1, day: 15};
	var time = { hours: 13, minutes: 29, seconds: 59 };

	/*** 不要编辑以下内容 ***/
	
	var currentDate = new Date();
	var enforcedBreakEnd = new Date(
		date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds);
	if (currentDate <= enforcedBreakEnd) {
		alert("你的维基假期将在"+enforcedBreakEnd.toLocaleString() + "结束"
			+ "\n现在是"+currentDate.toLocaleString()+"\n所以,滚去学习。再见!");
		location = "//"+location.host+"/w/index.php?title="
			+ "Special:Userlogout&returnto=Main_Page";
	}
});
/*** END WIKIBREAK ENFORCER ***/