Board Thread:Support Requests - Getting Technical/@comment-24553580-20190916180029/@comment-9605025-20190916215546

There are easier ways of doing it; even if you insist on using JS.

First, I would like to pitch you an idea that doesn't require using custom JS. Using the RandomSelection extension (which I believe is what you were referring to in your reply), you can create a template that randomly displays a version of the navigation template. For example, Template:RotatingMainNavigation: This would rotate randomly between pre-defined sets. Right now, it looks like your template handles 4 at a time.

If you want to mix-and-match the individual links in the navbox, you could just use JS to randomly select which ones to hide rather than trying to insert them using JS.