Jump to content

User:Cenarium/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cenarium (talk | contribs) at 23:38, 6 September 2015. 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.
// moving extra tabs in plain sight and reordering
jQuery( document ).ready( function( $ ) {
var x=$("#ca-move,#ca-delete,#ca-protect,#ca-unprotect")
var y=$("#p-views ul")

if(x!==null) {
 x.wrapInner('<span>')
 $("#ca-move").appendTo( y )
 $("#ca-protect").appendTo( y )
 $("#ca-unprotect").appendTo( y )
 $("#ca-delete").appendTo( y )
 document.getElementById("p-cactions").parentNode.removeChild(document.getElementById("p-cactions"));}
 $("#ca-watch").appendTo( y )
 $("#ca-unwatch").appendTo( y )
 $("#ca-history").appendTo( y )
})