For security reasons, Tampermonkey scripts are not saved in accessible files, but in a plugin data. The only way to edit them live is to use Tampermonkey's integrated editor.
However, I'd rather use IDE, with all it's features. I also want to use webpack to pack the script from multiple files.
To do that, I need a way to programmatically change the script in Tampermonkey to a new version. So far, what I did was manually copy&paste the new script into Tampermonkey's editor and that's really exhausting.
So how to programmatically change Tampermonkey's script sourcecode?