User:Tony Fox/monobook.js

// User:Lupin/popups.js

mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s');

//Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

importScript('User:AzaToth/twinkle.js');

importScript('User:Ioeth/friendly.js');

// Tab name fixer (copied from User:Anomie/fix-tab-text.js, target content modified) /* A simple javascript function to change the text in various tabs at the top of the * page. Only tested with the monobook skin. */ $(function{   var fix=function(id, text){        var el=document.getElementById(id);        if(!el) return;        for(el=el.firstChild; el && el.nodeName!='A'; el=el.nextSibling);        if(!el) return;        while(el.firstChild) el.removeChild(el.firstChild);        el.appendChild(document.createTextNode(text));    }

/* Add lines as necessary. Use the Firefox DOM inspector or some such to determine * the appropriate IDs. */ //(disabled via commenting)   fix('ca-talk', 'discussion'); fix('ca-edit', 'edit'); fix('ca-addsection', '+') fix('pt-preferences', 'preferences'); fix('pt-watchlist', 'watchlist'); fix('pt-mytalk', 'talk'); fix('pt-mycontris', 'contributions'); fix('ca-delete', 'nuke from orbit'); }); //end tab name fixer

importScript('User:Mr.Z-man/closeAFD.js');

function addDash { loLogoutNode = document.getElementById("pt-logout"); loDashNode = mw.util.addPortletLink( "p-personal"      , mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=User:" + wgUserName + "/Dashboard"        , "my dashboard"        , "pt-admindash"        , "Link to dashboard"        , "d"        , loLogoutNode ); } $(addDash);