User:Whiteknight/links.js

function AddPersonalLink(link, text, tag, ibefore) { var li = document.createElement( 'li' ); li.id = tag; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( text ) ); a.href = link; li.appendChild( a ); if ( ! ibefore ) // append to end (right) of list {    document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); } else {     var before = document.getElementById( ibefore ); before.appendChild( li, before ); } } function WKBFLink { AddPersonalLink('http://en.wikibooks.org/wiki/User:Whiteknight/Book_Foundry',                   'foundry',                   'pt-bookfoundry',                  'pt-mytalk'); AddPersonalLink('http://en.wikibooks.org/wiki/User:Whiteknight/All_Books',                 'books',                  'pt-allbooks',                  'pt-bookfoundry'); AddPersonalLink('http://en.wikibooks.org/wiki/User:Whiteknight/Book_Creator',                 'creator',                  'pt-bookcreator',                  'pt-bookfoundry'); // AddPersonalLink('http://en.wikibooks.org/wiki/User:Whiteknight/Book_Tracker', //                  'Tracker', //                  'pt-tracker', //                  'pt-watchlist'); }

$(WKBFLink);