MediaWiki:RCKey.js

/** * @module     RCKey * @description Restores broken G + R keyboard shortcut * @author     Railfail536 * @license    CC-BY-SA 3.0 */ $(function {	if ( window.RCKeyLoaded || mw.config.get('wgCanonicalSpecialPageName') === 'Recentchanges' ) { return; }	window.RCKeyLoaded = true;

var keys = {}; $(document).on('keydown', function(e) {		keys[e.which] = true;

if (keys[71] && keys[82]) { location.replace(				mw.util.getUrl('Special:RecentChanges')			); }	}).on('keyup', function(e) { keys[e.which] = false; }); });