User:BlackThunder/global.js

//CSS overrides $('.WikiaSearch .wikia-button').attr('style', 'height: 25px !important;'); $('#wpSave').attr('style', 'height: 22px !important;'); $('.WikiaSearch input[type="text"], .WikiaSearch input[type="text"]:focus').attr('style', 'height: 16px !important;'); //Customizations var fdButtons = []; fdButtons[fdButtons.length] = { 'label': 'Delete' }; PurgeButtonText = 'Purge'; //Call scripts importArticles({   type: 'script',    articles: [        'u:wikimarks:Client.js',        'u:lordofultima:MediaWiki:FastDelete.js',        'u:dev:HideRail/code.js',        'u:dev:NoImageLightbox/code.js',        'w:c:dev:RevealAnonIP/code.js',        'u:lordofultima:MediaWiki:PurgeButton.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:MiniComplete/code.js',        'u:dev:HeaderLinks/code.js',    ] }); //Toggle Page Width by RyaNayR var tpwCSS = mw.util.addCSS('.WikiaHeader .page-width-container,.WikiaPage,.WikiaMainContentContainer{margin:0}.WikiaRail{display:none}body.skin-oasis>.global-notification,.WikiaHeader .page-width-container,.WikiaPage{max-width:100%;width:100%}'); function togglePageWidth { tpwCSS.disabled = !tpwCSS.disabled; } $('#WikiaBarWrapper .toolbar > .tools').append('Toggle Page Width'); togglePageWidth; /*** toggleAds ***/ var adsVisible = true; var hideAdsByDefault = true; $('.toolbar .tools').append(' Toggle Ads'); if (hideAdsByDefault) { hideAds; } function hideAds { $('.home-top-right-ads, .WikiaTopAds').hide; adsVisible = false; } function showAds { $('.home-top-right-ads, .WikiaTopAds').show; adsVisible = true; } function toggleAds { if (adsVisible){ hideAds; } else { showAds; } }