User:TidesOfLife/global.js

/* chat*/ importScriptPage('User:Riley_H/chat.js', 'rileyhuntley'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Hairrazerrr/chat.js', 'runescape'); importScriptPage('User:Riley_Huntley/EditTools.js', 'c'); importScriptPage('User:A.r.s.h./Skin switcher.js', 'c'); importScriptPage('InactiveUsers/code.js', 'dev'); importScriptPage('Mediawiki:FindReplace.js', 'kangaroopower'); importScriptPage('ArchiveTool/code.js', 'dev'); importScriptPage('MediaWiki:Common.js/displayClock.js', 'admintools'); importScriptPage('User:Nikolaitttt/whammod.js', 'southpark'); importScriptPage('MediaWiki:Common.js', 'animationcentral'); importScriptPage('User:Joeytje50/tabinsert.js','rs') importScriptPage('MediaWiki:Common.js/ipAnon.js', 'terraria'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('User:Mathmagician/displayTimer.js', 'mathmagician'); importScriptPage('Countdown/code.js', 'dev'); importScriptPage('BackToTopButton/code.js', 'dev'); importScriptPage('User:Joeyaa/wham.js', 'vstf'); importScriptPage('Sine/code.js', 'dev'); importScriptPage('SearchGoButton/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('ListAdmins/code.js', 'dev'); importScriptPage('AutoEditDropdown/code.js', 'dev'); importScriptPage('FastDelete/code.js', 'dev'); importScriptPage('AnswersEditButton/code.js', 'dev'); importScriptPage('AnswersTalkButton/code.js', 'dev'); importScriptPage('AnswersHistoryButton/code.js', 'dev'); importScriptPage('AnswersSearchLink/code.js', 'dev'); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage( 'AjaxUndo/code.js', 'dev' ); importScriptPage('ShowHide/code.js', 'dev'); importScriptPage('ShowHide2/code.js', 'dev'); importScriptPage('CollapsibleEdittools/code.js', 'dev'); importScriptPage('FixWantedFiles/code.js', 'dev'); ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:Log","Special:Contributions"]; var AjaxRCRefreshText = 'Auto-refresh'; /* End of the Template:USERNAME replacement */ //main importScript('MediaWiki:Common.js/main.js'); //main//

// 03:03, October 28, 2011 (UTC) //

// Ajax auto-refresh var ajaxPages = ['Special:RecentChanges','Special:WikiActivity']; var AjaxRCRefreshText = 'Auto-refresh'; importScriptPage('AjaxRC/code.js', 'dev'); // END of ajax auto-refresh importScript('MediaWiki:Wikia.js/copyright.js'); // Adds PURGE button for both skins var PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev'); // END Adds PURGE button for both skins // For UserGroup-only messages importScript('MediaWiki:Common.js/UserGroupMessages.js'); // END For UserGroup-only messages // Display Comments w/ Local Times importScript('MediaWiki:Common.js/localTimeComments.js'); // END Display Comments w/ Local Times

/* Add a button to edit Message Wall Greeting * By: User:Eladske, modified by User:The 888th Avatar */ function EditGreeting { if (wgCanonicalNamespace == 'Message_Wall' && wgAction != 'history') { if (wgTitle == wgUserName) { $('.WikiaMainContent').prepend('  Edit greeting	 '); }	} } addOnloadHook(EditGreeting);

/* Add "about us" link from "On the Wiki" menu * From RuneScape Wiki, modified by: User:The 888th Avatar */ $(document).ready(function {   if ( skin == 'oasis' && $.inArray("staff", wgUserGroups) == -1) {        $('.WikiHeaderRestyle nav ul li.marked ul').prepend('About us');    } }); importScriptPage('Countdown/code.js', 'dev'); //

//

/* http://dev.wikia.com/wiki/AutoEditDropdown */ var AutoEditDropdownConfig = { expandedAreaContribute: true } importScriptPage('AutoEditDropdown/code.js', 'dev'); /* change wiki activity to recent changes */

function WikiActivity2RecentChanges { $('.wikia-button[data-id$="wikiactivity"]').replaceWith('Recent Changes'); } addOnloadHook(WikiActivity2RecentChanges);

if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('PM'); }

//Custom shiny edit buttons if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "Signature", "tagOpen": " ~"+""+"", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete: spam", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete: unnecessary", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete: other reason", "tagOpen": "{{Sdelete|", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/callofduty/images/4/47/T_button.jpg", "speedTip": "Trolling", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/callofduty/images/b/b3/V_button.jpg", "speedTip": "Vandalism", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/p0q2A.png", "speedTip": "Needs Images", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/E1B5s.png", "speedTip": "Better Images", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/0M41t.png", "speedTip": "Leaked Info", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/RXGP7.png", "speedTip": "IRL", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/EXEK6.png", "speedTip": "Bad Edit", "tagOpen": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/JWF5u.png", "speedTip": "Bad Page", "tagOpen": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/8fWam.png", "speedTip": "Dont Delete discussions", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/SzOzG.png", "speedTip": "Chat Ban", "tagOpen": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/aeMxa.png", "speedTip": "Lag Ban", "tagOpen": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/I0ez2.png", "speedTip": "Unbanned", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/WgtIw.png", "speedTip": "Licensing Images", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/kNhOT.png", "speedTip": "Bad Image Title", "tagOpen": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/3EIiM.png", "speedTip": "Global Page", "tagOpen": "", "tagClose": "", "sampleText": ""};

}

//End custom shiny edit buttons

/* kill image popups */ window.wgEnableImageLightboxExt = false; function changeimagelinks { $('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox');

var a = document.getElementsByTagName('a'); for(var t = 0; t < a.length; ++t) { var a2 = a[t]; var img = a2.getElementsByTagName('img'); if(img[0] != null) { if (a2.href.indexOf('images.wikia.com') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }		}	} } addOnloadHook(changeimagelinks);

/* Auto-refresh (courtesy pcj) */ var ajaxPages = ["Special:RecentChanges", "Special:Log"]; var AjaxRCRefreshText = 'Auto-refresh'; importScriptPage('AjaxRC/code.js', 'dev'); var AdvancedOasisUIConfig = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, RCHeader: false, lightbox: true, randomPageLimitedTo: "", userLang: true, }; /* Add a clock to the wiki header * See w:c:runescape:MediaWiki:Common.js/displayTimer.js for info & attribution */ ; /* Auto-refresh the Recentchanges and Wikiactivity; copied from Avatar Wiki's */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); /* add contribs to user menu - 2/1/11; by Monchoman45 */ function UserContribsMenuItem { $('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('Contributions'); } addOnloadHook(UserContribsMenuItem); // Fast Delete importScriptPage( 'FastDelete/code.js', 'dev' ); //fast delete buttons var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'SP' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'VA' }; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'HK' }; // PurgeButton PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev'); /* Advanced Oasis UI- Porter21 & Me */ var AdvancedOasisUIConfig = { RCHeader: false }; importScriptPage('AdvancedOasisUI/code.js', 'dev'); // Adds B3 link to toolbar $(function { $('ul.tools').prepend('<a href="/wiki/Special:B3">B3</a></li>'); }); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:B3.js&action=raw&ctype=text/javascript'); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:B3.js/Chatbot.js&action=raw&ctype=text/javascript'); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:APIQuery.js&action=raw&ctype=text/javascript');