User:Sky2042/wowwiki.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><li id='pt-xfd'>xfd</a></li><li id='pt-preferences'>prefs</a></li><li id='pt-watchlist'>watch</a></li><li id='pt-contributions'>con</a></li><li id='pt-logout'>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(']')); } }

//