Jump to content

User:Qwerfjkl/scripts/reflinks.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.
// Add [[WP:Reflinks]] launcher in the toolbox on left
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).then(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://69.142.160.183/~dispenser/cgi-bin/reflinks.py?lang=" + mw.config.get('wgContentLanguage')
  + "&page=" + mw.config.get('wgPageName') + "&autoclick=wpPreview", // updated tool URL as of 27 December 2020
  "Reflinks"  // link label
)});