User:Danre98/common.js

importScript('User:Enterprisey/cv-revdel.js'); // Backlink: User:Enterprisey/cv-revdel.js // BEGIN WIKIBREAK PLANNER

/***$(document).ready(function {	var date1 = { year: 2021, month: 8, day: 25};	var time1 = { hours: 10, minutes: 35, seconds: 0 };

var date2 = { year: 2021, month: 8, day: 26}; var time2 = { hours: 14, minutes: 0, seconds: 0 }; var currentDate = new Date; var breakStart = new Date(		date1.year,date1.month-1,date1.day,time1.hours,time1.minutes,time1.seconds); var enforcedBreakEnd = new Date(		date2.year,date2.month-1,date2.day,time2.hours,time2.minutes,time2.seconds); if ((currentDate >= breakStart) && (currentDate <= enforcedBreakEnd)) { alert("Blocked until "+enforcedBreakEnd.toLocaleString			+ "\n(now is "+currentDate.toLocaleString+")\n\nBye!");

location = "//"+location.host+"/w/index.php?title=" + "Special:Userlogout&returnto=Main_Page"; } });

// END WIKIBREAK PLANNER ***/ //Script from User:Anomie/lockout.js /* Forbid access using this account on weekdays from 8:30pm to 5am local time. */ /*** (function{   if(!document.body){        // Page not loaded yet!        setTimeout(arguments.callee, 100);        return;    }

var s=23*3600+0*60; // Start lockout time, in seconds var e=23*3600+59*60+59; // End lockout time, in seconds var dt=new Date; var t=dt.getHours*3600+dt.getMinutes*60+dt.getSeconds;

var wd=dt.getDay%7; if(wd==5 || wd==6){ // Not a weekday, clear lockout and wait until later setTimeout(arguments.callee, Math.min(600000,86400-t)*1000); document.body.style.display=''; return; }   if(t=e){ // Time past, clear lockout and wait until later setTimeout(arguments.callee, Math.min(600000,86400-t)*1000); document.body.style.display=''; return; }   // Lock out! And repeat the check every second so I can't just firebug my   // way past it. document.body.style.display='none'; setTimeout(arguments.callee, 1000); }); (function{ if(!document.body){ // Page not loaded yet! setTimeout(arguments.callee, 100); return; }

var s=0*3600+0*60; // Start lockout time, in seconds var e=4*3600+0*60; // End lockout time, in seconds var dt=new Date; var t=dt.getHours*3600+dt.getMinutes*60+dt.getSeconds;

var wd=dt.getDay%7; if(wd==0 || wd==6){ // Not a weekday, clear lockout and wait until later setTimeout(arguments.callee, Math.min(600000,86400-t)*1000); document.body.style.display=''; return; }   if(t=e){ // Time past, clear lockout and wait until later setTimeout(arguments.callee, Math.min(600000,86400-t)*1000); document.body.style.display=''; return; }   // Lock out! And repeat the check every second so I can't just firebug my   // way past it. document.body.style.display='none'; setTimeout(arguments.callee, 1000); });***/ importScript('User:DannyS712/Draft no cat.js'); // Backlink: User:DannyS712/Draft no cat.js