Wikipedia:Wikiploy
Wikiploy is a tool for deploying user scripts and gadgets for Wikipedia (and other wikis based on MediaWiki). With this tool, you can easily deploy your JS, CSS, etc. With just a single keystroke you can deploy from a git repository to as many wikis as you need.
The tool uses Puppeteer to control e.g. Chrome Canary. Simply open Chrome with the remote debugging parameter and run the script. The idea is that you are logged into this Chrome instance, so all changes are still your changes.
Wikiploy should work with other Chromium-based browsers. It has been tested and works with MS Edge: Instructions for enabling remote debugging in MS Edge.
Note that Wikiploy's default site is pl.wiki. So to deploy to en.wiki use something like this:
const ployBot = new Wikiploy();
ployBot.site = "en.wikipedia.org";
See more info in the wikiploy rollout example.
See also
edit- Wikipedia:Wiki-to-Git - Wiki2git can be used to move your gadget code from Wikipedia to GitHub.
External links
edit- github: Wikiploy - source code, official place to submit ideas and report bugs.
- Examples:
- github: wikiploy rollout example - example project with script deployment and instructions (including a discussion of the sample code).
- github: veAutocorrect - practical example of using Wikiploy for multiple deployments.
- github: wiki-pendingChangesHelper - example of integrating a builder script with Wikiploy (the builder is used to prepare both a gadget and a TamperMonkey user script).
- github: wiki-global-scripts - building a personal global.css from Less.
- npm: wikiploy - official package in the NPM repository.