User:Dr ishmael/monaco.js

function restoreWatchlistLink { var userData    = document.getElementById('userData'); var wlObj       = document.createElement('span'); var wlLink      = document.createElement('a'); wlLink.href     = '/wiki/Special:Watchlist'; wlLink.title    = 'Your watchlist'; wlLink.innerHTML = "My watchlist"; wlObj.id        = 'header_mywatchlist'; wlObj.appendChild(wlLink); userData.insertBefore(wlObj, document.getElementById('header_mytalk').nextSibling); } addOnloadHook(restoreWatchlistLink);