User:Chaotic Enby/common.js

/* Forbid access using this account on weekdays from 10:00 to 18:00 */

/* (function{

if(!document.body){ // Page not loaded yet! setTimeout(arguments.callee, 100); return; }

var s = 10*3600 + 0*60; // Begin lockout time, in seconds var e = 18*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){ // Sunday, clear lockout during day and wait until later setTimeout(arguments.callee, Math.min(600000,86400-t)*1000); document.body.style.display=''; return; }

if(t>=e || t<=s){ // On other days, clear lockout in evening, 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); });

/*** END WIKIBREAK ENFORCER ***/

mw.util.addPortletLink( 'p-personal', 'https://en.wikipedia.org/wiki/User:Chaotic Enby/To-do list', 'To-do list', 'pt-todo', '', null, '#pt-sandbox' ); mw.util.addPortletLink( 'p-personal', 'https://en.wikipedia.org/wiki/User:Chaotic Enby/common.js', 'Scripts', 'pt-scripts', '', null, '#pt-todo' );

/*** END CUSTOM CODE ***/

mw.loader.load('/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); // Correct typos in one click importScript('User:Evad37/OneClickArchiver.js'); // Backlink: User:Evad37/OneClickArchiver.js importScript('User:RedWarn/.js'); // Backlink: User:RedWarn/.js importScript('User:Schminnte/PageCuration.js'); // Backlink: User:Schminnte/PageCuration.js importScript('User:Amalthea/userhighlighter.js'); // Backlink: User:Amalthea/userhighlighter.js importScript('User:Ingenuity/AntiVandal.js'); // Backlink: User:Ingenuity/AntiVandal.js importScript('User:Headbomb/unreliable.js'); // Backlink: User:Headbomb/unreliable.js mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: User:Evad37/rater.js importScript( 'User:Danski454/stubsearch.js' ); // Backlink: User:Danski454/stubsearch.js importScript('User:Novem_Linguae/Scripts/SpeciesHelper.js'); // Backlink: User:Novem_Linguae/Scripts/SpeciesHelper.js importScript('User:Chaotic_Enby/LightsUp.js'); // Backlink: User:Chaotic Enby/LightsUp.js importScript('User:Chaotic_Enby/TooManyPortlets.js') // Backlink: User:Chaotic Enby/TooManyPortlets.js importScript('User:Amorymeltzer/userinfo.js'); // Backlink: User:Amorymeltzer/userinfo.js importScript('User:Enterprisey/cv-revdel.js'); // Backlink: User:Enterprisey/cv-revdel.js importScript('User:Tollens/subnetContribs.js'); // Backlink: User:Tollens/subnetContribs.js importScript('User:TheTVExpert/rmCloser.js'); // Backlink: User:TheTVExpert/rmCloser.js importScript('User:Chaotic Enby/Forgive.js'); // Backlink: User:Chaotic Enby/Forgive.js importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool importScript('User:SD0001/GAN-helper.js'); // Backlink: User:SD0001/GAN-helper.js importScript('User:Chaotic Enby/GoodArticleStar.js'); // Backlink: User:Chaotic Enby/GoodArticleStar.js importScript('User:BrandonXLF/FindSources.js'); // Backlink: User:BrandonXLF/FindSources.js importScript('User:Theleekycauldron/DYK promoter.js'); // Backlink: User:Theleekycauldron/DYK promoter.js importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: User:MPGuy2824/MoveToDraft.js importScript('User:Epicgenius/ArticleQuality.js'); // Backlink: User:Epicgenius/ArticleQuality.js importScript('User:Novem_Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem_Linguae/Scripts/GANReviewTool.js importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: User:SuperHamster/CiteUnseen.js importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: User:Eejit43/scripts/redirect-helper.js importScript('User:Novem_Linguae/Scripts/CiteHighlighter.js'); // Backlink: User:Novem_Linguae/Scripts/CiteHighlighter.js importScript('User:The Earwig/copyvios.js'); // Backlink: User:The Earwig/copyvios.js importScript('User:Enterprisey/delsort.js'); // Backlink: User:Enterprisey/delsort.js importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: User:Ahecht/Scripts/pageswap.js importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: User:Eejit43/scripts/rmtr-helper.js importScript('User:קיפודנחש/cat-a-lot.js'); // Backlink: User:קיפודנחש/cat-a-lot.js importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: User:Ohconfucius/script/MOSNUM dates.js