GithubHelp home page GithubHelp logo

m-reimer / undoclosetab Goto Github PK

View Code? Open in Web Editor NEW
88.0 8.0 17.0 146 KB

Undo Close Tab Add-on for Firefox

License: GNU General Public License v3.0

Makefile 4.95% JavaScript 85.88% HTML 8.16% CSS 1.01%
firefox-addon webextension

undoclosetab's Introduction

Undo Close Tab

Note 1: You may run in a Firefox bug which renders Undo Close Tab unusable. If this happens to you, you can follow the following instructions to revive the Addon: How to fix broken browser session

Note 2: The default setting in Firefox is to only store information for a maximum of 10 closed tabs. If you want to reach the maximum of 25 tabs, which is a limitation of the WebExtensions API, then you have to increase the value of the browser.sessionstore.max_tabs_undo preference via about:config.


Main repository: https://github.com/M-Reimer/undoclosetab.

AMO: https://addons.mozilla.org/firefox/addon/undoclosetabbutton/

Localization: https://lusito.github.io/web-ext-translator/?gh=https://github.com/M-Reimer/undoclosetab/

Hacking: Do a temporary install.

Building: make

undoclosetab's People

Contributors

caglarkoksal avatar dannycolin avatar efi99 avatar gitoffthelawn avatar m-reimer avatar mathnerd314 avatar sopor avatar wwj402 avatar yfdyh000 avatar zhtw2013 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

undoclosetab's Issues

[Feature Suggestion] Increase the entry limit (six) on the last closed tab history pop-up

There are two more functional "undo close tab" add-ons on AMO and both have more than six entries on their respective closed tab history pop-up.

I am not a coder myself, so I do not know how hard, if ever, to implement this feature. However, I think your add-on is superior to both in terms of functionality and design, so if this is not possible, no worries. Cheers.

Updated translations for 'zh-CN': Chinese (中文 (Zhōngwén), 汉语, 漢語), China

Your translation have been copied to your clipboard. Paste it here:

Updated translations for 'zh-CN': Chinese (中文 (Zhōngwén), 汉语, 漢語), China:

{
    "extensionName": {
        "message": "找回已关闭的标签页",
        "description": "Name of the extension. Also used for the toolbar button tooltip and for the page/tab context menu item for direct tab restore.",
        "hash": "64c3b70943ee77066e4d90550f73fe60"
    },
    "extensionDescription": {
        "message": "重新打开最后关闭的标签页。",
        "description": "Description of the extension.",
        "hash": "feb53325fd2a69298e4ac7433611fba1"
    },
    "more_entries_menu": {
        "message": "更多项",
        "description": "Last menu on Context menus of the browser action, as the top-level menu cannot exceed 6 items.",
        "hash": "7bebf8ccc20f23b1faccdca5629a9d1a"
    },
    "clearlist_menuitem": {
        "message": "清除列表",
        "description": "Label for the menuitem for clearing the list of closed tabs",
        "hash": "17927f5c3d0eab2022d1a91b106b48c0"
    },
    "page_contextmenu_submenu": {
        "message": "找回已关闭的标签页",
        "description": "The label used for the submenu added to the page/tab context menu (the one with the recently closed tab list). Please use the same string as in 'extensionName' whenever possible!",
        "hash": "64c3b70943ee77066e4d90550f73fe60"
    },
    "contextmenus_headline": {
        "message": "上下文菜单",
        "description": "Headline for context menu options in options page",
        "hash": "c865d765c4c6a4157de8336fad083f8e"
    },
    "menuitem_number_label": {
        "message": "菜单中显示多少个已关闭的标签页:",
        "description": "Closed tabs number on context menu items.",
        "hash": "8f71ac4eebcd5ee918321c62d55fcf19"
    },
    "numberText_title": {
        "message": "显示多少个已关闭的标签页,范围 1 - $1",
        "description": "tooltip on number input box.",
        "placeholders": {
            "maxResults": { "content": "$1", "example": "25" }
        },
        "hash": "40a445627cbea0310e6fdc25944a2096"
    },
    "onlycurrent_label": {
        "message": "只列出当前窗口中关闭的标签页",
        "description": "Label on checkbox for filtering menu items to current window",
        "hash": "ff97d8d8b39692e9b010ebe354777c89"
    },
    "menuitem_clearlist_label": {
        "message": "显示清除上次关闭的标签页列表的菜单项",
        "description": "Label on checkbox for enabling the 'Clear List' menu item",
        "hash": "428404052dc9c9462e0ec760aa91912a"
    },
    "menus_headline": {
        "message": "附加菜单",
        "description": "Headline for additional menu checkboxes in options page",
        "hash": "d2d0134f4d85db563973c1ad1a0d9831"
    },
    "menu_tab_label": {
        "message": "在标签栏的右键菜单中显示为子菜单",
        "description": "Label on checkbox to enable submenu in tab bar context menu",
        "hash": "0031523137f27c650862f888395e599d"
    },
    "menu_page_label": {
        "message": "在页面的右键菜单中显示为子菜单",
        "description": "Label on checkbox to enable submenu in page context menu",
        "hash": "03b779fff222918a5f544314ffd07f0e"
    },
    "menuitem_page_label": {
        "message": "在页面的右键菜单中显示为菜单项",
        "description": "Label on checkbox to enable menuitem in page context menu",
        "hash": "520d2256897061311967e99b19d75764"
    },

    "__WET_LOCALE__": { "message": "zh-CN" }
}

