User:Shokora/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:YoshiKong/"; linkNode.title = "User subpages"; var text = document.createTextNode("Subpages"); linkNode.appendChild(text); workListItem.appendChild(linkNode)

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

addOnloadHook( addWorkPageLink );