Wikiploy is a tool for deploying user scripts and gadgets for Wikipedia (and other wikis based on MediaWiki). With this tool, you can deploy your JS, CSS, etc. from a git repository to any number of wikis with a single click.
The tool utilizes Puppeteer to control Chrome Canary (it also works with MS Edge). 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 edits are still your edits. In standard use cases you also don't need a special bot flag or anything like that.