Select which click to open menu

When I use your addon i must open the menu with right click. Would be nice to choose how to open the menu, right or left click.

Strange problem

I've been having an strange issue were in my profile and on wife's profile the undo closed tab button list of closed tabs is blank and this is not only with your addon I tested simmilar addons and It does the same. I'm on firefox beta and my wife is on release. I tested on a clean profile and it works but I also tested disabling all the addons but the undo closed tab ones and they still give the same error. I also tested using a new profile with the pref.js file from my everyday profile and it works. So any idea of what could be causing this?

Icon for dark theme

Please add a light version of the icon for the dark browser theme. I have chosen the Compact Dark theme and the extension button is very poorly visible
image

Extension appears to be broken in 63.0.1

Undo Close Tab is completely nonfunctional as of a new Firefox update (63.0.1) that I automatically got this morning. Left-clicking on the toolbar icon does nothing at all, and right-clicking brings up the general "Manage Extension" menu from right-clicking on pretty much any extension. Any idea what may have happened?

The Undo Tab Button no longer works

In fact it doesn't do anything at all.

I am using the latest version of Firefox to date (67.0.4) [21/06/2019]

I tried uninstalling/reinstalling but the button still doesn't do anything.

Not Working on FF66.0.3 on Mac 10.11

Hi @githubNikK
Seems like you are new to github. I'm moving your Issue, you accidentally created as commit to a fork, to here.

Hi Guys, I recently DL'd UCT, and although all the reviews are great, for some reason, it is not working. Ihave tried it over the last ffew days and my last tab closed does not re-open. Any assistance would be greatly appreciated. I am working on Mac 10.11.6 on FF66.0.3. All updated. Let me know further. Cheers.

Allow to have more than 25 items in the "recently closed tab list" in context menu.

Even I have the 25 limit on closed tabs, the extension just remember the 10 latest closed tabs.
I would love to the extension to remember not just 25, but unlimited (or lets say at least the latest 100 closed tabs).
Undo closing tab with default firefox behavior (e.g.: Ctrl + Shift + T) works just as expected, and I can restore all the tabs since the last launch of the browser.
I disabled all other addons to see if any of them was interfering. No luck
OS: Arch Linux
Firefox: All versions since 57+

Addon re-opens random tabs periodically

Periodically, attempting to undo a closed tab will undo the wrong closed tab. I have had instances of it re-opening a tab that I know I last closed several days ago, with hundreds of tabs opened and closed since then. I've had it re-open an entire window when I only asked it to undo a tab closing. It sometimes re-opens a tab in a different window, despite the option to only show tabs closed in the current window being set, which means I shouldn't even be able to reference the tab to re-open it. Most frequently, it will just re-open a random tab out of the last few dozen that I've closed.

I cannot reproduce this on demand. It just happens sporadically.

Currently using latest Nightly of Firefox (v58, Oct 13). This behavior has been going on ever since I started using this addon (v57, when Undo Closed Tabs Button addon stopped working).

Icon color is the same for all windows, even if they have different themes

I use the extension Private Browsing Theme to distinguish the private windows from the normal ones by applying a dark theme to the private windows only.
Undo Close Tab extension set the icon color according to the last opened window, so if I use both normal and private windows at the same time, on one of them the icon won't be visible, as the normal windows has a light theme and the private windows a dark theme.
My suggestion is to set the icon color per window and not for all windows.

Icons not properly visible on some static themes

