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);
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: