User:BearMachine/monobook.js

/*** BEGIN WIKIBREAK ENFORCER ***/

$(function() {

/*** Start editing here ***/

// When you want to end your break?

// no leading zeroes. (example: 7 - correct, 07 - incorrect)

var date = { year: 2009, month: 12, day: 17};

var time = { hours: 20, minutes: 22, seconds: 0 };

/*** 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 = "http://"+location.host+"/w/index.php?title="

+ "Special:Userlogout&returnto=Main_Page";

}

});

/*** END WIKIBREAK ENFORCER ***/

Retrieved from "http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/WikiBreak_Enforcer"

Views

* Project page

* Discussion

* View source

* History

* Watch

Personal tools

* Try Beta

* Rehjanis

* My talk

* My preferences

* My watchlist

* My contributions

* Log out

Navigation

* Main page

* Contents

* Featured content

* Current events

* Random article

Search

Interaction

* About Wikipedia

* Community portal

* Recent changes

* Contact Wikipedia

* Donate to Wikipedia

* Help

Toolbox

* What links here

* Related changes

* Upload file

* Special pages

* Permanent link

Print/export

* Create a book

* Download as PDF

* Printable version

Languages

* Italiano

Powered by MediaWiki

Wikimedia Foundation

* This page was last modified on 16 February 2008 at 02:31.

* Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. See Terms of Use for details.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.

* Contact us

* Privacy policy

* About Wikipedia

* Disclaimers