Removing an annoying cloud button in gui.js

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!

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()

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!

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 :slight_smile:

UPDATE: The issue is solved. Thanks to everyone, please close the topic.

Screenshot 2025-09-16 at 9.29.39 AM