Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idupree/chrome-tab-unloader
Chrome extension to unload tabs to save on RAM/etc.
https://github.com/idupree/chrome-tab-unloader
Last synced: 15 days ago
JSON representation
Chrome extension to unload tabs to save on RAM/etc.
- Host: GitHub
- URL: https://github.com/idupree/chrome-tab-unloader
- Owner: idupree
- License: mit
- Created: 2015-12-04T08:27:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T15:44:20.000Z (about 8 years ago)
- Last Synced: 2024-08-01T05:21:20.325Z (3 months ago)
- Language: JavaScript
- Homepage: https://chrome.google.com/webstore/detail/chrome-tab-unloader/ncifninngopkimemifelcaelaaigceod
- Size: 53.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Chrome Tab Unloader
===This browser extension gives you a simple button to unload the current
tab, or all tabs. You might do this in order to save on system
resources (RAM, CPU), or to make the tab quiet. Reload the tab
just by clicking in its content area.Placeholder page design
===Reasons to make the placeholder page be what it is (a `data:text/html`
URI arranged a certain way):I put the embedded URL near the beginning of the placeholder's URL,
with a minimum of escaping, so that you can copy it out yourself
if needed. The only character you might have to unescape is the
fragment `#` mark (`%23`) because putting that literally would
cause the rest of the data uri to be a fragment instead of HTML.
(Possibly I could *end* the embedded URL with
`..url..` to not even have to escape the `#`?
If I handled properly the page itself's use of the `#` in its URL.)I made the page work even if this extension isn't installed
anymore, because it might end up in bookmarks or copied somewhere.I made the page let you get to its target without Javascript, in
case Javascript got turned off for that page somehow.I made the page work even if you copy the URL to a new tab.
Though unfortunately this has tension with preserving your browsing
history when you don't copy the URL. In one choice, your
tab "back" history gets longer every time you unload then load
a page. In the other choice, if you copied around the data: URL,
you might have to go "forward" after re-loading the page
in order to actually get to the page. Maybe eventually
there will be an API that makes this all work great.The favicon is an embedded data: URI, instead of pointing to the original
server favicon, for two reasons. It makes the favicon work without
any network access, and it allows me to modify the favicon to make
it easier to see that a tab is unloaded (e.g. making its color grayer).Attribution
===Icon is from [wikimedia](https://commons.wikimedia.org/wiki/File:Clothes_hanger_icon_3.svg)
under CC-BY-SA 4.0 International.Building
===To get a .zip for the chrome web store,
```
git archive --format zip HEAD -o chrome-tab-unloader.zip
```