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 21:08, 20 January 2016. 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 )
		$("#p-cactions").remove()
		$("#ca-watch").appendTo( y )
		$("#ca-unwatch").appendTo( y )
		$("#ca-history").appendTo( y )
	}
})

jQuery( document ).ready( function( $ ) {
	var x=$("#editingold")
	if(x!==null) {
		y=$("#wpTextbox1")
		if(y!==null) {
			y.style.backgroundColor = "#665D1E";
		}
	}
})