User:SirMadHatter/oasis.js

var autoCollapse = 50;

// Restores monaco's edit link style // Uses CSS from above $('.editsection a:last-child').before('[').after(']').text('Edit');

// Removes everything from the header bar between the Wikia // logo and you're User Name/Log out section. $('.WikiaHeader nav > ul > li + li').remove;

// Appends the #mysearch ID to slide the search bar into. $('.WikiaHeader nav > ul').append($(' ').hide);

// Makes sure the page is loaded before moving items around $(document).ready(function { // Changes Wikia Activity to Recent Changes at the top.  $('a[data-id="wikiactivity"]').attr({title:'Recent Changes',href:'/wiki/Special:RecentChanges'}).html('Recent Changes');

// Same as above, but clones it to be placed in the footer // bar next to MyTools so it's always visible on the page. // Only use one of these lines based on preference. $('a[data-id="wikiactivity"]').attr({title:'Recent Changes',href:'/wiki/Special:RecentChanges'}).html('Recent Changes').clone.prependTo('ul.tools').wrap('').removeClass('wikia-button secondary');

// If you chose to clone the RC to the footer, this moves // the MyTools popup menu to the right like it should be. $('.my-tools-menu').css('right','140px');

// Changes 'Followed pages' link to 'Watchlist' $('.tabs > li > a[title="Special:Following"]').attr({href:'/wiki/Special:Watchlist',title:'The list of pages you are monitoring for changes [l]',accesskey:'l'}).text('Watchlist');

// Changes 'Edit Profile' to 'Edit' (this isn't FaceBook!) $('a[data-id="editprofile"]').html('Edit');

// The next few lines checks if the page has a search bar // and moves it into the header. if ($('form#WikiaSearch').length) { $('form#WikiaSearch').appendTo('#mysearch').attr('style','padding-left:15px; margin-top:-3px').show; $('#mysearch').show; } // These two lines add the .mysearch and .mysearchbutton // classes to their respective elements for further styling // of them in your CSS. $('#WikiaSearch input:first').addClass('mysearch'); $('#WikiaSearch button').addClass('mysearchbutton'); });