Help - Search - Members - Calendar
Full Version: [Ext] Undo Closed Tabs Button
Neowin Forums > Help & Discussion Center > Software Discussion & Assistance > Web Browser Discussion > Firefox (Gecko)
Pages: 1, 2, 3
supernova_00
Undo Closed Tabs Button v3.5.1 - Works with Firefox 3.5 Beta 4 through 3.5.*

Undo Closed Tabs Button v3.6.0 - Works with Firefox 3.6a1pre (Current trunk)


Tired of going to History->Recently Closed Tabs just to undo a closed tab? Then this extension is for you! This extension allows you to undo closed tabs via a toolbar button and/or tab bar button. Click the image one time to undo the last closed tab...three times to open the last three closed tabs and so on. Click the drop down arrow to see the list of last previously closed tabs and select which one you would like to undo.

You can also undo closed tabs by using the CTRL + SHIFT + Z shortcut key and also a right-click context menu entry.

There is a options menu (Tools->Addons->Extensions), here you can edit the amount of closed tabs to remember, hide the history menu from the toolbar button, remove the right-click context menu entry or remove the tab bar button.

Important: You must add the button to the navigation toolbar by going to View->Toolbars->Customize, then drag and drop the button anywhere on the toolbar. The tab bar button is shown by default.

Changelog
  • Updated extension to work with Firefox 3.5
  • Fixed bug where the closed tabs and windows history menu was disabled in the History menu
  • General code cleanup

Download for Firefox 3.5: Undo Closed Tabs Button v3.5.1
Homepage: http://code.google.com/p/uctb/
Issues (Bugs): Issue Tracking on Google Code
Screenshots: Toolbar button | Tab bar button | Right-click context menu entry

FAQs, downloads, screenshots, bug tracker can all be found at the UCTB project homepage located at http://code.google.com/p/uctb/

Other releases:
Download for Firefox 3.6a1pre: Undo Closed Tabs Button v3.6.0
Download for Firefox 3.0: Undo Closed Tabs Button v3.0.3
Download for Firefox 2.0.0.*: Undo Closed Tabs Button v2.0.0
Salgoth
Quote - (supernova_00 @ Jul 31 2006, 04:30) [snapback]587748861[/snapback]

Undo Closed Tabs Button v1.0.0 - Works with Firefox 2.0b1, branch and trunk nightlies.

You have to copy and paste the download link (Damn, I thought the server had the user defined mime type for xpi installs)


Not sure what you mean about that last bit. I clicked the link and the install extension windows came right up.
Rogueosb
I'd download this, but I already have Tab Mix Plus which allows me to open closed tabs by clicking the middle mouse button on the tab bar. Nice to see you've made it standalone for those who do not want to download an extension like Tab Mix Plus smile.gif
supernova_00
Version 1.5.0 released!

1.5.0 Changelog
  • - Added drop down list of previously closed tabs; select exactly which closed tab you'd like to undo
IceDogg
Thanks, with the new change this is a great little extension. Should be built into Fx in my opinion, but at least someone fixed it.
supernova_00
No problem, it's little extensions like this that make firefox great!
IceDogg
I completely agree supernova_00.
supernova_00
I'm thinking of adding a preference that limits or expands the capacity in the history list in which number of tabs you can undo. So you can set it to show only the last tab closed or up to whatever number...Good idea?

EDIT: Firefox default is 10 just to let you guys know.
supernova_00
Version 1.5.1 Released!

Changelog:
  • Fixed linux bug where the icons would not show up
IceDogg
I think the pref for limits is a good idea. Memory is never a problem for me, but for ones that do get anal about their memory usage this could help them control it. But doesn't Fx have an over all pref for this?? would it be different from that one? Or would this be an easy way (options panel) to set that prefs?

Thanks for your efforts!
supernova_00
Fx does have one, i'm going to piggyback on that one..just an easier way then going to about:config and searching for the pref.

---
Should be getting new icons soon, i went with the first icons submitted to me because I wanted to release this extension quick.
IceDogg
In that case heck yea, why not. biggrin.gif

I thought there was one but wasn't for sure. Thanks for the fast reply.


EDIT: ps The Icon looks fine to me. What other ones are you considering?
pS-
ext doesnt work with my 1.5.0.6 version ''/
IceDogg
Quote - (pS- @ Aug 3 2006, 18:09) [snapback]587754693[/snapback]

ext doesnt work with my 1.5.0.6 version ''/

