User:Shokora/common.js

function fixRecentChangesLink { var link = document.getElementById('n-recentchanges').getElementsByTagName( 'a' ); link[0].href = link[0].href + "?hidemyself=1"; }

addOnloadHook( fixRecentChangesLink );

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/Work"; linkNode.title = "Work page"; var text = document.createTextNode("Work"); linkNode.appendChild(text); workListItem.appendChild(linkNode)

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

addOnloadHook( addWorkPageLink );