User:Monochromatic Bunny/wikia.js

/* Auto Refresh */ importScriptPage('AjaxRC/code.js', 'dev');

$(function { // Change contribute to Recent Changes  $('.WikiHeader div.buttons nav').replaceWith('  Recent Changes ');  // Add a hover-over edit button for the Wiki-navigation  $('edit ').prependTo('.WikiHeader nav');  if (typeof wgIsEditPage != "undefined") {    $('body').css('overflow','hidden');  } });

/* add a button that increases the content size and hides the rail */ function CreateContentResizeButton { var contentWidth = $('#WikiaMainContent').width; var catlinksWidth = $('#catlinks').width; var html = ' Expand '; if(contentWidth < 1000) { if($('#WikiHeader .wikia-menu-button').length > 0) {$('#WikiHeader .wikia-menu-button').after(html);} if($('#WikiHeader .wikia-button').length > 0) {$('#WikiHeader .wikia-button').after(html);} if($('#WikiHeader .view-source').length > 0) {$('#WikiHeader .view-source').after(html);} if(wgCanonicalNamespace == 'User_blog') {$('#WikiaUserPagesHeader .wikia-button').after(html);} } } addOnloadHook(CreateContentResizeButton); function ExpandContent(contentWidth, catlinksWidth) { document.getElementById('WikiaMainContent').style.width = '1000px'; document.getElementById('catlinks').style.width = '1000px'; document.getElementById('WikiaRail').style.display = 'none'; $('#resizeButton a').replaceWith(' Compress '); }

function CompressContent(contentWidth, catlinksWidth) { document.getElementById('WikiaMainContent').style.width = contentWidth; document.getElementById('catlinks').style.width = catlinksWidth; document.getElementById('WikiaRail').style.display = 'block'; $('#resizeButton a').replaceWith(' Expand '); }

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

importArticles({   type: "script",    articles: [        "w:c:dev:MarkForDeletion/code.js"    ] });