User:Cbrown1023/fund2008.js

// Some fun things for Fundraiser 2008 // Add links in the p-personal addOnloadHook(function {addPortletLink('p-personal','/wiki/User:Az1568/fund notes','#','pt-links','Alex\'s cheat-sheet for where each number goes','!', document.getElementById('pt-logout')); }); addOnloadHook(function {addPortletLink('p-personal','/wiki/m:Fundraising 2008/supplementary pages','meta','pt-links','Meta-Wiki Translation workspace for Core messages & Supplementary pages','!', document.getElementById('pt-logout')); }); addOnloadHook(function {addPortletLink('p-personal','/wiki/User:Cbrown1023/Fund2008/status','status','pt-links','Cbrown1023\'s status page','!', document.getElementById('pt-logout')); }); addOnloadHook(function {addPortletLink('p-personal','/wiki/m:Special:NoticeTemplate','notice','pt-links','CentralNotice management','!', document.getElementById('pt-logout')); }); addOnloadHook(function {addPortletLink('p-personal','/wiki/Special:FundraiserStatistics','stats','pt-links','Fundraiser Statistics','!', document.getElementById('pt-logout')); });

// make the current ones smaller, so that there's more room

addOnloadHook(function{  var tab = document.getElementById('pt-mytalk');   if(!tab) return;   var tablink = tab.getElementsByTagName('a')[0];   if(!tablink) return;   tablink.firstChild.nodeValue = 'talk'; });

addOnloadHook(function{  var tab = document.getElementById('pt-preferences');   if(!tab) return;   var tablink = tab.getElementsByTagName('a')[0];   if(!tablink) return;   tablink.firstChild.nodeValue = 'prefs'; });

addOnloadHook(function{  var tab = document.getElementById('pt-watchlist');   if(!tab) return;   var tablink = tab.getElementsByTagName('a')[0];   if(!tablink) return;   tablink.firstChild.nodeValue = 'watch'; });

addOnloadHook(function{  var tab = document.getElementById('pt-mycontris');   if(!tab) return;   var tablink = tab.getElementsByTagName('a')[0];   if(!tablink) return;   tablink.firstChild.nodeValue = 'contribs'; });

addOnloadHook(function{  var tab = document.getElementById('pt-logout');   if(!tab) return;   var tablink = tab.getElementsByTagName('a')[0];   if(!tablink) return;   tablink.firstChild.nodeValue = 'X'; });