GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v1.6.0: keep awake holds off browser discarding, why a tab is still a… · ml3dev/drowzy@e76a5e2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • CHANGELOG.md
  • README.md
  • _locales
    • am
      • messages.json
    • ar
      • messages.json
    • bg
      • messages.json
    • bn
      • messages.json
    • ca
      • messages.json
    • cs
      • messages.json
    • da
      • messages.json
    • de
      • messages.json
    • el
      • messages.json
    • en_GB
      • messages.json
    • en_US
      • messages.json
    • en
      • messages.json
    • es_419
      • messages.json
    • es
      • messages.json
    • et
      • messages.json
    • fa
      • messages.json
    • fil
      • messages.json
    • fi
      • messages.json
    • fr
      • messages.json
    • gu
      • messages.json
    • he
      • messages.json
    • hi
      • messages.json
    • hr
      • messages.json
    • hu
      • messages.json
    • id
      • messages.json
    • it
      • messages.json
    • ja
      • messages.json
    • kn
      • messages.json
    • ko
      • messages.json
    • lt
      • messages.json
    • lv
      • messages.json
    • ml
      • messages.json
    • mr
      • messages.json
    • ms
      • messages.json
    • nb
      • messages.json
    • nl
      • messages.json
    • no
      • messages.json
    • or
      • messages.json
    • pl
      • messages.json
    • pt_BR
      • messages.json
    • pt_PT
      • messages.json
    • ro
      • messages.json
    • ru
      • messages.json
    • sk
      • messages.json
    • sl
      • messages.json
    • sr
      • messages.json
    • sv
      • messages.json
    • sw
      • messages.json
    • ta
      • messages.json
    • te
      • messages.json
    • th
      • messages.json
    • tr
      • messages.json
    • uk
      • messages.json
    • vi
      • messages.json
    • zh_CN
      • messages.json
    • zh_TW
      • messages.json
    • zh
      • messages.json
  • background.js
  • changelog.html
  • docs
    • 404.html
    • icons.js
    • index.html
    • screen-settings.html
    • screen-stats.html
    • sitemap.xml
  • formcheck.js
  • icons.js
  • manifest.json
  • popup.css
  • popup.html
  • popup.js
  • sidepanel.html

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+42Lines changed: 42 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22

33
All notable changes to Drowzy are documented here.
44

