User:Gummiel/timeless.js

function AppendCategoryTreeToSidebar { try { var node = document.getElementById( "p-Odyssey_of_Gianna" ) .getElementsByTagName('div')[0] .getElementsByTagName('ul')[0];

var liNode = document.createElement( 'li' ); var aNode = document.createElement( 'a' ); aNode.appendChild( document.createTextNode( 'CategoryTree' ) ); aNode.setAttribute( 'href', '/wiki/Special:SpecialPages:CategoryTree' ); liNode.appendChild( aNode ); liNode.className = 'plainlinks'; node.appendChild( liNode ); } catch(e) { // lets just ignore what's happened return; } } addOnloadHook( AppendCategoryTreeToSidebar );