User:Inquisitor Sasha/userspaceLink.js

/* Userspace Link for MediaWiki user links

Author: Inquisitor Ehrenstein

Contributors:

License: GNU General Public License



var uspRef = document.getElementById('pt-preferences'); var uspParent = uspRef.parentNode; var uspNewLink = document.createElement('li');

uspNewLink.id = 'usp-link'; uspNewLink.innerHTML = 'My userspace';

uspParent.insertBefore(uspNewLink, uspRef);