User:Plover-Y/global.js

/* --- PurgeButton : http://dev.wikia.com/wiki/PurgeButton --- */ /* PurgeButtonText = 'purge'; importScriptPage('PurgeButton/code.js', 'dev');

/* --- WallGreetingButton : http://dev.wikia.com/wiki/WallGreetingButton --- */ importScriptPage('WallGreetingButton/code.js', 'dev');

/* --- DisplayClock : http://dev.wikia.com/wiki/DisplayClock --- */ // Display year-month-day and 12 hour time with "(UTC)" window.DisplayClockJS = '%Y-%m-%2d %2I:%2M:%2S %p (UTC)'; importScriptPage('DisplayClock/code.js','dev');

/* --- RecentChangesMultiple : http://dev.wikia.com/wiki/RecentChangesMultiple --- */ importScriptPage('RecentChangesMultiple/code.2.js','dev');

/* --- WikiaNavBarHider : http://dev.wikia.com/wiki/WikiaNavBarHider --- */ importScriptPage('WikiaNavBarHider/code.js', 'dev');

/* Last Edited : http://dev.wikia.com/wiki/LastEdited --- */ importScriptPage('LastEdited/code.js', 'dev');

/* --- WikiaNavBarHider : http://dev.wikia.com/wiki/AjaxBatchDelete --- */ batchDeleteDelay = 1000; importScriptPage('AjaxBatchDelete/code.2.js', 'dev');

/*　　　　-　Chat Extension

/* --- Special:Chat Extension --- */ /* AFKButton, ClearButton, Ping */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); /* Multi-PM */ importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); /* --- Chat Options : http://dev.wikia.com/wiki/ChatOptions --- */ importScriptPage('ChatOptions/code.js', 'dev'); /* --- MessageBlocker : http://dev.wikia.com/wiki/MessageBlocker --- */ importScriptPage('MessageBlocker/code.js', 'dev');

/* --- QuickModTools : http://dev.wikia.com/wiki/QuickModTools テスト用 --- */ /* importScriptPage('QuickModTools/loader.js', 'dev');

/* --- Hide the Sidebar : http://terraria.wikia.com/wiki/User_blog:Dzylon/How_to_Hide_the_Sidebar --- */

/* adds a button that increases the content size and hides the rail */ function CreateContentResizeButton { var headerWidth = $('header#WikiaPageHeader.WikiaPageHeader details').width; var contentWidth = $('article#WikiaMainContent.WikiaMainContent').width; var catlinksWidth = $('div#catlinks.catlinks').width; if(contentWidth < 1000) { $('header#WikiaPageHeader.WikiaPageHeader details').css({"width": '980px'}); $('article#WikiaMainContent.WikiaMainContent').css({"width": '1000px'}); $('div#catlinks.catlinks').css({"width": '1000px'}); $('div#WikiaRail.WikiaRail').css({"display": 'none'}); $('section article header ul.wikia-menu-button').after('Compress'); $('section article header a.wikia-button').after('Compress'); $('section article header a.view-source').after('Compress'); if(wgCanonicalNamespace == 'User_blog') { $('section article div#WikiaUserPagesHeader a.wikia-button').after('Compress'); }	} }

addOnloadHook(CreateContentResizeButton); function ExpandContent(headerWidth, contentWidth, catlinksWidth) { $('header#WikiaPageHeader.WikiaPageHeader details').css({"width": '980px'}); $('article#WikiaMainContent.WikiaMainContent').css({"width": '1000px'}); $('div#catlinks.catlinks').css({"width": '1000px'}); $('div#WikiaRail.WikiaRail').css({"display": 'none'}); $('ul#resizeButton').replaceWith('<a onclick="CompressContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Restore the side rail.">Compress</a></ul>'); }

function CompressContent(headerWidth, contentWidth, catlinksWidth) { $('header#WikiaPageHeader.WikiaPageHeader details').css({"width": headerWidth}); $('article#WikiaMainContent.WikiaMainContent').css({"width": contentWidth}); $('div#catlinks.catlinks').css({"width": catlinksWidth}); $('div#WikiaRail.WikiaRail').css({"display": 'block'}); $('ul#resizeButton').replaceWith('<a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Hide the side rail.">Expand</a></ul>'); }

/* __NOINDEX__ */