Dormancy icon indicating copy to clipboard operation
Dormancy copied to clipboard

Option to unload all tabs other than active tab

Open rayman89 opened this issue 8 years ago • 7 comments

Could you make the amount of time configurable and include a way to white list domains from the tab context menu?

Would be also nice to have on tab context menu a command to instantly unload all tabs, selected tab and tabs to the left/right

rayman89 avatar Nov 27 '17 18:11 rayman89

Exactly what I came here to request myself.

Asmageddon avatar Dec 14 '17 13:12 Asmageddon

Editable timeout and suspend all except the front tab would be great.

mysterix01 avatar Dec 14 '17 22:12 mysterix01

Hey! Thanks for reporting this :)

Configuring tab timeout is #9 and whitelisting domains is #7, making this about:

"Would be also nice to have on tab context menu a command to instantly unload all tabs, selected tab and tabs to the left/right"

IIRC there's no API for adding context menu items to tabs in WebExtensions APIs yet, only to web content context menu.

autonome avatar Jan 08 '18 19:01 autonome

Web extensions have the ability to have tab context menus. Here is an example

imagen

Also Undo close tab button https://addons.mozilla.org/en-US/firefox/addon/undo-close-tab-button/ has the option to display the closed tabs in the tab context menu

There is also page context menu support in web extensions if somehow you are not able to do the tab context menu

imagen

rayman89 avatar Jan 08 '18 19:01 rayman89

Thanks!!! I'd searched all over MDN and couldn't find the docs for those. Turns out they're not a contextMenu and you don't do them through tabs APIs, they're an entirely different thing: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/ContextType

On Mon, Jan 8, 2018 at 11:54 AM rayman89 [email protected] wrote:

Web extensions have the ability to have tab context menus. Here are some examples

[image: imagen] https://user-images.githubusercontent.com/5449042/34689509-5e761bca-f47b-11e7-9d78-a9368ff5a2ea.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/autonome/Dormancy/issues/11#issuecomment-356077396, or mute the thread https://github.com/notifications/unsubscribe-auth/AADDt50wAwRsBxPqffJc0Q3Os7Foz0eIks5tInJ4gaJpZM4QsHt6 .

autonome avatar Jan 08 '18 20:01 autonome

Did you imagine this as unloading on a timer still, or immediately after a tab is not one of active, right-of-active, left-of-active?

The idea of a "turbo" mode where we unload tabs hyperactively is interesting.

autonome avatar Nov 29 '18 09:11 autonome

Ok, re-read the request, and you're describing this as a one-time thing. Filed #32 for turbo mode.

autonome avatar Nov 29 '18 09:11 autonome