User:Lelouch Di Britannia/global.js

importScriptPage( 'PurgeButton/code.js', 'dev' ); var PurgeButtonText = 'Refresh'; importScriptPage( 'AjaxRC/code.js', 'dev' ); var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"]; var AjaxRCRefreshText = 'Auto-refresh'; importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/usercode.js"    ] }); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importArticles({   type: 'script',    articles: [        'u:dev:FloatingToc/code.js'    ] }); importArticles({   type: 'script',    articles: [        'u:dev:SearchSuggest/code.js'    ] }); importArticles({   type: 'script',    articles: [        'w:c:dev:FixMultipleUpload/code.js'    ] }); importArticles({   type: 'script',    articles: [        'w:c:dev:AutoEditDropdown/code.js'    ] }); importScriptPage( 'Standard_Edit_Summary/code.js', 'dev' );

/* change wiki activity to recent changes */ function WikiActivity2RecentChanges { $('.wikia-button[data-id$="wikiactivity"]').replaceWith('Recent Changes'); } addOnloadHook(WikiActivity2RecentChanges);

// ============================================================ // displayTimer // ============================================================ var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 1000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 1000);    $('#displayTimer').css({'font-size': "12px"}); }); //

/* BackToTopButton */ importScriptPage('BackToTopButton/code.js', 'dev'); /* InactiveUsers */ importScriptPage('InactiveUsers/code.js', 'dev'); // http://dev.wikia.com/wiki/RevealAnonIP importScriptPage('RevealAnonIP/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); function AddRecentChanges { $('div.buttons').css({'width': '310px'}); $('a[data-id="wikiactivity"]').after('Recent Changes'); } addOnloadHook(AddRecentChanges); /* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev');

/* Code for custom edit buttons (ō, ū characters). */ if (mwCustomEditButtons) { /*** wrappers *****/ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/deadmanwonderland/images/e/e1/O_Accent_Button.png", "speedTip": "Add the ō character", "tagOpen": "ō", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/deadmanwonderland/images/d/db/U_Accent_Button.png", "speedTip": "Add the ū character", "tagOpen": "ū", "tagClose": "", "sampleText": ""}; }

importScriptPage('RelatedDiscussionsModule/code.js', 'dev');

/*  */

//Add this to your global.js file (http://c.wikia.com/wiki/Special:MyPage/global.js) //Then, when you click the "join chat" button in the sidebar, you'll have awesome chat hacks importScriptURI('http://c.wikia.com/index.php?title=User:Monchoman45/ChatHacks.js&action=raw&ctype=text/javascript'); //Having trouble with that? If you use Firefox, you can import with Greasemonkey (https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) //Put the code below in Greasemonkey $('head').append(' ');

/* Chat modifications */ importScriptPage('User:ToaMeiko/chat-global.js', 'c');

/* Roranoa's chat hacks */ /* Originally by Monchoman45*/ /*Roranoa's chat hacks*/ importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:APIQuery.js&action=raw&ctype=text/javascript'); 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:WhamAPI.js&action=raw&ctype=text/javascript'); importScriptURI('http://c.wikia.com/index.php?title=User:Monchoman45/ChatHacks.js&action=raw&ctype=text/javascript');