MediaWiki:Gadget-DebugMode.js

/* MediaWiki:Gadget-DebugMode.js * * Add a toolbox link to reload the current page with debug mode enabled */

$( => { mw.util.addPortletLink( 'p-tb', location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'debug=true', 'Debug mode', 't-debugmode', 'Reload the current page with debug mode enabled' ); });