I'm using the AJS.toInit function as described here to edit the contents of the navigation bar in confluence server.
Hiding Items
I've tried setting the display = "none"or class = "hidden" and those work fine.
The issue is that when the window is resized to be much smaller, the navigation items are collapsed down to a "More" dropdown menu and my once hidden links show up there.
How can i permanently remove the items?
Adding Items
Similarly, any additional links I add show up fine, but do not get collapsed into the "More" menu as the default ones do.