In the nightly versions there is a new tab restore feature that this extension is made for, so it's not going to work with early version because this feature isn't in those versions. but 2.0 beta 2 is coming soon.
supernova_00
pS-: heh first sentence states that this only works in 2.0b1 and above wink.gif

Thanks IceDogg for explaining in depth.
t0lerence
Quote - (pS- @ Aug 4 2006, 00:09) [snapback]587754693[/snapback]

ext doesnt work with my 1.5.0.6 version ''/


Oh well, will wait til theres a new version out...
supernova_00
Quote - (t0lerence @ Aug 3 2006, 20:25) [snapback]587754868[/snapback]

Oh well, will wait til theres a new version out...


You can always download the Firefox 2.0b1, its very stable.

Not sure if you was referring to a new version of my extension or firefox...but my extension will never support lower then 2.0b1.
supernova_00
Version 1.9.0 released!

Changelog
  • Added options so you can remove the history drop down list and change the number of closed tabs that Firefox remembers
  • New Icons!!!
  • Code cleanup
  • Added partial locales (Option window not localized yet): zh-TW, hr-HR, nl-NL, fr-FR, it-IT, pl-PL, pt-BR, ru-RU, and es-ES
IceDogg
I like the new icon much better!! Thanks
supernova_00
Yeah, it's a huge improvement and fits in with the new icons/theme.

----

Next release will incorporate a on right-click command that will bring up the history list...this is so that if you have the option set to hide the history drop down arrow, you can still get the list by right clicking smile.gif
supernova_00
Alrighty, next release so far will include: Right-click activates the history list when the drop down arrow is present and when the pref is set to hide the drop down arrow. Also you can now clear the close tab history.

Is there anything that you guys can think of that I should include?
IceDogg
This is only a thought as I have no idea how hard/possible this would be. Would it be possible to replace the tab icon on the far right (located in the tab bar) with yours instead? With your extensions that one is useless. IMHO or can it at least be hidden? Maybe some css or something. I use Stylish if that helps.
supernova_00
IceDogg: You know that button is there for tab overflow and not undoing closed tabs, correct? It shows all tabs that are open so you don't have to scroll if you have like 20 tabs open. But anyways here ya go

CODE
tabbrowser .tabs-alltabs-button { display: none !important; }
just put that in you userChrome.css file
IceDogg
Ok, I hadn't thought of that use for it, never have that many tabs open. But can your add your button to that bar or no? Thanks
supernova_00
It is possible but very hard (for me at least) to code. I will attempt to do this in the feature after I look at how the all tabs button is placed there.

EDIT: Actually after thinking about it, I won't. Any button on that toolbar is either there or it's not. Its not customizable.
IceDogg
Ok, fair enough. I had no idea if it was something that could be done or not. Thanks for the reply.
supernova_00
Well anything is possible...just not for me to do it. What I meant earlier is that could always set a pref to remove or show it on the tabbar. But to code that, is way above me.
supernova_00
Version 1.9.5 released

Changelog:
  • Added 'Clear Closed Tabs History' to the history list
  • Right click on the button now brings up the history, so you can now hide the drop down arrow in the options and still access the history list
  • Compressed all images (no loss of color) for smaller download size
  • Locales included: ar, en-US, es-ES, fa-IR, fr-FR, hr-HR, it-IT, nl-NL, pl-PL, pt-BR, and zh-TW
supernova_00
Updated version is now on addons.mozilla.org (AMO) now if for some reason you haven't installed because you don't feel safe unless the extension has been reviewed.

AMO link btw wow almost 8000 downloads already smile.gif
IceDogg
Yea, you have a great extension here supernova_00. I'm picky about which extensions I use, but this one is quickly becoming a must have for me. Nice work!
supernova_00
Grr seems like some change two nightlys ago broke my extension on branch and possibly trunk. But don't worry, it will still work for Firefox 2.0 beta 2 that will be released today smile.gif
Riz360
I'm not too sure I see the point of this extention as when you close a tab its listed first under the "Go" button in the toolbar. So if you accidently close a tab thats all you need to do: Go > click first entry
supernova_00
No, you would need to Go->Recently Closed Tabs, the first entry in the go menu is the address to the page, not save with all the information, scroll location and whatever info you entered in the page. This button all you do is click is once or three tabs to open either last tab or last three tabs respectively. Also can right click on button or click the drop down arrow to get a list of tabs you closed (same list as in go->recently closed tabs) although I added a 'Clear Closed Tabs History' function so you can clear them if you don't want other people to see these.
supernova_00
Version 1.9.6 released

