Right now some scripts only work on the published app which may be why it looks like it’s not working.
We’re working on an update so you can run scripts inside the WeWeb editor. In the meantime, I believe @raydeck has a workaround referenced here.
Let me know if that works for you.