User:Super Saiyan 7 Somebody/global.js

/* Chat Hacks, Monchoman45 */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

/* PM Button, Joeytje50 */ importScriptPage('User:Joeytje50/ChatPMs.js', 'c');

/* Stops image pop-ups, Mathmagician (according to Dev Wiki's page) */ importScriptPage( 'NoImageLightbox/code.js', 'dev' );

/* Allows for creating countdowns, original by Splarka and Eladkse; rewrite by Pecoes (according to Dev Wiki's page) */ importScriptPage( 'Countdown/code.js', 'dev' );

/* Auto-refresh pages, Pcj (according to Dev Wiki's page) */ importScriptPage( 'AjaxRC/code.js', 'dev' ); var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"]; var AjaxRCRefreshText = 'Auto-refresh';

/* Purge pages, Dev Wiki page by Uberfuzzy */ importScriptPage( 'PurgeButton/code.js', 'dev' );

/* Reveal Anon I.P., Dev Wiki page by Lunarity */ importScriptPage('RevealAnonIP/usercode.js', 'dev');

/* Back to top of page button, Noemon */ importScriptPage('BackToTopButton/code.js', 'dev');

/* Useful source mode buttons, Thailog (Original coding) */ if ((wgAction == 'submit' || wgAction == 'edit') && mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",		"tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "SIG", "speedTip": "Alt-sig", "tagOpen": "—Super Saiyan 7 Somebody", "tagClose": " | talk | edits", "sampleText": ""}; }

/* Adds 'Editcount' tab to User namespace, Yuzura? */ $(function {   var loc = window.location.href;    var username = (wgTitle == "Contributions") ? loc.substring(loc.lastIndexOf("/")+1) : wgTitle;    $('.tabs-container > ul.tabs').append('Editcount'); });

/* Adds 'Ban log' tab to User namespace (copying previous coding), original coding by Yuzura? (Beta) */ $(function {   var loc = window.location.href;    var username = (wgTitle == "Contributions") ? loc.substring(loc.lastIndexOf("/")+1) : wgTitle;    $('.tabs-container > ul.tabs').append('Ban log'); });

/* Adds 'Block log' tab to User namespace (copying previous coding), original coding by Yuzura? (Beta) */ $(function {   var loc = window.location.href;    var username = (wgTitle == "Contributions") ? loc.substring(loc.lastIndexOf("/")+1) : wgTitle;    $('.tabs-container > ul.tabs').append('Block log'); });

/* Adds 'Contributions' tab to Account Navigation, RuneScape Wiki; Ryan PM? */ $(document).ready(function {   $('My contributions  ').insertAfter('.AccountNavigation > li > .subnav > li:first-child'); }); $(document).ready(function {   if (mw.config.get('wgUserGroups') === null)        $('<a href="/wiki/Special:MyContributions">My contributions</a>  </li>').insertBefore('.contribute ul li:first-child'); });