User:LEGOfan2010/global.js

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5. Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R. Opera users have to clear their caches through Tools→Preferences Konqueror and Safari users can just click the Reload button. Chrome: press Ctrl+F5 or Shift+F5 importScriptPage('User:Seaside98/ChatHacks.js', 'c'); importScriptPage('User:Seaside98/normal.js', 'c'); /* BotoneraPopups */ importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev'); // Create if not exists if (!window.BotoneraPopups) { window.BotoneraPopups = {}; } // Open popup on keypress if (BotoneraPopups.setDisplayOnKeyDown) { BotoneraPopups.setDisplayOnKeyDown(true); } else { BotoneraPopups.displayOnKeyDown = true; } /* AutoEditDropdown */ importArticles({   type: 'script',    articles: [        'w:c:dev:AutoEditDropdown/code.js'    ] }); /* EditIntroButton */ /* WhatLinksHere */ var nsNr = mw.config.get( 'wgNamespaceNumber' ); function addMenuButtons { var selector; switch (nsNr) { case 500: case 502: selector = $( '#WikiaUserPagesHeader' ); break; case 2: case 3: selector = $( '.UserProfileActionButton' ); if ( selector.length ) break; default: selector = $( '#WikiaPageHeader' ); }       selector.find('.wikia-menu-button').first.find('ul') .append('Current diffLinksEdit intro'); } addMenuButtons; /* Logs */ if ( wgPageName == "Special:WikiActivity" || wgPageName == "Special:WikiActivity/watchlist" || wgPageName == "Special:WikiActivity/activity" ) { appTo = ( $( '#WikiaPageHeader' ).length ) ? $( '#WikiaPageHeader .activity-nav ul' ) : ( $( '#AdminDashboardHeader' ).length ? $( '#AdminDashboardHeader > h1' ) : $( '.firstheading' ) ); appTo.append( 'Logs' ); } else if ( wgPageName == "Special:Log" || wgPageName == "Special:RecentChanges" ) { appTo = ( $( '#WikiaPageHeader' ).length ) ? $( '#WikiaPageHeader > h2' ) : ( $( '#AdminDashboardHeader' ).length ? $( '#AdminDashboardHeader > h1' ) : $( '.firstheading' ) ); appTo.append( '<a href="/wiki/Special:WikiActivity">Activity</a></li>' ); } /*Add back WikiActivity*/ $( '#WikiHeader > nav .subnav-2.firstChild' ).prepend( '<a class="subnav-2a" href="/wiki/Special:WikiActivity">Wiki Activity</a></li>' ); /* RevealAnonIP */ // http://dev.wikia.com/wiki/RevealAnonIP window.RevealAnonIP = { permissions : ['*'] }; importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/code.js"    ] }); switch (wgPageName) { case 'Special:B3': case 'Special:Chatbot': case 'Special:Tasks': case 'Special:Maintenance': case 'Special:CVN': importScriptPage('MediaWiki:B3.js', 'monchbox'); };