Earlier the bookmarklet from this project https://glitch.com/edit/#!/no-autorestart worked as intended, but now it’s stopped (Chrome v.68).
application.selectedFile(triggerFile) does not have time to switch to the
.trigger-rebuild before the replacement
application.editor().replaceRange() occurs, thus screwing up the current file.
A quick workaround is to wrap the replacement in
But I would like to know why this is happening.
I forgot to mention that your FAQ refers to this project, so it is worth noting that it should be corrected.