What's new

Custom menu item

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sparky3387

New Around Here
Im trying to add a custom page to my merlin box, but am having troubles adding a new menu item.

I can see that the Astrill VPN applet does this task, and adds all the neccessary content to state.js, just wondering how to do this as well.

Thanks heaps in advance!

For anyone else that needs this, its actually not that complicated:

1. Copy /www/state.js to somewhere
2. mount --bind -t tmpfs tmpfs /somewhere/state.js /www/state.js
3. Edit lines like below

var x = menuL1_link.pop();
menuL1_link.push("link.asp",x);
x = menuL1_title.pop();
menuL1_title.push("Links Name",x);

show_banner(L3);
 
Last edited:

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top