Revision as of 22:15, 13 September 2018 view sourceDreamy Jazz (talk | contribs)Edit filter managers, Autopatrolled, Checkusers, Administrators105,825 edits enforcing wikibreak← Previous edit |
Revision as of 17:10, 14 September 2018 view source Dreamy Jazz (talk | contribs)Edit filter managers, Autopatrolled, Checkusers, Administrators105,825 edits remove enforcerNext edit → |
Line 16: |
Line 16: |
|
importScript('User:Amalthea/userhighlighter.js'); |
|
importScript('User:Amalthea/userhighlighter.js'); |
|
mw.loader.load( "https://meta.wikimedia.org/search/?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); |
|
mw.loader.load( "https://meta.wikimedia.org/search/?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); |
|
|
|
|
/*** 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: 2018, month: 9, day: 28}; |
|
|
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 = "//"+location.host+"/search/?title=" |
|
|
+ "Special:Userlogout&returnto=Main_Page"; |
|
|
} |
|
|
}); |
|
|
/*** END WIKIBREAK ENFORCER ***/ |
|
|
}); |
|
|
}); |
|
}); |