Changelog
  • Code cleanup/repairs since it broke after 2.0b2 was released so this version only works with 2.0rc1 and above
  • Completely localized (Thanks translators!)
  • More locales added
  • Locales included: ar-AR, de-DE, en-GB, en-US, es-ES, fa-IR, fr-FR, hr-HR, it-IT, nl-NL, pl-PL, pt-BR, ru-RU, sk-SK and zh-TW
mdew
Just out of interest, why would you use this extension in Firefox 2.0? Is there an advantage of using this than using the built-in undo-close tab?
supernova_00
I'll quote my description
Quote - (supernova_00 @ Jul 31 2006, 05:30) [snapback]587748861[/snapback]
Tired of going to History->Recently Closed Tabs just to undo a closed tab? Then this extension is for you! This extension allows you to undo closed tabs via a toolbar button. Click the image one time to undo the last closed tab...three times to open the last three closed tabs and so on. Click the drop down arrow to see the list of last previously closed tabs and select which one you would like to undo. You must add the button by going to View->Toolbars->Customize, then drag and drop the button anywhere on the toolbar.


It short, this extension adds a toolbar button for a lot faster undoing of closed tabs. Also makes the number of closed tabs remembers configurable.
mail
How about a shortcut to make it even faster ? Cntrl + Alt + Z would be awsome wink.gif
supernova_00
Still thinking about it...trying to figure out a good shortcut key that isn't already occupied by any popular extension and also that isn't more work to hit then just moving to the button.
supernova_00
Just wanted to update everyone with what work is in progress (actually its all done already just need to release):
In progress for next release:
  • Updated sharper icons
  • Shortcut key (ALT/Option+Z)
  • Right-click context menu entry
supernova_00
btw any other suggestions for improvements/added functionality?
supernova_00
Very close to next release. Just awaiting localized versions. New features include right click context options to undo closed tabs and also a shortcut key (alt+z) to undo closed tabs. There is an option to remove the context entry option though. In the mean time download the latest and enjoy the new firefox 2.0 and this extension.
illicit
Quote - (supernova_00 @ Oct 23 2006, 09:51) [snapback]587980091[/snapback]

Very close to next release. Just awaiting localized versions. New features include right click context options to undo closed tabs and also a shortcut key (alt+z) to undo closed tabs. There is an option to remove the context entry option though. In the mean time download the latest and enjoy the new firefox 2.0 and this extension.


That sounds pretty good to me.

I am looking forward to the next release. smile.gif
12Iceman
Does anyone (supernova_00) know if there is a setting that can be changed in about:config to change the number of closed tabs that Firefox remembers or is the only way to change this via extension?
supernova_00
Only via my extension wink.gif J/k browser.sessionstore.max_tabs_undo

12Iceman
Quote - (supernova_00 @ Oct 24 2006, 03:52) [snapback]587982626[/snapback]

Only via my extension wink.gif J/k browser.sessionstore.max_tabs_undo


Thanks a lot, that worked!
ViperAFK
sweet, very helpful extension, just like the trash can feature in opera which i missed when i switched to 2.0
supernova_00
Version 2.0 released!

Changelog
  • Updated sharper icons
  • Hover effect on toolbar icon to fit the new theme <a href="http://img237.imageshack.us/img237/311/1tl4.png" target="_blank">http://img237.imageshack.us/img237/311/1tl4.png</a>
  • Shortcut key (ALT or OPTION + Z)
  • Right-click context menu entry to undo the last closed tab
  • Locales included: de-DE, en-GB, en-US, es-ES, fa-IR, fr-FR, hr-HR, it-IT, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ru-RU, sk-SK, zh-CN and zh-TW
supernova_00
Had to upload again. I forgot that a minVersion of 2.0.0.* would not install on 2.0 because 2.0.0.* is only supposed to be for maxVersion and I have a maxVersion for 3.0a1 since this also works on trunk.

Please try again if you had trouble earlier.
Quillz
Quote - (supernova_00 @ Oct 5 2006, 09:04) [snapback]587931637[/snapback]
btw any other suggestions for improvements/added functionality?

Is there any way to allow the button to be moved directly onto the tab bar? That would be a nice addition that I'd love to see added.
ViperAFK
Quote - (drygnfyre @ Oct 29 2006, 17:26) [snapback]587999035[/snapback]

Is there any way to allow the button to be moved directly onto the tab bar? That would be a nice addition that I'd love to see added.

+1
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.