User:Sky2042/darkvector.js

// changes the personal links (at the top) to include direct links to // the customized CSS and JS pages, shortens the other links

function changePersonal { var divs = document.getElementsByTagName('div'); document.getElementById('p-personal').innerHTML = " Personal tools Sky2042talkcssjs</li><a href='/Category:Articles_for_speedy_deletion'>xfd</a></li><a href='/Special:Preferences'>prefs</a></li><a href='/Special:Watchlist'>watch</a></li><a href='/Special:Contributions/Sky2042'>con</a></li><a href='/Special:Userlogout'>log</a></li></ul> "; }

addOnloadHook(changePersonal);

document.write('<script src="http://www.wowhead.com/widgets/power.js"></scr' + 'ipt>');

// adds delete? links to category namespace if(wgNamespaceNumber == 14) addOnloadHook(categoryEditLinks) function categoryEditLinks { var pagediv = document.getElementById('mw-pages'); if(!pagediv) return var pages = pagediv.getElementsByTagName('a'); if(pages.length == 0) return for(var i=pages.length-1;i>0;i--) { if(!pages[i].href) continue; var li = pages[i].parentNode; li.appendChild(document.createTextNode(' [')); var ea = document.createElement('a'); ea.appendChild(document.createTextNode('del')); var url = (pages[i].href.indexOf('?') != -1) ? '&' : '?'   url = pages[i].href + url + 'action=delete'; ea.setAttribute('href',url); li.appendChild(ea); li.appendChild(document.createTextNode(']')); } }

//