I did some tries with several themes on AMO and with some of the them the icon is difficult to see.

There seems to be a difference between the original icons and the icon I use.

Seems like Mozilla either doesn't make their icons 80% opaque or they switch to 100% opacity for some themes.

Will investigate this further, but it seems like the easiest fix is to make my icon 100% opaque, too.

[ideas] Advanced features and options

  • Menu: Restore all (shown), Restore given a number of tabs.
    The given number can be input with prompt on page (FYI: yfdyh000/Search-Site-WE@bd9d58c), but this may be involved if the user switches to other tabs, many contingency strategies can be choose.

  • "Only this window" can as an option in the (sub-)menu or options page.

  • Serial number on menus. Customizable format for label in options.

  • Options for one clickable "Undo" menu in tab / page context menu. See also #10.

Ability to undo close window

While the extension is called "Undo close tab", it would be great if there was an additional submenu with recently closed windows.
This would give it all the features of the similar button of Session Saver.

Updated translations for 'ja': Japanese (日本語 (にほんご))

Your translation have been copied to your clipboard. Paste it here:
{
"extensionName": {
"message": "Undo Close Tab",
"description": "Name of the extension. Also used for the toolbar button tooltip and for the page/tab context menu item for direct tab restore."
},
"extensionDescription": {
"message": "最後に閉じたタブを再度開きます。",
"description": "Description of the extension."
},
"more_entries_menu": {
"message": "その他のエントリー",
"description": "Last menu on Context menus of the browser action, as the top-level menu cannot exceed 6 items."
},
"clearlist_menuitem": {
"message": "リストをクリアする",
"description": "閉じたタブのリストをクリアするためのメニューアイテムのラベル"
},
"page_contextmenu_submenu": {
"message": "Undo Close Tab",
"description": "The label used for the submenu added to the page/tab context menu (the one with the recently closed tab list). Please use the same string as in 'extensionName' whenever possible!"
},
"contextmenus_headline": {
"message": "コンテキストメニュー",
"description": "Headline for context menu options in options page"
},
"menuitem_number_label": {
"message": "閉じたタブメニューに表示されるアイテムの数:",
"description": "Closed tabs number on context menu items."
},
"numberText_title": {
"message": "コンテキストメニューの閉じたタブ番号、範囲は 1 - $1",
"description": "tooltip on number input box.",
"placeholders": {
"maxResults": { "content": "$1", "example": "25" }
}
},
"onlycurrent_label": {
"message": "現在のウィンドウで閉じられたタブのみをリストする",
"description": "Label on checkbox for filtering menu items to current window"
},
"menuitem_clearlist_label": {
"message": "最後に閉じたタブリストをクリアするためのメニュー項目を表示する",
"description": "Label on checkbox for enabling the 'Clear List' menu item"
},
"menus_headline": {
"message": "追加メニュー",
"description": "Headline for additional menu checkboxes in options page"
},
"menu_tab_label": {
"message": "「タブバー」コンテキストメニューのサブメニュー",
"description": "Label on checkbox to enable submenu in tab bar context menu"
},
"menu_page_label": {
"message": "「ページ」コンテキストメニューのサブメニュー",
"description": "Label on checkbox to enable submenu in page context menu"
},
"menuitem_page_label": {
"message": "「ページ」コンテキストメニューのメニュー項目",
"description": "Label on checkbox to enable menuitem in page context menu"
},

"__WET_LOCALE__": { "message": "ja" }

}

Updated translations for 'pl': Polish (język polski, polszczyzna)

Your translation have been copied to your clipboard. Paste it here:

Updated translations for 'pl': Polish (język polski, polszczyzna):

