User:GhostInTheMachine/Scripts

Scripts borrowed and stolen
I use various user scripts written by other people. See the notes in the page covering my common.js

Loading user scripts
Template Lusc = Load user script Also Js — uses the full URL, so it can load scripts from another wiki
 * This is the current way to load a user script which uses the newer mw.loader.load function
 * Migration guide re Iusc vs. Lusc
 * ResourceLoader/Core modules
 * mw.loader mw.loader
 * mw.loader-method-using load dependencies

Installing user scripts
Template Iusc = Install user script
 * This was the old way to import a user script which uses the importScript function
 * Do NOT use this — the importScript function will probably be deleted one day
 * The function was altered in August 2022 and is

JavaScript misc

 * jQuery API documentation
 * JavaScript mw.config — direct access to config variables currently works but is strongly discouraged
 * loading config variables — instead, load config variables via mw.config.get( 'wgUserEditCount')
 * User:SD0001/Making user scripts load faster — Enable caching for resource loads
 * Syntax highlighting

Gadgets

 * MediaWiki:Gadgets-definition &rArr; Special:Gadgets list of special gadgets users can enable