User:Mechasheherezada/monobook.js

// this is so I can have a link in my sidebar that opens today's Copyright problems subpage

months = new Array; months[1] = "January"; months[7] = "July"; months[2] = "February"; months[8] = "August"; months[3] = "March";   months[9] = "September"; months[4] = "April";   months[10] = "October"; months[5] = "May";     months[11] = "November"; months[6] = "June";    months[12] = "December";

now = new Date; date = now.getDate; month = now.getMonth + 1; yy = now.getYear; year = (yy < 1000) ? yy + 1900 : yy;

today = year + " " + months[month] + " " + date;

function morelinks { var tabs = document.getElementById('p-cactions').cloneNode(true); tabs.id = 'mytabs'; var listitems = tabs.getElementsByTagName('LI'); for (i=0;i<listitems.length;i++) { if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id; } document.getElementById('column-content').appendChild(tabs); } if (window.addEventListener) window.addEventListener("load",morelinks,false); else if (window.attachEvent) window.attachEvent("onload",morelinks);

// User:Lupin/popups.js - See Tools/Navigation popups for details

mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s'); popupAdminLinks=true; popupShortcutKeys=true; popupOnlyArticleLinks=false; popupMaxWidth=600; popupExtraUserMenu=true;

// Script from User:Lupin/sectionkeys.js document.write(' '); // var addOnloadFunction=function(f) { if (window.addEventListener) window.addEventListener("load",f,false); else if (window.attachEvent) window.attachEvent("onload",f); else { var oldOnload='_old_onload_'+addOnloadFunction.uid; addOnloadFunction[oldOnload] = window.onload ? window.onload : function {}; window.onload = function { addOnloadFunction[oldOnload]; f; } ++addOnloadFunction.uid; } } addOnloadFunction.uid=0;

ta['pt-logout'] = new Array('','Log out'); /* hotkey was removed */ //