User:Sharple/wikia.js

/****************************/ /*Current JS WORKS please do not edit it with asking Tama63, the JS is mostly from the Dev wiki either copied over or imported Credits: Moncho,Pcj,Splarka ,Grunny from Wikia Dev (dev.wikia.com)*/ /****************************/ /*   Replaces  with the name of the user browsing the page. Requires copying Template:USERNAME. credi w:c:starwars function substUsername { $('.insertusername').html(wgUserName); } addOnloadHook(function {$('.username').html(wgUserName);}); /****************************/ /* IMPORTED START          */ /****************************/ // Extra Rollback Buttons -Thanks Monch importScript('MediaWiki:Common.js/extraRollbacks.js'); // END Extra Rollback Buttons // AjaxRollback - works with Extra Rollback Buttons importScript('MediaWiki:Common.js/ajaxRollback.js'); // END AjaxRollback /* Standard edit summaries*/ importScript('MediaWiki:Common.js/es.js'); /* Tooltips? -wow wiki*/ importScript('MediaWiki:Common.js/tooltips.js'); /* Music? - wiki*/ importScript('MediaWiki:Common.js/ranks.js'); /* Site Meter */ importScript('MediaWiki:Common.js/sitemeter.js'); /* Ajax Auto-Refresh (courtesy pcj) */ /* Auto updating recent changes opt-in * See w:c:dev:AjaxRC for info & attribution */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); /* Count-down Timer */ importScript('MediaWiki:Common.js/countdowntimer.js'); /* Collapsible Tables */ importScript('MediaWiki:Common.js/collapsetables.js'); /* Custom edit buttons */ importScript('MediaWiki:Common.js/CEB.js'); /** Dynamic Navigation Bars (experimental)**/ importScript('MediaWiki:Common.js/Nav.js'); /* other */ importScript('MediaWiki:Common.js/other.js'); /* Display Timer */ importScript('MediaWiki:Common.js/DisplayTimer.js'); /****************************/ /* END OF THE IMPORTED    */ /****************************/ //Facebook 'Like Box' //Graciously (and unknowingly) provided by The Spanish 'Simspedia' function fBox { $('#fbox').append(''); } $(fBox); //USERNAME Template// addOnloadHook(function {$('.username').html(wgUserName);}); /* Fast Delete see below */ importScriptPage('MediaWiki:Common.js/fastDelete.js'); // ***************************************************************** // Custom automatic delete buttons // ***************************************************************** // Adds customizable one-click deletion buttons to any deletable page. // Requires MediaWiki:Common.js/fastDelete.js in appendScript; var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Vandalism', 'label': 'Vandalism'}; fdButtons[fdButtons.length] = { 'summary': 'Cleaning up old pages', 'label': 'Clean-Up'}; fdButtons[fdButtons.length] = { 'summary': 'Removing Spam Page', 'label': 'Spam'}; fdButtons[fdButtons.length] = { 'summary': 'Cleaning up un-Edited Stub Page', 'label': 'Old Stub Page'}; // end Custom automatic delete buttons if(wgNamespaceNumber!=-1) addOnloadHook(function { addPortletLink('p-cactions','/wiki/Special:Prefixindex/' + escape(wgPageName),'Subpages','ca-subpages','Show subages of ' + wgPageName); }); // // ***************************************************************** // Custom User Tags // ***************************************************************** // Adds certain tags to certain User pages. /* Burs */ $(function { $('.page-User_Tama63 .masthead-info hgroup .group').html('Bureaucrat'); }); $(function { $('.page-User_Katbluedog .masthead-info hgroup .group').html('Bureaucrat'); }); $(function { $('.page-User_Stpehen .masthead-info hgroup .group').html('Bureaucrat'); }); $(function { $('.page-User_Curycoo .masthead-info hgroup .group').html('Bureaucrat'); }); $(function { $('.page-User_CaptainGoldvane2 .masthead-info hgroup .group').html('Bureaucrat'); }); /* Rollbacks */ $(function { $('.page-User_Jack.Pistol .masthead-info hgroup .group').html('Rollback'); }); $(function { $('.page-User_GenLawrence .masthead-info hgroup .group').html('Rollback'); }); $(function { $('.page-User_LeClerc.Sharpe .masthead-info hgroup .group').html('Rollback'); }); $(function { $('.page-User_Benjamin.Macmorgan .masthead-info hgroup .group').html('Rollback'); });