User:PikaSamus/common.js

function addWorkPageLink { var pPersonalList = document.getElementById('p-personal').getElementsByTagName( 'ul' )[0];

var workListItem=document.createElement('LI'); workListItem.className = 'spe'; workListItem.id = 'pt-work'; var linkNode=document.createElement('A'); linkNode.href = "/User:PikaSamus/sandbox"; linkNode.title = "Sandbox"; var text = document.createTextNode("Sandbox"); linkNode.appendChild(text); workListItem.appendChild(linkNode)

pPersonalList.insertBefore(workListItem, document.getElementById('pt-logout')); }

jQuery(document).ready( addWorkPageLink );