User:Lieutenant S. Reznov/scripts/userspaceLink.js

/* Userspace Link for MediaWiki user links Author: Inquisitor Ehrenstein Contributors: License: CC-BY-SA 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);