Misplaced Pages

User:Lieutenant of Melkor/monobook.js: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Lieutenant of Melkor Browse history interactively← Previous editNext edit →Content deleted Content added
Revision as of 16:40, 1 May 2014 view sourceLieutenant of Melkor (talk | contribs)Autopatrolled, Pending changes reviewers20,031 editsm enough with this madness, and good interface← Previous edit Revision as of 00:53, 23 June 2014 view source Lieutenant of Melkor (talk | contribs)Autopatrolled, Pending changes reviewers20,031 edits 2014.12.20 or whenever the next solstice arrivesNext edit →
Line 14: Line 14:
// no leading zeroes. (example: 7 - correct, 07 - incorrect) // no leading zeroes. (example: 7 - correct, 07 - incorrect)
var date = { year: 2014, month: 5, day: 3}; var date = { year: 2014, month: 12, day: 20};
var time = { hours: 0, minutes: 0, seconds: 0}; var time = { hours: 0, minutes: 0, seconds: 0};

Revision as of 00:53, 23 June 2014

/*** HotCat **/
window.hotcat_use_category_links = true;
/*** Popups ***/
var popupFixDabs = true;
var popupRevertSummaryPrompt = true;
var popupMaxPreviewCharacters = 1000;

/*** BEGIN WIKIBREAK ENFORCER ***/
addOnloadHook(function() {
 
        /*** Start editing here ***/
 
        // When you want to end your break?
        // no leading zeroes. (example: 7 - correct, 07 - incorrect)
 
        var date = { year: 2014, month: 12, day: 20};
        var time = { hours: 0, minutes: 0, 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+"/search/?title="
                        + "Special:Userlogout&returnto=Main_Page";
        }
});
/*** END WIKIBREAK ENFORCER ***/
mw.loader.load('//www.wikidata.org/search/?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');