User:Perey/common.js

mw.loader.load( '/w/index.php?title=User:Nardog/PlayAudioNow.js&action=raw&ctype=text/javascript' ); // Backlink: User:Nardog/PlayAudioNow.js mw.loader.load( '/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript' ); // Backlink: User:RedWarn/.js

/* Disallow hitting "enter" in the edit summary box to actually submit. * Source: https://en.wikipedia.org/wiki/Wikipedia:Teahouse/Questions/Archive_1165#When_writing_an_edit_summary,_is_there_a_way_to_stop_the_enter_key_generating_a_%22Publish%22? */ (function {	var submit_box = document.getElementById('wpSummary');	if (submit_box) {		submit_box.onkeypress = function(e) {			if (e.charCode === 13) {   			console.log('"Enter" to publish turned off. Use "Publish" button to publish.');   			e.preventDefault;			}		};	} });