MediaWiki:Gadget-ShowMessageNames.js

From Festipedia, hosted by the FR Heritage Group
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:Wikipedia:Bypass your cache.
/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * |_____________________________________________________________________________|
 *
 * Create a toolbox link to show the page with messages from the user interface substituted with their names
 * Revision: 1.0
 * Author: Edokter
 */
 
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-tb',
    location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'uselang=qqx',
    'Message names',
    't-messagenames',
    'Display the current page with MediaWiki message names replacing their text'
  );
});