User:Amorymeltzer/historyButtonLinks.js

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.
// Make the buttons on history pages act as links that you can click and open
// in a new tab.  Simply removes the click event, which apparently makes them
// nice links again. See also [[User:Mattflaschen/Compare link.js]].

if (mw.config.get('wgAction') === 'history') {
	// Compare link
	$('input.historysubmit').on('click', function(e) {
		e.stopImmediatePropagation();
	});
	// Sysop links
	$('button.historysubmit').on('click', function(e) {
		e.stopImmediatePropagation();
	});
}