Feature request or howto/tip request - no idea how to define this
Seeing as I have four modems, at times I keep having to edit the url at the top address line in my web browser, which is Safari iPadOS btw, in order to flick between the modems when I want to compare results. This is really fiddly and annoying.
Can anyone suggest an easy way of doing this? Or else design a way of adding an assistive feature into the UI so that this can be made into a feature request for a new software release? I have no idea how to do this and it’s cheeky asking a lot of our friend Johnson and the rest of you?
The only think I can think of would be a list of urls which you include in a config file somewhere, somehow. The list of urls for me would be something like
http://m1.csw.me.uk:8000/*
http://m2.csw.me.uk:8000/*
http://m3.csw.me.uk:8000/*
http://m4.csw.me.uk:8000/*
The current page url might be something like
http://m1.csw.me.uk:8000/#Stats for modem 1, say,
and the * denotes a part of the current url that is taken from the corresponding part of the current page; ie it’s common to an old page and a new page when changing from one modem to another. That part is initially null; if not then we would need to enhance this syntax.
The list’s entry count tells us how many modems there are.
The domain name I quoted is just a convenient alias for 192.168.
x.1 for each modem and a literal IP address could be used instead.
The UI might be something like a load of links in a horizontal menu on the right of the menu strip at the top, the links being named m1 m2 m3 m4 etc, next to where it currently says "full"/"used" and "lin"/"log". An alternative UI might be a floating or drop-down vertical menu.
Possible syntax simplification,
no * : It might be that you can just forget the * markers and assume that the current url is always longer than the current list entry and you compare the final part of the two, so for example the current list entry might be
current list entry =
http://m1.csw.me.uk:8000/ and the
current url =
http://m1.csw.me.uk:8000/#StatsSo the difference calculated,
final = "#Stats" gives you the extra amount of text that needs to be added to transform a url for one page into that for another modem. You obtain this by reverse-comparing two strings, backwards from the end. Does that work ?
Example: So if you want to go from the current url above, which is for modem 1, to modem 3 say, and the current per-modem list entry is as above, then :
list entry for new modem = "
http://m3.csw.me.uk:8000/"
dest url for new modem = "
http://m3.csw.me.uk:8000/" +
final = "
http://m3.csw.me.uk:8000/#Stats"
To switch from one modem to another, the user can either click on one of the m1 m2 m3 links, or use forward/ backwards or edit or type in a url or goodness knows what. It’s only in the case of clicking on the n1 m2 etc links that we need to do the calculation of new dest url based on current url and other arguments.
I have absolutely no idea about how to write the code; my javascript isn’t at all up to it and I haven’t done any in 15 years.
I really don’t know how to include the list in the config. That’s somewhere else that I’m stuck.