sindresorhus / kill-tabs Goto Github PK
View Code? Open in Web Editor NEWKill all Chrome tabs to improve performance, decrease battery usage, and save memory
License: MIT License
Kill all Chrome tabs to improve performance, decrease battery usage, and save memory
License: MIT License
(feel free to use the image above as a screenshot; it's the result of killing ~100 tabs).
BTW, tab titles are still preserved, and you can look up any closed tab with the Tabs extension.
I have no idea what else could I write here :/
I have just realized after few npm & node updates that kill-tabs
stopped working.
It simply does nothing, none of tabs get's killed, no error, no message gets shown.
$ node --version
v4.2.2
$ npm --version
3.4.1
$ kill-tabs
$
I'm using Windows 8.1, and I have tried re-installing many times.
On Windows 8.1 I am getting:
spawn wmic ENOENT
I've tried on both stable Chrome, and on Canary.
The command:
kill-tabs --help
works fine.
How do you build this project into an exe for testing?
Currently we only listen for Chrome processes on Windows. We should also add support for the other browsers as well.
❯ kill-tabs
(node:46518) Warning: process.on(SIGPROF) is reserved while debugging
❯ kill-tabs --version
2.1.0
❯ node -v
v8.6.0
❯ node -v #also tested on
v9.8.0
High Sierra 10.13.3
I love this idea, but I use Brave (a fork of chromium) more than any other browser, and I was wondering if you could add support for Brave.
It seems there is a bug at line 11 of windows.js script.
The call from promisify(childProcess.exec)
at line 9 will return an object with the following properties: stderr
, stdout
, error
.
To be able succesffully call execall
we need to access the stdout
value.
I'm pushing a fix in a few minutes. I will also be a good idea to check for stderr
and report accordingly.
Love the idea, thanks for making this!
However, it didn't work with my Google Drive tab.
type
idea
issue
I need many tabs opened and use only time to time - meanwhile they decreace performance - so I want kill just them, and my important still have active
solution
create command-line option "except"
• except-domain -- eg $ kill-tabs --except-domain google.com
• except-title -- eg $ kill-tabs --except-title google
I'm using Chromium 43.0.2357.134 (64-bit).
You need more info for debugging?
In the meantime, this line does the trick for me:
ps ax|sed -n -e '/chromium.*--type=renderer/ {/--extension-process/ !{s/^\([0-9]*\).*/\1/p}}'|xargs kill
This is not really an issue, just a mention.
I have the same tendency to open a lot of tabs and in need of a solution to the resource hogging problem. Some time ago I have found this extension called The Great Suspender (github repo) and have been using it to great satisfaction.
One particular advantage over kill-tabs
is that you don't have to kill all tabs at once. The granularity provided by the toolbar button is to either kill the current tab or all the tabs in the current window.
Hope it helps!
Figure out what the process name for tabs is on OS X, Linux and Windows and implement it here: cb627bc#diff-168726dbe96b3ce427e7fedce31bb0bcR5 and here cb627bc#diff-168726dbe96b3ce427e7fedce31bb0bcR30
Re #4 (comment).
// @kevva
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.