aminomancer / uc.css.js

A dark indigo CSS theme for Firefox and a large collection of privileged scripts to add new buttons, menus, and behaviors and eliminate nuisances. The theme is similar to other userChrome stylesheets, but it's intended for use with an autoconfig loader like fx-autoconfig, since it uses JavaScript to implement its more functional features.
Other
329 stars 27 forks source link

Keep closed tabs on cache for a few seconds extra after they closed [bfcache on closed tabs] #40

Open ericpa06 opened 2 years ago

ericpa06 commented 2 years ago

Another humble suggestion, which most likely can't be done through javascript, if I had to take a guess: sometimes you close a tab accidentally, it would be interesting if the tab still remained open "hidden" for just a few seconds, like 5 seconds or so, in case you changed your mind, or had accidentally closed the tab to begin with, so that way when you opened, it would be instantaneously. I think some chromium browsers experimented with this feature but it seems that most decided to not go with it? Also there is a bugzilla report on this, but I think the discussion is somewhat stuck.

https://bugzilla.mozilla.org/show_bug.cgi?id=1655199

Again, I have no idea on how viable or hard this would be. Like, for instance, if you were watching a youtube video and closed that tab, it would be somewhat annoying having to deal with a delay of 5 seconds until the audio stopped playing because that tab was only then actually removed from memory, so probably when dealing with a tab playing a video or a song, the behavior would be like pause the video playing, hide the tab, wait 5 seconds, and then actually close it... Anyway, just some food for thought, sorry to bother you.

aminomancer commented 2 years ago

It's a cool idea, and I think it would be possible to do it with autoconfig. But it's a pretty big project and I don't have much free time recently. I'll leave this open though, I might wind up working on it at some point.

ericpa06 commented 2 years ago

Thank you very much for your attention and consideration, yeah, I imagine this would be super complicated, maybe in the future . Also, I'm pretty surprise that this could be possible through autoconfig, it's quite amazing the amount of things one can do through scripting.