Hi, I am attempting to create my first Safari extension and a bit overwhelmed and confused. I want my extension to show a menu when the toolbar icon is pressed. Initially this menu will only have a "save" option, which when pressed will store the URLs of all of the tabs in that active window. The idea of this is that when you are researching a topic and have a window open with several tabs and you know that you wont be coming back to them for a few days, this extension will save all of those tabs and you can then restore that entire window (with all of its tabs) in a few days time.
Trouble is, I don't know how to store the information. I would use the browserWindow.tabs array but I don't know where to store it. Do I need to use HTML local storage? Or do I allocate storage in a script in the global file? Once this information is stored, I will make it add an entry to the toolbar menu. Whent his entry is selected, the window and tabs will be restored.
Any tips would be appreciated.
Trouble is, I don't know how to store the information. I would use the browserWindow.tabs array but I don't know where to store it. Do I need to use HTML local storage? Or do I allocate storage in a script in the global file? Once this information is stored, I will make it add an entry to the toolbar menu. Whent his entry is selected, the window and tabs will be restored.
Any tips would be appreciated.