Jump to content

User:Equazcion/MoreEditButtons.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.
$('.editButtons').clone(true).insertBefore('#wpTextbox1').attr('class','editButtons2')
	.css('padding','5px').css('border','1px lightgray solid').css('background-color','#F0F0F0').css('margin','5px');
	
$('.editButtons').clone(true).insertAfter('#mw-previewheader').attr('class','editButtons3')
	.css('padding','5px').css('border','1px lightgray solid').css('background-color','#F0F0F0').css('margin','5px').find('span.editHelp').css('color','black')
	.parent().find('#wpPreview').attr('form','editform')
	.parent().find('#wpSave').attr('form','editform')
	.parent().find('#wpDiff').attr('form','editform'); 
	
$('#wpSummary').keydown(function(event){
	if (event.keyCode == 13) {
		$('form#editform').submit();
		return false;
	}
});