Jump to content

User:BearMachine/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*** 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://wiki.riteme.site/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