Spring til indhold

Bruger:NisJørgensen/common.js

Fra Wikipedia, den frie encyklopædi
/*** BEGIN WIKIBREAK ENFORCER ***/
$(document).ready(function() {

	/*** Start editing here ***/

	// When you want to end your break?
	// no leading zeroes. (example: 9 - correct, 09 - incorrect)

	var date = { year: 2022, month: 6, day: 27};
	var time = { hours: 23, minutes: 59, seconds: 59 };

	/*** Stop editing here ***/
	
	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("Enforced wikibreak until "+enforcedBreakEnd.toLocaleString()
			+ "\n(now is "+currentDate.toLocaleString()+")\n\nBye!");
		location = "//"+location.host+"/w/index.php?title="
			+ "Special:Userlogout&returnto=Main_Page";
	}
});
/*** END WIKIBREAK ENFORCER ***/

mw.loader.load( 'https://www.wikidata.org/w/load.php?modules=ext.gadget.Mark_as_patrolled&only=scripts' );

findargdupslinktext = 'Gentaget parameter';
findargdupseditsummary = 'Håndterer [[:Kategori:Sider med gentaget skabelonparameter|sider med gentaget skabelonparameter]] med [[:en:User:Frietjes/findargdups|findargdups]]';
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Frietjes/findargdups.js&action=raw&ctype=text/javascript');