Disclaimer: The following is an
example of how it could be done using Powershell v3+.
It has no error checking, >>> no support <<<.Purely done to give someone else an idea and because I needed the mental exercise.It uses information and script from:
Get list of open tabsRemove illegal charactersCreating Desktop shortcutsIt will create a folder called
Tabs-yyyymmddhhmmss on the Desktop, it will create shortcuts using the first 15 (if possible) characters of the page title plus a random number between 1 and 1000, eg.
All Unread Topi_44.url purely as a simple method to try and avoid name collision.
It's been tested on Firefox 40.0.2 and will probably work on other Mozilla based browsers
providing you point it to the equivalent JSON file and it's object order is the same, (otherwise just edit the object references).
NOTE: The creation/updating of the session file, (recovery.js), lags a little behind what you see in the browser, (up to about 30 seconds or so).
Tested with portable browsers.It requires Powershell v3.0+It can be run using the
icon or from the CLI:
powershell.exe -noprofile -executionpolicy bypass -File "<path to>\JSON2Shortcut.ps1"DO NOT forget to edit the icon properties if it's not in the same folder as the Powershell script.
BIGGER DISCLAIMER: It worked on my system, it's guaranteed you'll say it doesn't work on yours. Reread the first line.
Updated, see this
post - now outputs to shortcuts and/or text file.