Hey there!
As you might know, and after a long time, I am back to developing Jcode (got busy when school started)
I seem to have a little problem in removing the cloud button in Snap!. I know gui.js is a good place to start but I just cannot locate where the button’s code is stored, so I can’t remove it
Because I don’t have cloud functionality, this is a big issue to me. I see other people have done it in their mods, but I don’t know how.
I am on the development version of Snap!, latest one from Github.
Thanks for the help!
bh
September 15, 2025, 11:10pm
2
Brians-MBP-3.Home% cd src
Brians-MBP-3.Home% grep cloudButton *.js
gui.js: myself.controlBar.cloudButton.refresh();
gui.js: cloudButton,
gui.js: // cloudButton
gui.js: cloudButton = button;
gui.js: this.controlBar.add(cloudButton);
gui.js: this.controlBar.cloudButton = cloudButton; // for menu positioning & refresh
gui.js: cloudButton.hide();
gui.js: cloudButton.setCenter(myself.controlBar.center());
gui.js: cloudButton.setRight(settingsButton.left() - padding);
gui.js: projectButton.setRight(cloudButton.left() - padding);
gui.js: pos = this.controlBar.cloudButton.bottomLeft(),
gui.js: this.controlBar.cloudButton,
gui.js: this.controlBar.cloudButton.refresh();
gui.js: this.controlBar.cloudButton.refresh();
gui.js: this.controlBar.cloudButton.refresh();
gui.js: () => this.controlBar.cloudButton.refresh(),
gui.js: () => this.controlBar.cloudButton.refresh()
jens
September 15, 2025, 11:13pm
3
The official way is to use the `noCloud` key in the configuration dictionary: Snap/docs/API.md at master · jmoenig/Snap · GitHub
I’m not really embedding Snap! (or in my case, Jcode) in a iFrame, I just want to remove the functionality from the actual program by default.
So I mean, where’s the actual var in the JS for that?
Thanks!
jens
September 16, 2025, 1:44pm
6
Your question tells me that you did not read the documentation which I referred you to. Please read it.
Ohhh sorry! lol, at the time I could not find the docs. Thanks for the help
UPDATE: The issue is solved. Thanks to everyone, please close the topic.