Jump to content

User:KJP1/vector.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
addOnloadHook(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + mw.config.get('wgPageName') 
   + "?client=script&citeweb=on&overwrite=&limit=30&lang=" + mw.config.get('wgContentLanguage'),
  "Reflinks"  // link label
)});
importScript( 'User:Enterprisey/draft-sorter.js' ); // Backlink: [[User:Enterprisey/draft-sorter.js]]