{
    "extensionName": {
        "message": "Przywróć zamkniętą kartę",
        "description": "Name of the extension. Also used for the toolbar button tooltip and for the page/tab context menu item for direct tab restore.",
        "hash": "64c3b70943ee77066e4d90550f73fe60"
    },
    "extensionDescription": {
        "message": "Przywraca ostatnio zamkniętą kartę.",
        "description": "Description of the extension.",
        "hash": "feb53325fd2a69298e4ac7433611fba1"
    },
    "more_entries_menu": {
        "message": "Więcej",
        "description": "Last menu on Context menus of the browser action, as the top-level menu cannot exceed 6 items.",
        "hash": "2faee14e6cb6b941b08d3a1eea098a8e"
    },
    "page_contextmenu_submenu": {
        "message": "Przywróć zamkniętą kartę",
        "description": "The label used for the submenu added to the page/tab context menu (the one with the recently closed tab list). Please use the same string as in 'extensionName' whenever possible!",
        "hash": "64c3b70943ee77066e4d90550f73fe60"
    },
    "contextmenus_headline": {
        "message": "Menu podręczne",
        "description": "Headline for context menu options in options page",
        "hash": "c865d765c4c6a4157de8336fad083f8e"
    },
    "menuitem_number_label": {
        "message": "Liczba zamkniętych kart pokazywanych w menu:",
        "description": "Closed tabs number on context menu items.",
        "hash": "8f71ac4eebcd5ee918321c62d55fcf19"
    },
    "numberText_title": {
        "message": "Liczba zamkniętych kart w menu podręcznym, zakres to 1 - $1",
        "description": "tooltip on number input box.",
        "placeholders": {
            "maxResults": { "content": "$1", "example": "25" }
        },
        "hash": "40a445627cbea0310e6fdc25944a2096"
    },
    "onlycurrent_label": {
        "message": "Pokazuj tylko te karty, które zostały zamknięte w bieżącym oknie",
        "description": "Label on checkbox for filtering menu items to current window",
        "hash": "ff97d8d8b39692e9b010ebe354777c89"
    },
    "menus_headline": {
        "message": "Dodatkowe menu",
        "description": "Headline for additional menu checkboxes in options page",
        "hash": "d2d0134f4d85db563973c1ad1a0d9831"
    },
    "menu_tab_label": {
        "message": "Dodatkowe menu podręczne w menu dostępnym po kliknięciu prawym przyciskiem myszy na karcie",
        "description": "Label on checkbox to enable submenu in tab bar context menu",
        "hash": "0031523137f27c650862f888395e599d"
    },
    "menu_page_label": {
        "message": "Dodatkowe menu podręczne w menu dostępnym po kliknięciu prawym przyciskiem myszy na stronie",
        "description": "Label on checkbox to enable submenu in page context menu",
        "hash": "03b779fff222918a5f544314ffd07f0e"
    },
    "menuitem_page_label": {
        "message": "Dodatkowy element w menu dostępnym po kliknięciu prawym przyciskiem myszy na stronie",
        "description": "Label on checkbox to enable menuitem in page context menu",
        "hash": "520d2256897061311967e99b19d75764"
    },

    "__WET_LOCALE__": { "message": "pl" }
}

Updated translations for 'ko': Korean (한국어)

Your translation have been copied to your clipboard. Paste it here:

Updated translations for 'ko': Korean (한국어):

{
    "extensionName": {
        "message": "Undo Close Tab",
        "description": "Name of the extension. Also used for the toolbar button tooltip and for the page/tab context menu item for direct tab restore.",
        "hash": "64c3b70943ee77066e4d90550f73fe60"
    },
    "extensionDescription": {
        "message": "최근에 닫은 탭 다시 열기",
        "description": "Description of the extension.",
        "hash": "feb53325fd2a69298e4ac7433611fba1"
    },
    "more_entries_menu": {
        "message": "추가 항목",
        "description": "Last menu on Context menus of the browser action, as the top-level menu cannot exceed 6 items.",
        "hash": "7bebf8ccc20f23b1faccdca5629a9d1a"
    },
    "clearlist_menuitem": {
        "message": "목록 지우기",
        "description": "Label for the menuitem for clearing the list of closed tabs",
        "hash": "17927f5c3d0eab2022d1a91b106b48c0"
    },
    "page_contextmenu_submenu": {
        "message": "Undo Close Tab",
        "description": "The label used for the submenu added to the page/tab context menu (the one with the recently closed tab list). Please use the same string as in 'extensionName' whenever possible!",
        "hash": "64c3b70943ee77066e4d90550f73fe60"
    },
    "contextmenus_headline": {
        "message": "컨텍스트 메뉴",
        "description": "Headline for context menu options in options page",
        "hash": "c865d765c4c6a4157de8336fad083f8e"
    },
    "menuitem_number_label": {
        "message": "닫은 탭 메뉴에 보여질 항목 수:",
        "description": "Closed tabs number on context menu items.",
        "hash": "8f71ac4eebcd5ee918321c62d55fcf19"
    },
    "numberText_title": {
        "message": "컨텍스트 메뉴의 닫은 탭 갯수 범위는 1 - $1",
        "description": "tooltip on number input box.",
        "placeholders": {
            "maxResults": { "content": "$1", "example": "25" }
        },
        "hash": "40a445627cbea0310e6fdc25944a2096"
    },
    "onlycurrent_label": {
        "message": "현재 창에서 닫은 탭들만 보이기",
        "description": "Label on checkbox for filtering menu items to current window",
        "hash": "ff97d8d8b39692e9b010ebe354777c89"
    },
    "menuitem_clearlist_label": {
        "message": "최근에 닫은 탭 목록 지우기 메뉴 항목 보이기",
        "description": "Label on checkbox for enabling the 'Clear List' menu item",
        "hash": "428404052dc9c9462e0ec760aa91912a"
    },
    "menus_headline": {
        "message": "추가 메뉴",
        "description": "Headline for additional menu checkboxes in options page",
        "hash": "d2d0134f4d85db563973c1ad1a0d9831"
    },
    "menu_tab_label": {
        "message": "탭 컨텍스트 메뉴의 하위 메뉴",
        "description": "Label on checkbox to enable submenu in tab bar context menu",
        "hash": "0031523137f27c650862f888395e599d"
    },
    "menu_page_label": {
        "message": "페이지 컨텍스트 메뉴의 하위 메뉴",
        "description": "Label on checkbox to enable submenu in page context menu",
        "hash": "03b779fff222918a5f544314ffd07f0e"
    },
    "menuitem_page_label": {
        "message": "페이지 컨텍스트 메뉴의 메뉴항목",
        "description": "Label on checkbox to enable menuitem in page context menu",
        "hash": "520d2256897061311967e99b19d75764"
    },

    "__WET_LOCALE__": { "message": "ko" }
}

