User:Oosoom/monobook.js

importScript('user:js/bottomSidebar.js') //user:js/bottomSidebar

function getUserSpaceWikiLink(page, name) { return getWikiLink('User:'+mw.config.get('wgUserName')+'/'+page, (name?name:page)); } function getWikiLink(page, name) { return ''+(name?name:page)+''; }

function insertUserLink(id, page, name) { var talklink = document.getElementById('pt-mytalk'); var newuserlink = document.createElement('LI'); newuserlink.id = 'pt-' + id; newuserlink.innerHTML = getUserSpaceWikiLink(page, (name?name:page)); talklink.parentNode.insertBefore(newuserlink, talklink); }

$(function {        insertUserLink('Gallery', 'Gallery');        insertUserLink('New articles', 'New articles');        insertUserLink('refs', 'refs');        insertUserLink('links', 'links');        insertUserLink('sb', 'sb');        insertUserLink('sb1', 'sb1');        insertUserLink('sb2', 'sb2');        insertUserLink('sb3', 'sb3');        insertUserLink('sb4', 'sb4');        insertUserLink('sb5', 'sb5');        insertUserLink('sb6', 'sb6');        insertUserLink('sb7', 'sb7');        insertUserLink('sb8', 'sb8');        insertUserLink('sb9', 'sb9');        insertUserLink('sbs', 'sb9');        insertUserLink('sbt', 'sbt');        insertUserLink('mycss', 'monobook.css', 'css');        insertUserLink('myjs', 'monobook.js', 'js'); });

//-- // settings for WikiMiniAtlas (globe in coordinates) var wma_settings ={enabled: false}

// 11May09 hilite Admins importScript('User:Ais523/adminrights.js') //hilight Admins

// 29dec2011 map tab importScript('User:Vicarage/maptab.js');