BluePower
@Announ_ You can take a look at the examples page: https://perchance.org/examples or VioneT's Perchance Snippets page: https://perchance.org/perchance-snippets. Hope this helps!
@ELPHANEIEJGUY Add [window.navigation.reload()]
to the HTML or set it as a variable:
reload = [window.navigation.reload(), ""]
output
[reload]
If you want to make a button to do just that: \<button onclick="window.navigation.reload()"\>reload\</button\>
(remove the backslashes)
However, executing that will result in the preview state as if the code was unmodified, so you'll have to click on the "reload" button for the preview to reload with the modified code.
@perchance Update: I've modified the example, and apparently you can also change and modify the generatorName
in-generator! There is a button that does that, and added some script
elements (because scripts executed within square blocks will be always run after that)
@perchance I've tested that on this generator: https://perchance.org/yxhpifl77e#edit, where it shows up comments from my generator hub page instead of that one's generator.
Also, did any of you ever use the generatorName
variable at all?
@Alllo That's okay. For now, we're in with a few options, and then slowly get to support even more variations. Never seen a plugin like this before, especially if it uses the AI image generator and not some random stock image generator (like https://perchance.org/random-image-plugin).
@VioneT @Alllo If I had an account, I might also create my own community for discussions and updates about creating and building my generators, plugins and other stuff at Perchance, and also a place for people to maybe find some cool stuff about my generators there.