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.
// See also vector.js

// ------------------------------------------------------------------
// ADDITIONS (don't know where they'll manifest)
// ------------------------------------------------------------------
importScript('User:Ohconfucius/script/EngvarB.js'); // [[User:Ohconfucius/script/EngvarB.js]]
importScript( 'User:Cumbril/RefConsolidate_start.js' );

importScript( 'User:Amorymeltzer/crathighlighter.js' ); // Backlink: [[User:Amorymeltzer/crathighlighter.js]]

// borrowed from [[:User:Amorymeltzer]]:
importScript("User:Amorymeltzer/userinfo.js");
// DOESN'T WORK -- importScript("User:Amorymeltzer/seventabs.js");

// -----------------------------------------------------
// ADDITIONS TO TOP MENU
// -----------------------------------------------------
// Customized version of User:Waldir/formatcitations.js
importScript("User:Lwarrenwiki/formatcitations.js");

// Auto-ed function
importScript('Wikipedia:AutoEd/complete.js');
// -----------------------------------------------------

// -----------------------------------------------------
// ADDITIONS TO LEFT SIDEBAR (TOOLBAR)
// -----------------------------------------------------
// Items that appear on both Read and Edit screens come first in the toolbar (after "Page Information"),
// in the order that they're added below:

// Add Checklinks launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://dispenser.homenet.org/~dispenser/cgi-bin/webchecklinks.py?page=" + mw.config.get('wgPageName'),
  "Checklinks"  // link label
)});
 
// Add Dab Solver launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",
  "http://dispenser.homenet.org/~dispenser/cgi-bin/dab_solver.py?page="+mw.config.get('wgContentLanguage')+":"+encodeURIComponent(mw.config.get('wgPageName')),
  "Dab Solver"
)});

// Tool to highlight duplicate links
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
// appears as "Highlight duplicate links"

// reFill (formerly Reflinks tool)
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
// appears as "reFill"

// Toolbar items that *only* appear on an Edit screen show up on the toolbar in a second group:
//
importScript('User:Lwarrenwiki/formatgeneral.js'); // custom version of [[User:Ohconfucius/script/formatgeneral.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // [[User:Ohconfucius/script/Common Terms.js]]
//importScript('User:Ohconfucius/script/flagcruft.js');
//importScript('User:Ohconfucius/script/Sources.js');
importScript('User:Lwarrenwiki/script/LWW mosnum dates.js');  // based on [[User:Ohconfucius/script/MOSNUM dates.js]]

// [[User:Dr pda/prosesize]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');

// -----------------------------------------------------

// -----------------------------------------------------
// ADDITION UNDER THE PAGE NAME
// -----------------------------------------------------
// XTools gadget (revision log, etc.)
// see http://meta.wikimedia.org/wiki/User:Hedonil/XTools
// already in global.js
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');

// -----------------------------------------------------
// ADDITION TO EDIT WINDOW
// -----------------------------------------------------
var SegregateRefsJsAllowConversion = true;
importScript("User:PleaseStand/segregate-refs.js");

// -----------------------------------------------------
// DEPRECATED
// -----------------------------------------------------
// importScript('User:Ohconfucius/script/EngvarB.js');
//     from [[User:Ohconfucius/script/EngvarB.js]]
// importScript('User:GregU/dashes.js');

// Deprecated 2019-05-24:
// added 2018-05-01, edit tool for the Hamiltrash vandal whack-a-mole game
// [[User:Lwarrenwiki/hamiltrash.js]] is a *customized* version of [[User:Kbh3rd/whackamole.js]]
// importScript('User:Lwarrenwiki/hamiltrash.js');