This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For tab hoarders using Microsoft Edge (this might work on other Chromiums, but I haven't tested) | |
// who keep so many tabs that even edge://discards/ page becomes unresponsive. | |
// Can discard/freeze all background hidden tabs. Foreground (visible) tabs, tabs playing audio, | |
// and tabs in the "Never put these sites to sleep" list will not be discarded/frozen. | |
// In the address bar, enter: edge://discards/discards.js | |
// Then open DevTools (Ctrl+Shift+I or F12), go to Console, and paste the following code. | |
await (async () => { | |
// To freeze tabs, set to false; to discard tabs, set to true |