Giter VIP home page Giter VIP logo

tabhibernation's Introduction

TabHibernate

TabHibernate is a Browser Extension that will send inactive Tabs into some kind of "Hibernate" mode โ€“ Mostly like OneTab but without removing the tabs from the tabbar.

You may download the extension in the Chrome Web Store.

Currently only the Chrome-Version is really supported. Safari-Version needs a maintainer and a Firefox-Version would be nice to have, contact @HorayNarea if you want to do something about that.

Building the extension

Code (or other files) that can be used by both the Chrome and Safari extension are stored in lib/. Browser-specific code is stored in Chrome/ for Chrome and in TabHibernation.safariextension/ for Safari.

To make the files in lib/ accessible from both extensions hard links need to be created. Just run make to create these links.

Screenshot

Screenshot

tabhibernation's People

Contributors

343max avatar asgathea avatar eush77 avatar horaynarea avatar sonicdoe avatar thedruidskeeper 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabhibernation's Issues

Questions about restoring many tabs

I have a couple of Chrome windows with a lot of tabs in each of them and I don't want to lose them. So before I install your extension, I would like to ask you some questions:

  1. Will all tabs in all windows be hibernated after installing it?
  2. What if Chrome suddenly crashes with my tabs hibernated? Will they be restored on the next start?
    Thanks!

Fix "Not allowed to navigate top frame to data URL"

Hello,
it seems, that Chrome has implemented a security feature that prevents to execute data URLs from JavaScript, which causes TabHibernation to not function anymore: if you try to hibernate a tab, the console shows a message like "Not allowed to navigate top frame to data URL: data: ...".

It seems, it is possible to use the src attribute of an <iframe>, though.
Maybe one could replace all the content with an <iframe> or use about:blank and add the <iframe> ? (just guessing; obviously, I'm not much into Extension programming, yet ^^).

From the feature proposal on Google Groups:

Alternative implementation suggestion for web developers
The main use case for navigating to data URLs in the top frame is generating files (HTML, PDF, images etc.) on the fly and displaying them to the user.

For that use case, these alternatives exist:

  • Generate the file on the backend and send it to the user over http/https.
  • Initiate a download instead of displaying the URL.
  • If the contents of the URL is trusted, iframe the URL so that the omnibox displays the site's URL.

Resources:
What does it mean
Intent to Deprecate and Remove: Top-frame navigations to data URLs
Related StackOverflow Question

Selecting multiple tabs not to hibernate

In Chrome one can ctrl+click and shift+click to select multiple tabs. It would be neat if, when multiple tabs are selected, that Tab Hibernation avoids hibernating these tabs.

won't wakeup if history is lost

if Chrome crashes and looses it's history a sleeping tab can't wakeup anymore

JS-Console says:
Uncaught ReferenceError: pageInfo is not defined

Whitelist URLs from sending to sleep

Exclude certain URLs from "sending to sleep" by whitelisting them.
e.g.
As a user,
if I'm loading a YouTube video in background while working in another tab,
I don't want to send the YouTube tab to sleep and lose the semi-loaded video.

Change fave icon

Hello!
Thanks for a good tool!

Would it be possible to add some marker that tab is hibernated, something like page ico + small dot at the corner or so.
It can improve usability of the extension.

Thanks

URL Excludelist

add a configurable list of pages, that are not send to sleep when sleep-button is pushed.
This would be interesting for sites with dynamic Contant (Chats, Socialnetworks.)

Keyboard Shortcuts

The ability to assign keyboard shortcuts would greatly improve usability for me. 'Send inactive tabs to sleep' and 'Wake up' would be sufficient.

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.