codefisher / toolbar_buttons

Toolbar Buttons extension for Firefox and Thunderbird
https://codefisher.org/toolbar_button/
Other
28 stars 1 forks source link

Copy Tab URL from Close Tab History Button menu #7

Open PeterJCLaw opened 7 years ago

PeterJCLaw commented 7 years ago

Thanks for your work on these buttons, they're making it much easier to move to a world without Tab Mix Plus!

One of the features I really liked (and used a surprising amount) from Tab Mix Plus was the ability to copy the URL of a previously closed tab. Tab Mix Plus offered this via a custom context menu on top of the history menu that the Tab Mix Plus undo close tab button offered, which also included things like removing the entry from the list and bookmarking the url:

tab-mix-plus

I'm not set on this being a context menu action, though I'm not sure how else it could be offered.

Is this functionality something you'd consider adding?

While I've not built an extension before I'd be up for trying to implement this if you could point me at the right place in the source code. (I had a quick look and the current sources seemed to be XUL based, yet the published extension seems to be a WebExtension so I'm not sure I found the right place)

codefisher commented 7 years ago

The sources are a mix of XUL and WebExtension, I use a compile switch to decide what version I want. It would be something I would consider. When I wrote the extension the only two functions were to get the session data and to restore a tab. That has been expanding since, these could be added now. Certainly interested as this extension has proven to be rather popular. Problem is UI. You can't make custom context menu like that, it would have to have all the stupid default menu items as well. I would have to do something like an expand button next to the menu items that allows for this.