User:Randomdude999/common.js

//From my js page in Illogicopedia, http://en.illogicopedia.org/wiki/User:Iamawesome/common.js

// move special pages link to navigation var a = document.getElementById('t-specialpages'); a.parentNode.removeChild(a); var ul = document.getElementById('p-navigation').children[1].children[0]; // ... ul.appendChild(a); // The top bar list var tools = document.getElementById('p-personal'); var ul = tools.children[1]; var li1 = ul.children[4]; // create some elements var li = document.createElement('li'); a = document.createElement('a'); var txt = document.createTextNode('Userspace'); // link to all pages in userspace a.appendChild(txt); li.appendChild(a); a.href="/w/index.php?title=Special%3APrefixIndex&prefix=User%3ARandomdude999%2F&hideredirects=1&stripprefix=1"; a.title="Pages in your userspace"; li.id="pt-userspace"; ul.insertBefore(li, li1);