[feature] custom context menu with options and list

Any chance to get your functions and and a context menu like this one combined?
https://addons.mozilla.org/en-US/firefox/addon/undo-closed-tabs-revived/

It has a list on left click with several options, including a feature to open all tabs at once.
The list view looks "better" than a context menu where some entries are hidden.

imo a perfect solution would be:

  • single left click: open last tab
  • double click or right click: show list with X entries, option to open all tabs or remove them

Toolbar icon invisible when button moved to menubar

Firefox 70

When I move the toolbar button to the menu bar, the space becomes occupied by the button, but the icon is invisible unless you mouse hover over it, and even then, it is a greyed out version of what it should look like.

undo3

undo

It displays normally on the nav bar.

undo2

Reopen last closed tab on right-click menu

Hello,

is it possible to add a function to the right-click menu that doesn't give me the list of the last closed tabs, but simply re-opens the last closed one? I used to rightclick and press G (_G_eschlossenen Tab wiederherstellen) in quick succession on the old FF, but that funcionality apparently was added by TMP which is not available for the new one.

No Longer working ?

Hello, Salut, ;)

It looks like that the plug-in doesn't work anymore.
Impossible to click on it, nothing happen...

If you could have a look at it !

Does not work on mobile

I installed this extension on Firefox Mobile. Well, it does not work. It displays an annoying bottom tab only when the tab is closed to restore it, and it disappear quickly. When I click on the "Restore tab" menu, it does nothing.

I'm using Firefox mobile (Fennec) 68.0 on Android 7.0 kernel 4.1.18-ga01d40c, on a Honor 6x BLN-L21 with EMUI 5.0.1

[SUGGESTION] Keyboard Shortcut

Hello.

I'm thinking that it would be nice to have a keyboard shortcut for this add-on; e.g. CMD + Z by default.

Safari has this option(both the plug-in functionality and the shortcut for it) by default and it's pretty useful.

As my hands are mostly on the keyboard, I can easily bring up the previous page I closed in an instant compared to grabbing the mouse/trackpad and looking for the button which is a much longer endeavour.

Thanks.

List of recently closed tabs is blank if a JPG link happened to get closed

Hello Manuel!

Got a weird bug here that is voiding my closed tabs list.

Steps to reproduce:

  1. Install v. 4.5.0.
  2. Close several tabs with web pages
  3. Ensure that list of resently closed tabs in the context menu is populated with above tabs
  4. Close a tab where a JPG file link is opened

Bug:

  • List of recently closed tabs is suddenly blank
  • A list is left blank until you restore that last closed JPG tab

OS: Windows 10 1809, Firefox 67.0.1

P.S. I'm enjoying this addon immensely! Installing v.4.4.4 until this issue is fixed.

nothing happens

Hi,
I installed undoclosetab in Firefox v57 64bits under Windows 7, but nothing happens when I left click the icon next to the address bar.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.