Jump to content

User:Anna Frodesiak/toolsfirst.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 14:09, 28 June 2015 (consistent caps in comments (lower case as this is for Monobook)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* This script moves the tools menu above the navigation menu, and moves the
 * search bar below the tools menu. This probably only makes sense if you are
 * using Monobook or another skin where these are all on the left-hand side.
 * To install it, add the following code to your common.js:

importScript('User:Anna Frodesiak/toolsfirst.js'); // Linkback: [[User:Anna Frodesiak/toolsfirst.js]]

*/

$( document ).ready( function () {
	$( '#p-tb' ).detach().insertBefore( '#p-navigation' );
	$( '#p-search' ).detach().insertAfter( '#p-tb' );
} );