5+
## [1.6.0] - 2026-10-12
6+
7+
Stability, compatibility and clarity. Keep this tab awake now also holds off the browser's own Memory Saver, the tab list says why an overdue tab is still awake, Opera and Opera GX get a gentler startup after a crash report, Close duplicate tabs stops closing tabs that are not duplicates, sessions can be imported and Replace asks before closing a window, and an old memory claim is gone from 56 translations. No new permissions, no telemetry, and the native `chrome.tabs.discard` approach is unchanged. In Chrome and every non-Opera browser, which tabs get suspended and when is exactly what it was in 1.5.0.
8+
9+
### Fixed
10+
- **Close duplicate tabs closed tabs that were not duplicates.** It lowercased the whole address and dropped the fragment before comparing, so two Gmail messages (`#inbox` vs `#inbox/abc`), two pages of a hash-routed app, or two case-sensitive ids counted as one page and all but one were closed, with no undo in Drowzy. A new `duplicateKey` compares the address as is, with only the scheme and host case-insensitive and a bare trailing slash ignored. A tab playing sound is never closed now, alongside pinned tabs.
11+
- **Form protection could miss unsaved input right after an update.** `formcheck.js` guarded against double injection with a plain `window._drowzyFormcheckLoaded = true`. If a copy left behind by the previous version still holds that flag, the new copy exits early, the old one can no longer answer, and the check came back as "clean" until the tab reloaded. The guard is now keyed to the extension version.
12+
- **One bad whitelist value could stop everything.** `getSettings` called `toLowerCase()` on every stored entry, so a single non-string in synced storage threw on every suspend path, the popup and the startup sweep. Non-string entries are now skipped.
13+
- **Restoring a session in Replace mode could show Chrome's raw English error.** The failure toast now uses the translated "Failed to restore".
14+
15+
### Added
16+
- **Keep this tab awake also holds off the browser's own discarding.** Chrome's Memory Saver (and Opera's tab snoozing) could still sleep a held tab under memory pressure, which reads as Drowzy ignoring the hold. Holding a tab now sets `autoDiscardable: false` on it (`setBrowserAutoDiscard`), Allow sleep sets it back to `true`, and the flag is re-applied when a held tab's id is swapped (`onReplaced`). The flag only affects the browser's automatic discards, not `chrome.tabs.discard`, the page or its address, and the browser resets it when the tab closes or the browser restarts, the same lifetime as the hold.
17+
- **Why an overdue tab is still awake.** The per-minute pass now remembers, in memory, why it last left a due tab awake (`_autoRefusals`: unsaved input, or still loading), and `getTabList` returns it as `waitReason`. The list shows an "Unsaved" or "Loading" badge with an explanation in place of a "soon" that never ended. Entries expire after 3 minutes and are cleared on activation, close and a successful suspend. Reporting only: nothing here feeds back into whether a tab is suspended.
18+
- **"Auto-suspend is off" line** above the tab list when the timer is on Never or auto-suspend is switched off, with a link to the timer setting.
19+
- **Session import.** A new button next to "Copy all sessions" reads that JSON back from the clipboard. `importSessions` rebuilds every session field by field: only http and https tabs are kept, names and titles are capped strings, group colours must be ones Chrome knows, stored favicon URLs are dropped (icons come from the browser's cache), sessions already saved (same id or same list of addresses) are skipped, and the 20-session limit still applies.
20+
- **Open in side panel** button in the popup header, shown only where `chrome.sidePanel.open` exists.
21+
22+
### Changed
23+
- **Opera and Opera GX: gentler automatic suspending.** Issue #3 reports Opera GX crashing within about a minute of opening with Drowzy enabled (around 20 tabs, 15 minute timer) and not crashing without it. We could not reproduce it, and the cause is not confirmed. The one heavy thing Drowzy does in that window is `chrome.tabs.discard`: the startup catch-up sweep works through every restored tab the user has not looked at, some never loaded, and the first per-minute pass can follow with a batch four at a time, because restored tabs keep their old last-used times. In Opera only (`IS_OPERA`, from `navigator.userAgentData` brands or `OPR/` in the user agent):
24+
- no automatic discards for the first 3 minutes after the browser starts (`OPERA_STARTUP_GRACE_MS`, counted from `onStartup` via `browserStartedAt` in session storage); restore tags are kept and the per-minute tick sweeps them afterwards
25+
- one discard at a time (`SUSPEND_CONCURRENCY` is 1) with a 400 ms pause after each (`OPERA_DISCARD_GAP_MS`), in the per-minute pass, the startup sweep and Suspend Others
26+
- tabs that have never loaded (`status: 'unloaded'`) are skipped by the automatic paths, since they hold no page in memory; manual Suspend Others is unchanged apart from the pacing
27+
- **Whitelist import reads space-separated lists** (a column pasted from a spreadsheet, `a.com b.com`), says "All of these sites are already in your whitelist" instead of "Imported 0 new site(s)", and appends how many lines were not recognized.
28+
- **Opera: never-loaded tabs show "Not loaded"** in the list instead of a countdown, since the automatic paths now leave them alone.
29+
- **Replace asks for a second click.** It closes every tab in the window, pinned ones included, and a single stray click was enough. It now confirms the way Delete does.
30+
- **Session restore says when it fell short.** Open mode reports "Restored 8 of 10 tabs" when some pages could not be opened, and a restore that opened nothing reports a failure instead of "Restored 0 tabs".
31+
- **The lifetime memory stat is labelled as an estimate.** "Lifetime RAM saved" multiplied every suspend ever by 150 MB, so a tab slept a hundred times counted a hundred times; it now reads "Memory freed over time (est.)", next to the existing tooltip that explains the running total.
32+
- **The review banner stops after a second "Maybe later".** It used to come back every 14 days for good.
33+
- **System pages in Opera and Vivaldi** (`opera://`, `vivaldi://`) get the lock icon in the tab list instead of a letter.
34+
35+
### i18n
36+
- `featureZeroRam` on the welcome page still said suspended tabs use "zero RAM" (or "no RAM") in 56 of 57 locales, including `en_GB` and `en_US`, which most English users actually see; only `en` had been corrected. The bold part now says they release most of their memory, with the rest of each sentence untouched.
37+
- The idle timer in the tab list used a hardcoded `m` (`12m`). It now uses `minutesLeftShort` with each language's own abbreviation.
38+
- New keys across all 57 locales: `minutesLeftShort`, `importAllExisting`, `importSkippedInvalid`, `changelog160Title1` to `changelog160Title3`, `changelog160Desc1` to `changelog160Desc3`. `changelog160Title5` reuses each locale's existing `changelog150Title5`.
39+
- Four messages no longer say "Chrome" to people using another browser: `suspendFailedGeneric`, `cantSuspendNoOtherTab`, `shortcutsHint` and `whitelistFull` now say "your browser" (or the browser), in all 57 locales.
40+
- New keys across all 57 locales: `badgeUnsavedInput`, `badgeStillLoading`, `badgeNotLoaded`, `waitUnsavedInputHint`, `waitStillLoadingHint`, `waitNotLoadedHint`, `autoSuspendOffNotice`, `restoredSomeTabs`, `confirmReplaceTitle`, `importSessionsTitle`, `importedSessions`, `noSessionsToImport`, `sessionsAlreadySaved`, `openSidePanel`, `sidePanelUnavailable`, and `changelog160Title4`, `changelog160Desc4`, `changelog160Title5`, `changelog160Desc5`. Labels quoted inside the new strings (Protect tabs with forms, Settings, Replace) use each locale's own existing translation.
41+
- What's New gets a five-item 1.6.0 section and 1.5.0 collapses like the releases before it. 1.6.0 is not in `SHOW_CHANGELOG_VERSIONS`, so the page does not open by itself after this update.
42+
43+
### Docs
44+
- Website: canonical, Open Graph, sitemap and 404 links point at drowzyextension.com (the old address already redirects there); the FAQ says Keep this tab awake also holds off Memory Saver and gains a browser support answer; the sessions and Close duplicate tabs cards match the new behaviour. `UNINSTALL_URL` stays on github.io, which redirects.
45+
- README: browser support section, and keyboard shortcuts list the real per-platform defaults (Windows is `Alt+Shift+P` / `Alt+Shift+O`, not `Alt+S` / `Alt+W`), Close duplicate tabs describes the new rule, and "no idle CPU usage" is replaced with what is actually true.
46+
547
## [1.5.0] - 2026-09-02
648

749
Speed fixes for people with a lot of tabs, based on a store review and a GitHub issue. The popup opens right away with many tabs open, Suspend Others runs several tabs at a time and reports what it skipped, the timer can be set to 1 minute, and the Keyboard shortcuts row points to where Chrome lets you change them. No new permissions, no telemetry, and the native `chrome.tabs.discard` approach is unchanged.
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+13-9Lines changed: 13 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,30 @@ On top of that, Drowzy is fully open source, collects zero data, and runs entire
5353
### Core
5454
- **Auto-suspend** inactive tabs after a configurable timer (1 min - 4 hours, or manual only)
5555
- **Smart protection** - pinned, audio-playing, and whitelisted tabs are skipped by default; the pinned and audio protections are toggles you can turn off if you want those tabs to sleep too. Optional form-data protection also skips tabs with unsaved input (off by default, requires granting page access)
56-
- **Keep this tab awake** - hold a single tab awake without whitelisting the whole site. Nothing in Drowzy will sleep it until you press "Allow sleep" or close the tab; the hold clears when you restart your browser
57-
- **Tells you why** - when a tab can't sleep, Drowzy says which protection is stopping it and links straight to the setting that would change it, instead of quietly hiding the button
56+
- **Keep this tab awake** - hold a single tab awake without whitelisting the whole site. Nothing in Drowzy will sleep it until you press "Allow sleep" or close the tab, and the hold also tells Chrome's own Memory Saver to leave it alone; the hold clears when you restart your browser
57+
- **Tells you why** - when a tab can't sleep, Drowzy says which protection is stopping it and links straight to the setting that would change it, instead of quietly hiding the button. Tabs that are due but held back by unsaved input or a slow load say so in the list, and a line above the list says when auto-suspend is off
5858
- **Whitelist** sites with pattern matching and wildcards (e.g., `github.com/ml3dev/*`)
59-
- **Keyboard shortcuts** - `Alt+S` suspend current, `Alt+Shift+S` suspend others, `Alt+W` wake all
59+
- **Keyboard shortcuts** - suspend current, suspend others and wake all. Defaults are `Alt+Shift+P`, `Alt+Shift+S` and `Alt+Shift+O` on Windows, `Alt+S`, `Alt+Shift+S` and `Alt+W` elsewhere; change or clear them at `chrome://extensions/shortcuts`
6060
- **Context menu** - right-click any page for quick suspend options
6161

6262
### Sessions & Organization
6363
- **Save and restore sessions** - bookmark your entire window state and reopen it later
64-
- **Close duplicate tabs** - one click to deduplicate your window
64+
- **Close duplicate tabs** - one click closes tabs with exactly the same address; pinned tabs and tabs playing sound are kept
6565
- **Tab search** - filter your tab list by title or URL
66-
- **Export** - copy your tab list or sessions as JSON for backup
66+
- **Export and import** - copy your tab list, or copy sessions as JSON and paste them back on another computer; Replace asks for a second click before it closes the current window's tabs
6767

6868
### Polish
6969
- **Dark and light theme** - toggle in the header, preference is saved
70-
- **Side panel** - pin Drowzy to Chrome's side panel for a persistent full-height view
70+
- **Side panel** - open Drowzy in Chrome's side panel from the popup header for a persistent full-height view
7171
- **50+ languages** - UI automatically matches your browser language
7272
- **Suspend indicator** - optional `[zzz]` prefix on suspended tab titles (requires granting page access)
7373
- **Suspend warning** - optional on-page notice before a tab is auto-suspended (requires granting page access)
74-
- **Stats dashboard** - track how many tabs you've suspended and how much memory you've saved
75-
- **Review prompt** - a gentle, dismissable nudge that only appears after about a week of real use, with "Maybe later" and "Don't ask again" options (never on install, never pushy)
74+
- **Stats dashboard** - track how many tabs you've suspended and an estimate of the memory freed over time
75+
- **Review prompt** - a gentle, dismissable nudge that only appears after about a week of real use, with "Maybe later" and "Don't ask again" options (never on install, and a second "Maybe later" is taken as a no)
76+
77+
## Browser support
78+
79+
Drowzy is built and tested for Chrome (version 120 or later). Other Chromium browsers such as Edge, Brave, Opera and Vivaldi can install it from the Chrome Web Store and the basics work the same way, though each adds its own tab features on top. In Opera and Opera GX, the automatic paths are gentler: nothing is suspended for the first 3 minutes after the browser starts, tabs are suspended one at a time, and tabs that were restored but never loaded are left to the browser. The side panel button only appears in browsers that support Chrome's side panel.
7680

7781
## How It Works
7882

@@ -87,7 +91,7 @@ Tab inactive for 15 min ──> Drowzy calls chrome.tabs.discard()
8791
User clicks tab ──> Chrome reloads it
8892
```
8993

90-
Drowzy runs a lightweight alarm every 60 seconds. It checks each tab's last-active timestamp and suspends any that exceed your chosen threshold. The active tab, whitelisted sites and tabs you keep awake are always skipped; pinned tabs, audio tabs and tabs with unsaved form input are skipped while those protections are on. That's it - no background pages, no content scripts running on every page, no idle CPU usage.
94+
Drowzy runs a lightweight alarm every 60 seconds. It checks each tab's last-active timestamp and suspends any that exceed your chosen threshold. The active tab, whitelisted sites and tabs you keep awake are always skipped; pinned tabs, audio tabs and tabs with unsaved form input are skipped while those protections are on. That's it - no background pages and no content scripts running on every page; between checks Drowzy does nothing.
9195

9296
## Permissions
9397

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.