Jump to content

User:JMF/common.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.
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:John Maynard Friedman/common.js'); // Backlink: [[User:John Maynard Friedman/common.js]]
/* Disallow hitting "enter" in the edit summary box to actually submit. */
(function() {
	var submit_box = document.getElementById('wpSummary');
	if (submit_box) {
		submit_box.onkeypress = function(e) {
			if (e.charCode === 13) {
    			alert('Customized behaviour; "enter" to publish turned off. Use "Publish" button to publish.');
    			e.preventDefault();
			}
		};
	}
})();
importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: [[User:Trappist the monk/HarvErrors.js]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // [[User:Ohconfucius/script/MOSNUM dates.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/RefRenamer.js&action=raw&ctype=text/javascript');
importScript('User:Evad37/OneClickArchiver.js');
mw.loader.load('/w/index.php?title=User:BrandonXLF/ReferenceExpander.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/ReferenceExpander.js]]
importScript('User:Cacycle/wikEd.js'); // Backlink: [[User:Cacycle/wikEd.js]]