Novem Linguae's Wikipedia user scripts. A user script is custom JavaScript that a logged in Wikipedia user can install, and that JS will then run on every Wikipedia page they visit. The main use case is tools for power users.
My list of user scripts onwiki is located at https://en.wikipedia.org/wiki/User:Novem_Linguae/Templates/Scripts. Please visit this page to see a description of each user script, and the # of users that have installed it.
User scripts in the root directory as standalone files are simple and just use that one file.
User scripts in folders are more complex scripts usually spanning multiple files, have unit tests, and have a deploy script. These tools are all located in the folder. There may also be PHP or browser tools related to the user script.
- Install the linter by running
npm updatefrom the root directory. The linter is run in CI and should always be passing before merging to the master branch. We use MediaWiki's JavaScript linting rules, with some turned off.
- Install unit tests by running
npm updatein applicable subdirectories. Then run the tests withnpm test. Unit tests are run in CI and should always be passing before merging to the master branch. - To run the shared deploy script tests, install dependencies and run
npm testin thedeploy-scriptfolder.
- For single file user scripts in the root directory, just copy paste them onwiki.
- For folders with a
deploy.js, copy that folder'sdeploy.config.example.jsontodeploy.config.jsonand configure a bot password. Runnpm run deployfrom the folder and enter an edit summary when prompted. Node.js 20 or newer is required. - Set
ESBUILD_BUNDLEtotruewhenMAIN_FILE_PATHpoints to an existing esbuild bundle. In that mode the publisher uses the bundle as-is instead of combining the classes folder and main file. As of 2026, this is only applicable for GANReviewTool.
Issues and pull requests are both accepted. Feel free to create some.