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

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

addOnloadHook( addWorkPageLink );