rkodey / the-great-er-discarder-er

GNU General Public License v2.0
62 stars 6 forks source link

Sleeping tabs. #5

Open roman6626 opened 3 years ago

roman6626 commented 3 years ago

I really wanted to be able to visually determine which tabs are sleeping. This is the only thing missing. This can be done?

rkodey commented 3 years ago

Hi - thanks for the feedback. Unfortunately, Chrome doesn't allow any visual changes to the tabs themselves. Would a counter help you out? To know how many active tabs there are? Or how many sleeping tabs there are?

Coincidentally, I'm working on a new browser extension that's something like a search-engine for open tabs. (I keep WAY too many tabs open!!) As part of that, it happens to show which tabs are active and which are discarded/sleeping. I'm not sure if that would help you out, as this new extension opens a new browser tab to show all of the tab information. So, it would be a click away instead of immediately visible.

Anyway - the new extension isn't ready for public use yet... I'll announce here when it's ready for testing.

CTimmerman commented 2 years ago

chrome://discards/ lists 226 tabs, which agrees with the count on Session Buddy's icon. Loading state is sortable but utility rank (whatever that means) stays with the sorted rows. Anyway, a quick visual indicator as requested seems possible according to https://stackoverflow.com/questions/9270782/how-to-alter-title-of-present-tab-using-chrome-extension to insert a 💤 before the inactive tab's title (Firefox), or to modify the favicon (Chrome) like Auto Tab Discard: https://www.youtube.com/watch?v=S0rHU38OnTE&t=18s Modifying the favicon might be annoying when cached: https://www.youtube.com/watch?v=ityhxUPp3y8&lc=Ugx-l9e3Fy5aD8XMMA14AaABAg

WHiZSTA commented 2 years ago

I'm coming over from auto tab discard, to try this extension out instead. I can verify it modifies the page title to add the zzz for sleeping tabs.