User:MajorRSB/wikia.js

/***** Adds links to the toolbar *****/ if ( wgNamespaceNumber !=401 && !window.ToolbarLinksLoad ) { addOnloadHook( addToolbarLinks ); } var ToolbarLinksLoad = true; // prevent duplication /* Personal note: Left to right on the toolbar = bottom to top here */ function addToolbarLinks { $('UOTM').appendTo('ul.tools'); $('FIMG').appendTo('ul.tools'); $('FA').appendTo('ul.tools'); $('SBOX').appendTo('ul.tools'); $('<a href="/wiki/RS:PM">PM</a></li>').appendTo('ul.tools'); $('<a href="http://webchat.freenode.net/">IRC</a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:Chat">Chat</a></li>').appendTo('ul.tools'); $('<a href="/wiki/Forum:Yew_Grove">YG</a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:RecentChanges">RC</a></li>').appendTo('ul.tools'); $('<a href="/wiki/User:Suppa chuppa/RecentChangesHybrid">RCWATCH</a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:Logs">Logs</a></li>').appendTo('ul.tools'); $('Random <a href="/wiki/Special:Random">page</a>/<a href="/wiki/Special:Random/file">file</a></li>').appendTo('ul.tools'); } /*** Re-adds the namespace to the name of the article. Eg. "User:MajorRSB/wikia.js" instead of "MajorRSB/wikia.js". ***/ if ( wgNamespaceNumber == 2 || wgNamespaceNumber == 3 ) { document.getElementById('WikiaUserPagesHeader').getElementsByTagName("h1")[0].innerHTML = wgCanonicalNamespace + ":" + wgTitle; } else if ( wgNamespaceNumber !== 0 ) { document.getElementById('WikiaPageHeader').getElementsByTagName("h1")[0].innerHTML = wgCanonicalNamespace + ":" + wgTitle; } /* Recent Changes scripts */ importScript('User:Suppa_chuppa/hybrid.js');