Jump to content

User:Anna Frodesiak/toolsfirst.js

From Wikipedia, the free encyclopedia
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().insertBefore( '#p-tb' );
} );