Release For Spansh's Road 2 Riches: a script to remember Completed scans

A little while ago I started working on a Tampermonkey userscript for the browser to 'remember' Completed checkboxes on Spansh's Road 2 Riches. I completed it yesterday and figured I might as well post it. Please let me know if it's also appropriate to post in the main Elite discussion forum.

Check it out here: https://openuserjs.org/scripts/lyonhaert/spanshR2RMem

* It uses your browser's localstorage to remember, by planet name, which ones you've clicked Completed on.
* Handles the occasional R2R list that has duplicates of the same planet.
* Independent of the search or URL. You can return to a bookmarked route or do a new route and it should mark planets appropriately.
* Speculative code for when Spansh implements their own solution.

I'll maintain it for a little while in case anybody finds a bug (or has a really, *really* good suggestion... maybe), but it shouldn't need much care. Feel free to port it to a different userscript plugin if you prefer something other than Tampermonkey.

o7

Note: The script has been updated to handle if the domain doesn't have www as a subdomain. Both www.spansh.co.uk and spansh.co.uk will have separate localstorage in your browser for security reasons. Can't do anything about that. However because of how the site works, for now you'll need to refresh the page after doing a new R2R route search (while the address bar has the GUID and parameters in the URL). Returning to the URL of a route (such as if you bookmarked the results and clicked on the bookmark) will work fine. Improvements are on the to-do list for reacting to the dynamic changes of the site better.
 
Last edited:
Back
Top Bottom