GeezerVison is showing github.com — Releases · ml3dev/drowzy
Releases · ml3dev/drowzy
v1.7.0
Your own tab prefix, any timer you want, and a real test of the Opera GX crash report. A prefix you choose replaces [zzz], Custom sets auto-suspend to any number of minutes up to a week, a tab that ends up staying awake no longer keeps its label, and Opera gets two small fixes. No new permissions, no telemetry, and the native chrome.tabs.discard approach is unchanged.
Added
- Your own title prefix (#4). With Mark suspended tabs on, a Title prefix box takes whatever you want in front of a sleeping tab's title:
[z], s/, an emoji. Up to 8 characters, counted as you see them, so a flag or a family emoji is one character and is never cut in half. One space is added after it. Control and text-direction characters are dropped, because an override would reverse the rest of the title everywhere the browser shows it. Leaving it empty means [zzz]. Tabs already asleep cannot run anything, so they keep their old prefix until they wake. Stored as markPrefix, sent to the page with the markSuspended message, and cleaned in the worker (cleanMarkPrefix) on every save.
- Custom auto-suspend timer. The timer menu has a Custom option that opens a Minutes box: any whole number from 1 to 10080, which is one week. Nothing is saved until there is a number, an empty or unusable box puts the stored value back, a higher number is capped, and typing a number the menu already has selects it there. The worker has the final say (
cleanTimerMinutes).
- Long countdowns read in hours. Past two hours the tab list shows
17h instead of 1000m. The unit comes from Intl.NumberFormat in the reader's language, so there is no new abbreviation to translate.
Fixed
- A tab that stayed awake could keep its
[zzz]. suspendTab marks the title before its last checks, because a discarded page can no longer change it. If those checks then refused (you came back to the tab, it started playing sound) or the browser declined the discard, the tab stayed awake with a label saying it was asleep, until the page changed its own title or reloaded. The unmarkSuspended handler in formcheck.js existed, but nothing ever sent it. suspendTab now sends it on any refusal after marking. The content script remembers the title it found and the title it left, and only undoes its own mark: a page's own title is never edited, even one that starts with the same characters as the prefix, and a changed setting cannot strand the old prefix.
- Opera: tabs opened in the background and never looked at could go without a timer. Opera reports
lastAccessed: 0 for a tab that was never activated, where Chrome reports a real time. seedTimestamp stored that 0, shouldSuspend read it as "no clock", and the tab never slept on the timer or in the startup sweep until something else touched it. Those tabs now start their clock when first seen.
Changed
- Opera and Opera GX: no first-run pass. The pass that sleeps long-idle tabs 30 seconds after install was the one automatic path 1.6.0's gentler Opera handling did not cover. It discarded tabs in a row with no pause, and it also read
lastAccessed: 0 as long idle, so it could sleep a tab opened seconds earlier. Tabs in Opera now sleep on the normal timer after installing. This is a precaution, not a confirmed fix: see below.
Opera GX crash report (#3)
We could not reproduce the crash, and its cause is still not known. Tested on Windows 11 Insider build 26300 with a throwaway profile:
- Opera GX 136.0.6008.50, the current build around the date of the report, and 138.0.6044.65, the latest today. Drowzy 1.5.0 and 1.6.0, the versions in the report, and 1.7.0.
- The reported flow: about 20 real tabs that had all been used, a restored session, a 15 minute timer, and the real
onStartup handler. The startup sweep put 20 tabs to sleep at about 30 seconds, and again at about 6 seconds while the session was still restoring. The browser stayed up with no crash dumps every time. On 1.7.0 the same session waited out the Opera quiet period, then the 20 tabs slept one at a time, also with no crash.
- A real install in a running browser (the reinstall in the follow-up): 19 tabs slept in the first-run pass, no crash.
- Tab islands, live and restored: tabs in them slept normally, no crash.
chrome.tabs.discard directly against loaded, loading, just-created, pinned, muted, grouped, minimized-window, second-window, system-page and extension-page tabs, plus discard-then-activate, discard-then-close and discard-reload loops. No crash.
- The per-minute check took a median of 0.9 ms (1.8 ms at most) with 22 tabs in GX.
Not tested: GX workspaces, sidebar panels and mods, the GX RAM limiter (turned on in a test profile, but GX reset the setting, so we cannot say it was active), and the reporter's own machine and profile.
i18n
- New keys across all 57 locales:
timerCustom, customTimerLabel, customTimerHint, markPrefixLabel, markPrefixHint, changelog170Title1 to changelog170Title3, changelog170Desc1 to changelog170Desc3. Quoted labels use each locale's own existing translation, and changelog170Title3 reuses changelog150Title5.
timerCustom and customTimerLabel added to the validator's identical-to-English exemption.
- What's New gets a three-item 1.7.0 section and 1.6.0 collapses like the releases before it. 1.7.0 is not in
SHOW_CHANGELOG_VERSIONS, so the page does not open by itself after this update.
Docs
- Website: the sessions card no longer says tab groups are restored. The
tabGroups permission was dropped long ago, and saveSession and restoreSession have skipped groups ever since. The timer copy now says one minute to a whole week, and the demo menu shows Custom.
- README: timer range and prefix, and the Opera section mentions the first-run pass.
Audit
node --check on every touched script; scripts/validate.js clean with 0 warnings. No manifest permission change; manifest.json changed only in version.
- 48 checks in real browsers, passing in both Chrome 156 and Opera GX 138: the timer box and its limits, the poll not closing the box mid-edit, reopening with a custom value, Never and back, the prefix limits including emoji and direction characters, the prefix on a really discarded tab, a refusal at the last check leaving a clean title, a second mark replacing the first, waking clearing the mark, settings saved by 1.6.0 loading and saving unchanged, the side panel having the same controls, and no page errors. The test copy had page access granted and the worker's sender check relaxed so the popup could run from a tab; the shipped files have neither change.
- Looked over in light and dark, in English, German (which led to a shorter label) and Arabic right-to-left.
- 83 further checks in both browsers: 14 kinds of prefix on really discarded tabs (joined emoji, flags, skin tones, keycaps, combining marks, right-to-left text), the 8 character limit never cutting one in half, real typing and Enter, page titles that start with or contain the prefix, an empty title, a page changing its own title after the mark, and changing, clearing or turning off the prefix while tabs sleep, with no reload and no stacked labels, across Suspend Others and Wake All.
- The custom timer in real time: a 2 minute setting slept a tab after 145 seconds in both browsers, never before 2 minutes, and a one week setting left it alone.
- All 57 locales: every new string checked for placeholders, numbers, quoted labels and writing system, and each one drawn on the popup and What's New pages with no overflow. Real
chrome.i18n output compared in 9 browser languages.
- The release package itself, with no test changes, loaded in both browsers and driven through the real toolbar popup.
Verifying this build
This zip was built by GitHub Actions from commit e66f1886df6a19b681d6971f928d733c20cd78be. You can re-run the workflow on a fork to verify the output matches.
sha256: 4472679ce9e5356230fe0ee59383dcc954bb843c9484f366c3ccae800bcc47a6
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.6.0
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.
Fixed
- 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.
- 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.
- 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.
- Restoring a session in Replace mode could show Chrome's raw English error. The failure toast now uses the translated "Failed to restore".
Added
- 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.
- 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.
- "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.
- 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.
- Open in side panel button in the popup header, shown only where
chrome.sidePanel.open exists.
Changed
- 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):
- 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
- 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
- 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
- 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.
- Opera: never-loaded tabs show "Not loaded" in the list instead of a countdown, since the automatic paths now leave them alone.
- 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.
- 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".
- 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.
- The review banner stops after a second "Maybe later". It used to come back every 14 days for good.
- System pages in Opera and Vivaldi (
opera://, vivaldi://) get the lock icon in the tab list instead of a letter.
i18n
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.
- The idle timer in the tab list used a hardcoded
m (12m). It now uses minutesLeftShort with each language's own abbreviation.
- New keys across all 57 locales:
minutesLeftShort, importAllExisting, importSkippedInvalid, changelog160Title1 to changelog160Title3, changelog160Desc1 to changelog160Desc3. changelog160Title5 reuses each locale's existing changelog150Title5.
- 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.
- 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.
- 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.
Docs
- 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.
- 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.
Verifying this build
This zip was built by GitHub Actions from commit e76a5e230478253d8418a320b4f7c40b14b90ac8. You can re-run the workflow on a fork to verify the output matches.
sha256: 20bbab7f53cc91b2aaa22556be7d5de4e678e27be7ec8a0411a6abe2c7ba283f
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.5.0
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.
Fixed
- Whitelist entries saved by older versions are cleaned up once, on update. Entries used to be stored as typed (
https://Site.com/, WWW.site.com, the same site twice in different case) and 1.5.0 matches and removes by the normalised form, so normalizeStoredWhitelist runs in onInstalled for updates: it normalises each entry, drops blanks and exact duplicates, keeps anything it does not recognise as it was, and writes only if something changed.
- Suspend Others handles several tabs at a time.
suspendAllOthers and the per-minute auto pass now run through a shared suspendMany helper with four suspends in flight at a time (runLimited). Every one still goes through suspendTab, so the active-tab rule, pinned, audio, whitelist, kept-awake, system-page and form checks, and the fresh pre-discard recheck all apply per tab exactly as before. Nothing about which tabs qualify changed.
- A slow page can no longer stall every suspend behind it.
chrome.scripting.executeScript does not resolve until the page reaches document_idle, and the markSuspended message had no timeout at all, so one tab still loading behind forty others could hold the whole batch. Injection is now bounded at 1.5 s and tab messages at 0.5 s (withTimeout). The suspend-warning banner loop is bounded the same way.
- Lifetime stats could lose counts under concurrent suspends.
recordSuspension is a read-modify-write on storage.local; two in flight read the same number and one increment was lost. Writes are now queued so each waits for the previous one. Sequential suspends hid this in 1.4.0; the concurrency above would have exposed it.
- "Never suspend this site" could not undo a path-pattern entry. On a page covered by an entry like
site.com/docs/* the button showed "Site is whitelisted", and pressing it asked the worker to remove the bare domain, which was never in the list. The optimistic label flipped, the toast said "Removed site.com from whitelist", and the next poll flipped it back. The worker now returns the exact stored entry that covers each tab (whitelistEntry in getTabList), the popup removes that, and every whitelist toast is written from the worker's answer rather than from the intent: "already in whitelist" for a duplicate, the worker's reason on a refusal, "Failed to save" when it did not answer. The popup's private copy of the matcher is gone.
- Whitelist entries are normalised once, in the worker. Pasting
https://Site.com/ used to store site.com/, a pattern that matched only the root page; a query string or fragment was stored literally; [::1]:3000 lost to a port-stripping regex; *.site.com was accepted and then never matched anything; and an internationalised domain typed as münchen.de never matched the punycode Chrome reports. normalizeWhitelistEntry now strips scheme, www., query, fragment, trailing slashes, port and IPv6 brackets; the matcher reads *. as "this host and its subdomains" and compares hosts in punycode. Path patterns are compiled once per entry instead of once per tab per poll.
- The whitelist reports when it hits Chrome's sync limit.
storage.sync caps one item at 8 KB, and a long whitelist reached it with a raw quota error in the toast. Adding now reports "The whitelist is full for Chrome sync" and leaves the stored list untouched.
- Clipboard import is one write. It made one sync write per site, and Chrome allows only so many a minute, so a long import stopped part way through silently.
importWhitelist normalises the whole list and writes once, reporting how many were added and how many were unusable.
- "Suspend this tab" checks for unsaved input before switching tabs. With Protect tabs with forms on, the old order switched you to a neighbour first and only then refused, leaving you on another tab with no explanation (the popup closes when focus moves). The check runs before the switch now, the toast says "this tab has unsaved input", and a page that could not be checked in time is reported as still loading rather than as "needs another open tab". All form-protection paths share one
formCheckBlocks helper.
- Cleaner result toasts. "Suspend this tab" says "Tab suspended" instead of "Suspended 1 tab(s)". Suspend Others reports tabs it skipped for a reason of their own ("3 tab(s) skipped") separately from tabs still loading, and no longer says "No other tabs to suspend" when there were others it deliberately left alone.
- The welcome page no longer overstates the protections. It said active, pinned and audio tabs "are never touched", which stopped being true when pinned and audio became switches; it now says they are protected by default. It also no longer promises an "instant" wake or that tabs are "always safe": a woken tab reloads, and what is true is that tabs stay normal Chrome tabs and survive an uninstall. Reworded in all 57 locales, fragment by fragment, so the rest of each translation is untouched.
- The popup says "could not load" instead of "No tabs found" when the worker does not answer.
msg() turns an unreachable service worker into null, and the list used to render that as an empty result. The poll keeps retrying.
- Suspend Others counts a tab that fell asleep by other means during the run. If the per-minute pass or Chrome itself discarded a targeted tab before Drowzy got to it,
suspendTab refused it as already discarded and the toast under-reported. Refused ids are now sorted into still loading, asleep after all, and refused for their own reason; the asleep ones count.
- The side panel's resume-from-hidden refresh goes through the poll guard, so it cannot stack on a load that was already in flight.
- Memory figures read the right way round in right-to-left languages. In Arabic, Hebrew, Persian and Urdu the strip and the stats card showed "GB 6.4" because the digits and the unit are separate bidi runs; the value elements are now LTR isolates, and the figure inside the suspend toasts is wrapped in a Unicode isolate. The Share Stats clipboard text is unchanged.
- Long toasts no longer run off both sides of the popup. The toast box was
white-space: nowrap and centred with a transform, so any message wider than the panel was clipped at both ends; the 90-character "needs another open tab" reason from 1.4.0 already did this. It now wraps inside the panel (width: max-content with a max-width), and short toasts are unchanged.
- With Protect tabs with forms on, a page Drowzy could not check in time is left alone instead of discarded. Before, an injection that had not landed yet or a form check that got no answer within the timeout both fell through to a discard. Now either counts as "could not verify" and the tab is left alone: the per-minute pass retries it, and a manual run reports it as still loading if that is what it is. Pages Chrome refuses to inject into at all (store pages and the like) keep the previous behaviour. Without form protection the script only marks the title, so a slow page there does not hold anything up.
Added
- Live progress and an accurate result for Suspend Others. While it runs, the button reads "Suspending... 12/47", where the count comes from Chrome's own discarded-tab count polled every 0.7 s (one request at a time), so the label can only ever show tabs that are really asleep. Tabs Chrome refused because their navigation had not committed yet are retried twice, two seconds apart. The worker now returns
{ count, total, refused, stillLoading }, counting only Chrome-confirmed discards, and the toast appends the existing "Still loading" line when some tabs were refused for that reason. Suspend Others stays disabled while a run is in flight, including across the 5 s poll.
- 1 minute auto-suspend option. The check alarm runs once a minute, so a tab sleeps one to two minutes after you leave it. Every protection applies as before. Existing saved timer values are untouched;
0 still means Never.
- The Keyboard shortcuts row explains where to change the keys. Its tooltip explains that Chrome manages the shortcuts and that Customize opens
chrome://extensions/shortcuts, where each one can be changed or cleared. The status text's tooltip lists every command with its current key, or "Not set". Should a browser refuse to open a chrome:// page from an extension, Customize shows the hint as a toast instead of failing silently. No custom shortcut system, no new permission.
Changed
- The popup appears immediately and fills in as data arrives.
init() used to await the theme read and all five worker messages before adding popup-ready, so with the worker slow the popup sat blank until the 500 ms CSS fallback and then showed everything at once. The shell now appears immediately with "Loading tabs...", the buttons are wired before data arrives, and loadAll renders each answer as it lands (tab list first, then the current tab and settings, then the counts, then sessions and stats). The chosen theme is mirrored in the popup's own localStorage (drowzy_theme) so the first frame is already the right theme; chrome.storage remains the authority and corrects the mirror if they differ.
- The 5 s poll skips a tick while the previous load is still waiting, so a slow worker cannot get a second full round of messages stacked on top of the first. The side panel benefits most, since it stays open.
- A cold worker no longer holds the tab list behind the timestamp reload.
getTabList starts initTimestamps() without awaiting it (s...
Read more
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.4.0
Control and clarity. This release comes out of uninstall feedback: the recurring theme was not that Drowzy did the wrong thing, but that it did not say what it was doing or give people a simple way to override it. No new permissions, no telemetry, and the native chrome.tabs.discard approach is unchanged. The 1.3.8 startup catch-up sweep is untouched.
Fixed
- "Protect audio tabs" now works in both directions. The final pre-discard recheck in
suspendTab refused any audible tab regardless of the setting. Because every suspend path funnels through that function, turning the protection off had no effect anywhere: auto-suspend, Suspend Others, Suspend this tab, the context menu, the keyboard shortcut, and the startup sweep all still refused background video and music tabs. The recheck now honours settings.protectAudio. With the setting on, behaviour is byte-for-byte what it was. This was reported directly: a user could not sleep background Twitch tabs even after unchecking the box.
- The popup no longer hides "Suspend this tab" on audible tabs. That gate existed only to paper over the bug above, and its own comment said so.
- What's New, onboarding and the privacy page now follow the theme you picked. All three only ever honoured the OS setting and ignored the popup's light/dark toggle, so switching Drowzy to light on a dark machine left them dark. 1.4.0 opens What's New automatically on update, so this would have been the first thing every user saw. The OS preference is still the default when no explicit choice has been made.
- The Settings shortcut no longer gets yanked back. The popup restores its scroll position after every 5-second refresh, which fought the deliberate scroll from "Open settings" if a refresh landed mid-animation.
Added
-
"Keep this tab awake". A per-tab, session-scoped hold for the case the whitelist is too blunt for: this tab, right now, not this site forever. While held, no Drowzy path sleeps the tab - not auto-suspend, not Suspend Others, not the context menu, not the shortcut, not the startup sweep. (Chrome's own Memory Saver is a separate system and can still discard tabs on its own; the hold is scoped to what Drowzy controls, and it survives such a discard.) The button is replaced by "Allow sleep" while the hold is on, so no visible control ever contradicts the badge. Held tabs show an "Awake" badge in the tab list.
- Stored in
chrome.storage.session, following the same in-flight-promise memoisation as the 1.3.8 restore and activated sets. It survives service-worker restarts and is cleared by the browser on restart, which is deliberate: a hold is a "not right now" decision, not a setting.
- Cleared when the tab closes, and carried across the tab-id swap on
onTabReplaced.
- Releasing a hold restarts the idle clock, so a tab held past its threshold does not vanish the instant you allow it to sleep again.
-
Reasons instead of silence. "Suspend this tab" is now shown disabled with an explanation rather than quietly disappearing. Two separate uninstall notes said Drowzy had no suspend button on tabs where it had in fact been hidden.
-
A shortcut to the setting that would change it. When a tab is protected by a toggle you control (pinned, audio), the reason line offers "Open settings", which expands Settings, scrolls to that exact row and flashes it.
-
Failed suspends now say why. Clicking suspend and getting nothing back was a recurring "not working" report. The failure path now reports the actual reason (pinned, audio, whitelisted, kept awake, still loading, unsaved form input) and falls back to an honest generic message when Chrome refuses for its own reasons. The explanation is computed only after a suspend has already failed, so it costs nothing on the happy path and can never influence whether a tab is discarded.
-
Honest framing on the memory numbers. Around ten uninstalls cited "didn't notice a memory difference", and overclaiming was making that worse. "Lifetime RAM saved" now has its own tooltip stating plainly that it counts ~150 MB per tab ever slept and is a running total over time rather than memory free right now. No disclaimer paragraph was added to the panel; the tooltips carry it.
-
Site icons now come from Chrome's own favicon cache. Loading a site's favicon URL directly from an extension page is a cross-origin request with no cookies, and anything sitting behind Cloudflare answers it with a challenge instead of an image - so the icon silently failed and the tab fell back to a letter circle. This affected a whole class of sites, claude.ai among them. Drowzy now reads Chrome's local cache instead, which works for sites that refuse us, for sleeping tabs, and for extension and system pages.
- This adds one permission,
favicon. It reads a cache already on your machine, makes no network request, is not a host permission, and Chrome shows no warning for it. It is the only way to render these icons at all; the alternative was leaving them permanently broken.
-
Favicons no longer disappear into the background. Favicons are images, so unlike every icon Drowzy draws they cannot follow the theme: a black mark vanished on the dark panel and a white one vanished on the light panel. Nothing is drawn behind any icon. Instead each one is measured once against the current theme and left alone unless it would genuinely disappear:
- A monochrome mark on transparency (GitHub's is the obvious example) is flipped to its opposite shade. Sites like these publish both a light and a dark version of the same mark and Chrome only cached one of them, so Drowzy produces the other. There is no hue to damage, so the result matches the site's own alternate asset.
- A coloured icon that blends gets a thin outline tracing the glyph instead, because inverting it would change the brand colour. The threshold for "monochrome" is deliberately tight: a very dark navy still carries enough hue to invert into a warm cream, so it takes the outline.
- Everything else, which is the large majority, is untouched. Switching theme re-measures them all.
- This applies to every favicon in the UI - the tab list, the current-tab header and the stacked icons on saved session cards - and to both icon sources, Chrome's cache and the page-reported fallback used when the cache misses.
-
Sleeping tabs keep their favicon. Chrome drops tab.favIconUrl the moment a tab is discarded, so the tab list turned into a wall of anonymous letter circles the instant you hit Suspend Others - the icons disappeared exactly when the list mattered most. Drowzy now remembers the last icon it saw for each tab and serves it back when Chrome has none. The same fallback applies to saved sessions, which previously stored no icons at all if you saved while tabs were asleep.
-
Real icons for pages that never have a favicon. Extension pages used to show a letter taken from their random extension id, and chrome:// pages a letter from an internal hostname. They now get a puzzle piece, a padlock, or a document icon as appropriate.
-
27 more icons in the shared Lucide map (57 total), all currentColor so they follow the theme.
Changed
- No more bounce. Suspend Others re-renders every row at once, and the badges scaled up from 0.8 while the stat numbers scaled to 1.08, which read as cartoony rather than responsive. Both are plain fades now, and the session-card entrance no longer uses an overshooting easing curve.
- Stats count tabs going to sleep, not button presses. Suspend Others followed by Wake All, in a loop, used to inflate the lifetime figures without limit - the numbers stopped meaning anything, and a large enough one overflowed the stat cards. A tab re-slept within a minute of last being counted no longer counts again; nobody legitimately wakes and re-sleeps the same tab twice inside sixty seconds, so real use is unaffected. (Spamming Suspend Others alone never inflated anything - already-discarded tabs are skipped before the counter is reached.)
- Large numbers can no longer break the layout. Counters compact past ten thousand (
15.4k, 12.3M) and the RAM figure carries on into TB instead of printing four-digit gigabytes.
- The suspend-warning banner's button is now "Not now" (was "Keep awake"). It only ever deferred one imminent suspend by bumping the tab's idle timer; with a real open-ended hold now available under nearly the same name, the old label was actively misleading. The i18n key
keepAwakeBtn is replaced by bannerNotNow.
- What's New opens once on update to 1.4.0. The rule is still major-bump-only; 1.4.0 is a narrow, explicitly listed exception, because a release about telling people what Drowzy is doing is worth one tab.
- Em and en dashes removed from every locale. The 1.3.7 pass cleaned the changelog and code comments but missed
_locales entirely, so all 57 locales still carried them - 375 strings in total. They were not a native punctuation choice: the same dash sat in the same structural slot in every language, including Japanese, Chinese, Arabic, Hebrew and Thai, because it had been carried over from the English source. English and most locales now use a plain hyphen; Chinese and Japanese use their own comma, which is what the surrounding translations already did. This mattered beyond house style: five of the affected strings are the tab status lines this release is built around, so an English user and a German user were seeing two different styles of the same sentence.
Internal
- New
scripts/validate.js, and CI now runs it (plus node --check on every shipped file) before building a release zip, so a broken locale cannot reach the Web Store. It checks: all 57 locales parse; key parity and placeholder integrity against en; no em or en dashes in any locale; no translation left byte-identical to English; no translation far longer than English in width-constrained furniture like...
Read more
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.8
Faster memory recovery after a browser restart, plus small clarity touches. No new permissions, no telemetry, and the native chrome.tabs.discard approach is unchanged.
Added
- "Report a bug" link in the popup and side panel Settings section, on the same row as "What's new". It opens the public GitHub issue tracker in a new tab - reporting is always an explicit user action; nothing is ever sent automatically.
- Memory Saver tip on the welcome page. A fourth onboarding tip explains honestly how Drowzy relates to the browser's built-in Memory Saver: keep it on if you like it, it frees memory automatically, and Drowzy adds control on top (live list of sleeping tabs, one-click suspend, whitelist). No claim that Drowzy saves more per tab.
- "Click to wake" tooltip on sleeping tab rows. Clicking a sleeping row has always woken the tab, but nothing said so; sleeping rows now carry a tooltip (title attribute only - an
aria-label would have replaced the row's accessible name and hidden the tab title from screen readers).
Fixed
- Restored tabs are re-suspended within about a minute of appearing, however slowly Chrome restores them. Chrome restores large sessions progressively (deferred windows, staggered background tab loading), so tabs that appeared after the old one-shot ~30s startup pass used to sit in RAM until the full auto-suspend timer (default 15 min) caught them - the "Chrome restores my tabs, RAM spikes, Drowzy only suspends them later" report.
- How it works: restore artifacts are tagged - every non-active tab present at startup, plus any tab later born in the background in Chrome's
unloaded state (the shape only restored or reopened tabs have; user-opened background tabs start loading immediately). One guarded sweep drains the tag set: fired once by the existing ~30s startup-suspend alarm, then by the per-minute check-tabs tick until no tags remain. A session that takes ten minutes to restore is covered minute by minute with zero new alarms, and still-unloaded tabs are discarded before Chrome's tab loader ever loads them - the RAM spike is prevented, not recovered from.
- What it never touches: tabs you have actually viewed this session (tracked from activation events in
chrome.storage.session, which Chrome clears on restart; a time-based guard would wrongly treat late-restored tabs as "recently touched", since restore itself bumps timestamps), plus the standard exclusions - active, pinned, audio, whitelisted, and internal pages, shared via shouldSuspend rather than copied. Every discard goes through suspendTab, so form protection and the fresh pre-discard active/audible recheck apply too.
- Edge handling: tabs mid-load stay tagged and retry next tick (discarding an uncommitted navigation can revert a tab to a stale URL); every other outcome untags - including before Drowzy's own discards, so a woken tab is never re-swept - and the sweep converges to a no-op. Tags accumulated while the setting is off are dropped, so toggling it on later can't mass-discard.
- Scope: gated on the same Suspend tabs on startup setting, re-read every tick, and works even when auto-suspend is off or the timer is set to Never. The old raw 30s pass (which ignored viewed and mid-load tabs) is replaced by this sweep - same timing, stronger protections. Session-set loads are single-flight and tag writes are coalesced, so a 200-tab restore doesn't thrash
storage.session.
Changed
- Store summary (
extDescription) reworded in en, en_GB, and en_US: now "Auto-suspend inactive tabs to save up to 80% RAM. Lightweight, private, no tracking, and open source." - drops the "Tabs are never lost." line and adds the open-source mention en_GB / en_US were missing. Store-listing copy only; no behavior change.
i18n
- New keys translated across all 57 locales:
reportBug (the Settings link), clickToWake (the sleeping-row tooltip), onboardingMemorySaverTip (the welcome-page tip), and the in-app "What's New" 1.3.8 entries (changelog138Title1-3 / changelog138Desc1-3). The 11 best-effort locales (Amharic, Bengali, Gujarati, Kannada, Malayalam, Marathi, Odia, Tamil, Telugu, Filipino, Swahili) use machine translations flagged for a future native-speaker pass.
- In-app "What's New" page updated to 1.3.8 (
changelog.html) so it leads with this release, above the existing 1.3.7 section. As before, the page only auto-opens on major version bumps, so updating to 1.3.8 does not pop the What's New tab.
- Removed the dead
onboardingRemapHint key from all 57 locales (referenced nowhere since the onboarding shortcut-hint rework).
Audit
- All 57 locale files validated: JSON validity, key parity against
en (211 keys, no missing or extra keys), no empty values, placeholder integrity, balanced <strong> tags in every HTML-injected key, and no untranslated-English left in non-English locales for the new keys. background.js, popup.js, onboarding.js, and changelog.js pass node --check, and every data-i18n* / getMessage / dynamic (labelKey / statusKey) / manifest __MSG__ reference resolves to a real key. The suspension changes went through two multi-agent adversarial review rounds plus independent re-verification of every fix. Permissions are unchanged from 1.3.7.
Verifying this build
This zip was built by GitHub Actions from commit 02a2894a1adca3b51822c599ac77c50ff31ece09. You can re-run the workflow on a fork to verify the output matches.
sha256: 3d89784ef8ab65946662ceba550aea2d40a7e882fda3aec6de21be46f8302e0e
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.7
Small, additive fix. No new permissions, and the core suspension pipeline is unchanged.
Added
- "Suspend this tab" button in the current-tab section (popup and side panel). After you wake a sleeping tab to look at it, you can now put just that one tab back to sleep straight from the UI. It switches you to another open tab first, since Chrome cannot suspend the tab you are currently viewing, then suspends the one you left. The button shows only when the active tab can actually be suspended (a normal page that is not pinned, playing audio, whitelisted, or a system page) and there is another awake tab to switch to.
Fixed
- Could not re-suspend a single woken tab from the popup. Waking a tab from the list activates it, and an active tab has no suspend control, so a woken tab could only be put back to sleep with the Alt+Shift+P shortcut or the right-click menu. The new button closes that loop, reusing the same proven suspend-current path as those two entry points.
i18n
- New keys translated across all 57 locales:
suspendThisTabHint (the button's tooltip) and the in-app "What's New" 1.3.7 entry (changelog137Title1, changelog137Desc1). The visible button label reuses the existing ctxSuspendThis. The 11 best-effort locales (Amharic, Bengali, Gujarati, Kannada, Malayalam, Marathi, Odia, Tamil, Telugu, Filipino, Swahili) use machine translations flagged for a future native-speaker pass.
- In-app "What's New" page updated to 1.3.7 (
changelog.html) so it leads with this release instead of 1.3.6. As before, the page only auto-opens on major version bumps, so updating to 1.3.7 does not pop the What's New tab.
Audit
- All 57 locale files validated: JSON validity, key parity against
en (203 keys, no missing or extra keys), no empty values, no untranslated-English left in non-English locales for the new keys, and no unexpected placeholder tokens. background.js, popup.js, and changelog.js pass node --check, and every data-i18n* reference in popup.html / sidepanel.html / changelog.html resolves to a real key. Permissions are unchanged from 1.3.6.
Verifying this build
This zip was built by GitHub Actions from commit ae103e08b42fff6ff51e58b1ae39ab0825186a79. You can re-run the workflow on a fork to verify the output matches.
sha256: bb35f9278c10f21faa8ea6f3dd1e2e7d5447a6a350f126b6eac459c0f314ad01
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.6
Localization and polish release. No new permissions; the suspension pipeline is untouched (the only background.js change is rebuilding the context menus on startup).
Fixed
whitelistPlaceholder was untranslated - and stale - in all 56 non-English locales. Every locale showed the old English example.com or site.com/path/* (also missing the full URL hint that was added to en). Now localized across all 57; the example.com / site.com/path/* example tokens stay literal, only the connectors are translated.
- Onboarding inline fallbacks still read "30 minutes" and "zero RAM" after 1.3.5 changed the default timer and reworded the feature. Synced the static HTML to the current
en values (featureAutoSuspend, featureZeroRam, onboardingTimerTip) so a failed i18n pass no longer shows stale copy.
- Context menus didn't follow a Chrome UI-language change. They're created once at install in the then-current language;
createContextMenus() (which removeAlls then recreates and re-reads chrome.i18n) now also runs in onStartup, so a language change applies on the next launch instead of staying stale.
privacyFooterText left "open source" in Latin script mid-sentence in ru / uk while the other Cyrillic locales had translated it. Now uses native terms (открытый исходный код / відкритий вихідний код).
Changed
- Review prompt reworked end to end (
popup.js, shared by popup + side panel). It now appears only once the install is at least 7 days old (drowzy_stats.installDate), at least 50 tabs have been suspended, and the UI has been opened before (reviewPromptOpenCount >= 2) - so never on install, never on first open, never right after an update. Buttons are now Leave a review / Maybe later / Don't ask again: "Maybe later" snoozes for 14 days (reviewPromptSnoozedUntil), while "Leave a review" and "Don't ask again" both set reviewPromptCompleted. No star-rating ask, no reward. A one-time migration folds the old reviewPromptDismissCount / reviewPromptLastDismissed state into the new model so prior dismissers are never re-prompted. New keys reviewLeave, reviewMaybeLater, reviewDontAsk; removed the now-dead reviewYes / reviewNo / reviewLeaveTitle / reviewReportTitle / reviewDismissTitle from all locales.
Added
- The 12 keys that shipped untranslated in 1.3.4/1.3.5 are now translated in all 57 locales - they had been falling back to English everywhere: the whitelist toasts (
addedToWhitelist, removedFromWhitelist, alreadyWhitelisted), the Keyboard Shortcuts row (keyboardShortcuts, customizeShortcuts, shortcutsAllSet, shortcutsSomeUnset), and the Share Stats text (shareStatsHeader, shareStatsLineAllTime / Today / Ram / Since).
- Right-to-left layout.
popup.js, onboarding.js, and changelog.js set document.documentElement.dir for ar / he / fa / ur, and CSS mirrors the accent rail and the overlapping favicon stack. Popup, side panel, onboarding, and changelog now render correctly right-to-left.
- Uninstall feedback page is now localized. It's a standalone GitHub Pages page with no
chrome.i18n, so it self-detects navigator.language (with region handling for pt-BR, zh-CN/zh-TW, es-419, en-GB, he) and translates the visible text inline, falling back to English. The submitted form values stay English so the feedback dashboard stays consistent across languages.
- In-app "What's New" page localized - the section headings (
changelogReleaseHeading), the 1.3.6 entries, and a condensed set of 1.3.5 highlights. The full technical history stays in this file.
Polish
- Review prompt stacks the question above wrapped buttons so long languages (German, Russian, French, Portuguese) don't overflow or clip the banner; "Leave a review" uses
--gradient-primary for readable contrast in both light and dark themes.
- 11 less-common languages (Amharic, Bengali, Gujarati, Kannada, Malayalam, Marathi, Odia, Tamil, Telugu, Filipino, Swahili) use best-effort machine translations for the new strings and are flagged for a future native-speaker pass.
Audit
- All 57 locale files validated: JSON validity, key parity against
en (200 keys, no missing or extra keys in any locale), placeholder integrity (every $DOMAIN$ / $COUNT$ / $RAM$ / $DATE$ / $BOUND$ / $TOTAL$ token present), and no empty values.
- No English left behind: every
data-i18n* attribute and chrome.i18n.getMessage / t(...) call resolves to a real key, and a script-integrity scan of all keys across the non-Latin locales confirmed correct scripts, no mojibake, and no untranslated-English values.
- Changelog auto-open still fires only on major version bumps, so updating to 1.3.6 does not pop the What's New tab.
Verifying this build
This zip was built by GitHub Actions from commit c81a3c848f8706d8cb89d9f958879b2d3d76efa1. You can re-run the workflow on a fork to verify the output matches.
sha256: cc1554761fb5d36874482f8b15e23a63b1829fab0544dac8c67f787564d955ab
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.5
ml3dev
released this
16 May 03:37
Fixed
- Whitelist remove button replaced with a visible "Remove ×" pill (was an icon-only X users reported missing entirely). Optimistic fade on click +
_whitelistSig reset to defeat a race with the polling loadAll that could otherwise short-circuit the re-render.
- "Never suspend this site" toggle flips optimistically + confirmation toast (
Added X to whitelist / Removed X from whitelist). New i18n keys: addedToWhitelist, removedFromWhitelist.
- Whitelist text-input add now toasts to match: success or
X is already in whitelist on duplicate. New i18n key: alreadyWhitelisted.
renderShortcutsStatus now re-polls on each loadAll so the Settings → Keyboard shortcuts row updates without a popup reopen if the user edits bindings in chrome://extensions/shortcuts via the Customize link. Previously it ran once at popup init only.
- "Suspend Others" silently skipped tabs in Chrome's
loading state. suspendTab's pre-discard recheck bailed on fresh.status === 'loading' for every path. SPAs like Reddit sit in loading indefinitely from background streaming, so the manual action did nothing on those tabs. Check is now inside if (opts && opts.auto) - manual paths bypass it.
- Welcome page showed bogus shortcut hints for commands Chrome couldn't auto-bind.
onboarding.js now hides the <li> entirely for unbound commands; bound commands swap the <kbd> for the real cmd.shortcut.
closeDuplicates could close a live tab and keep a discarded shell. Pick order is now pinned → active → live → first; the live-tab tiebreaker is new.
- Popup whitelist toggle no-op'd on IP-literal current tabs (
http://[::1]/, http://127.0.0.1:3000/). Gate now matches background.addWhitelist's accept set (IPv4 dotted-quads + ::1).
addWhitelist skipped the ^www\. strip on whitespace-prefixed input. .trim() runs before the regex now. Read-time normalization in getSettings had been masking it.
- Share Stats clipboard text was hardcoded English. All five strings now go through
chrome.i18n.getMessage (new shareStats* keys with $COUNT$ / $RAM$ / $DATE$ placeholders).
- Share Stats used hardcoded
150 instead of MB_PER_TAB. Missed spot from 1.3.4's constant cleanup.
Changed
- Default auto-suspend timer: 30 min → 15 min. Industry median is 10-15 min (Auto Tab Discard 10, Tab Wrangler 20, Chrome Memory Saver 2 hrs and panned for it). 30 was on the long end; 1.3.3 added the first-run quick-suspend pass specifically because users didn't notice memory savings at 30. Drowzy's protections (active/pinned/audio/forms/warning banner) let it run more aggressive than competitors. Existing users keep their setting via
chrome.storage.sync. Updated featureAutoSuspend + onboardingTimerTip across all 57 locales (substring 30→15 inside those two keys only).
- Windows
suggested_key defaults rotated to less-claimed combos: suspend-current Alt+Shift+Z → Alt+Shift+P, wake-all Alt+Shift+W → Alt+Shift+O. Old combos collided too often (Zoom, screen recorders, Office). New installers only - Chrome doesn't retry suggested_key for existing installs. suspend-others stays on Alt+Shift+S.
Added
-
Whitelisted-sites label now shows a count (
Whitelisted sites (5)) so the list reads as bounded; it already scrolled at max-height: 140px.
-
Settings → "Keyboard shortcuts" row. Shows bind status from
chrome.commands.getAll() ("All set" or "$BOUND$ of $TOTAL$ set") and a Customize link to chrome://extensions/shortcuts. Persistent path to the shortcuts editor; welcome page was the only entry before and it only shows on install. New i18n keys: keyboardShortcuts, customizeShortcuts, shortcutsAllSet, shortcutsSomeUnset. Chrome has no programmatic shortcut-set API (chrome.commands exposes only getAll()), so the editor is the only path.
Polish
- Whitelisted badge icon:
star → shield. Star reads as bookmark/favorite; shield matches the rest of the whitelist UI (the "Never suspend this site" toggle, the empty-whitelist state, the popup button), where shield/shieldCheck already mean "protected from suspension." Gold badge color kept so the row still visually distinguishes from blue/green/amber neighbors.
- "Today" stat icon:
moon → calendarDays. Moon is the right icon for sleeping tabs and dark-mode (both = night) but reading "today" off a crescent doesn't connect. Calendar icon makes the stat readable at a glance. Added Lucide's calendar-days SVG to icons.js.
fmtRam strips trailing .0 for whole-GB values ("2 GB" not "2.0 GB"). Affects stats strip, hero card, suspend toast, share text.
- Wake-tab click from popup focuses the destination window via
chrome.windows.update({focused: true}) so a click on a tab in another window actually takes you there.
- Per-tab suspend button has
aria-label matching its title.
- Toolbar action-badge color changed
#6C63FF → #7c3aed to match Drowzy's brand accent (it was a slightly-off indigo before). Also explicitly set the badge text color to white via chrome.action.setBadgeTextColor (feature-detected - Chrome 110+; older browsers fall back to Chrome's default auto-contrast).
- Welcome page CTA rewritten from "Drowzy is already running. Open a few tabs and try it out!" (misleading with 15-min default) to "Drowzy is now running. Open it from your toolbar and hit 'Suspend Others' to try it out." - points at a button that gives instant feedback. Updated
onboardingCta in en / en_US / en_GB + HTML fallback; 54 translated locales keep their existing copy until translators update.
- Popup
max-height raised 520 → 580px + html { overflow: hidden } added. Old 520 surfaced a near-useless ~20px scroll range in popups with 3+ visible tabs. 600 (Chrome's nominal max) triggered a double scrollbar on some displays because actual usable popup height is closer to 580 in practice. Sidepanel unaffected (overrides with max-height: none).
Verifying this build
This release attaches the exact .zip uploaded to the Chrome Web Store. To verify it hasn't been tampered with:
sha256: 585f6b37e13423982b039a1f0f20a4def69dae68f659952e9bec1af4d3d5134c
You can reproduce the build yourself by checking out v1.3.5 and zipping the extension files (everything except .git/, .github/, *.md, docs/).
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.4
ml3dev
released this
16 May 03:37
Small quality update from a full audit pass: bug fixes, polish, accessibility, and one minor code-quality cleanup. No new permissions, no new strings, no schema changes.
Fixed
- Startup suspend pass could be skipped when the service worker died before the 5s timer fired.
onStartup scheduled suspendAllOnStartup via setTimeout(..., 5000). Once onStartup's awaits resolve, the service worker has no pending events keeping it alive; Chrome can terminate it after ~30s of idle, and a setTimeout doesn't count as keepalive. On a cold browser launch where the worker has no other work, the 5s deadline was usually hit, but not guaranteed. Replaced with chrome.alarms.create('startup-suspend', { delayInMinutes: 0.1 }) which Chrome clamps to ~30s in production and survives a worker restart. The onAlarm handler now dispatches the startup-suspend alarm to suspendAllOnStartup (after re-fetching settings, in case the user toggled "Suspend on startup" off between the schedule and the fire).
handleSuspendCurrent fell back to candidates[length - 1] when no next tab existed, which could land far from the active tab (the last candidate in the filtered list, not necessarily the previous tab). Now it explicitly looks for the closest previous tab (largest index below activeTab.index), then falls back to any candidate only if both next and previous are absent. Triggered when you suspend the active tab via Alt+S / context menu while it's the rightmost tab in a window.
Changed
MB_PER_TAB is now defined once per file rather than scattered as a magic 150 in three places in popup.js. The constant must stay in sync with background.js's MB_PER_TAB; comment in popup.js calls this out. No user-visible change; defensive cleanup so a future tuning is a one-line edit.
Polish
prefers-reduced-motion honored on the onboarding page. The popup, side panel, changelog, and privacy-policy pages all already had the media query that flattens animations and transitions to 1ms; onboarding.html was the only page that didn't, so a user with reduced-motion enabled would still see the 0.4s fade-up of the welcome container. Added the same * { animation-duration: 1ms !important; ... } block to onboarding.html's inline style.
- Whitelist input HTML placeholder synced with the i18n value. The 1.3.3 release updated
en/messages.json#whitelistPlaceholder to "example.com, full URL, or site.com/path/*" but the static placeholder= attribute in popup.html and sidepanel.html was still "example.com or site.com/path/*". Localization overwrites it at popup-open, so users normally see the new wording, but a failed i18n pass (extension reload race, unusual locale) would leave the old text visible. HTML defaults now match en exactly.
Audit
- Full read-through of all source files.
background.js, popup.js/html/css, sidepanel.html, formcheck.js, icons.js, onboarding.html/js, changelog.html/js, privacy-policy.html/js. No additional bugs found beyond the two fixed above; the 1.3.2 / 1.3.3 polish work held up.
- All 57 locale files validated for JSON validity, key parity against
en (175 keys, no missing/extra in any locale), and placeholder structure (every $COUNT$ / $RAM$ / $VERSION$ / $DATE$ substitution token present in en is also present in the corresponding translated value). No locale repairs needed.
- i18n key reference scan confirms every
data-i18n* attribute and chrome.i18n.getMessage / t(...) call resolves to a real key, and every key in en/messages.json is reachable from source (including the dynamic ones referenced via variable interpolation: t(statusKey) for the current-tab status and BADGES[reason].labelKey for the protect-reason badges).
- Chrome MV3 best practices verified for the suspend pipeline:
chrome.tabs.discard() remains the canonical API; tab.lastAccessed (Chrome 121+) is feature-detected with typeof === 'number' and gracefully falls back on 120; chrome.storage.session correctly used for the in-memory tabTimestamps cache that survives worker restarts via re-seeding from tab.lastAccessed; chrome.alarms minimum delay (0.5 min in production) respected. The known quirk that tab.lastAccessed becomes undefined for discarded tabs is handled correctly: every code path that reads it either guards with the typeof check or has already early-returned on tab.discarded.
Verifying this build
This release attaches the exact .zip uploaded to the Chrome Web Store. To verify it hasn't been tampered with:
sha256: ad5e3179f250108483b27ba5781c79bbbaa506d3726e3601ecb75842be0f677f
You can reproduce the build yourself by checking out v1.3.4 and zipping the extension files (everything except .git/, .github/, *.md, docs/).
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
v1.3.3
ml3dev
released this
16 May 03:37
Added
- First-run quick-suspend pass (
firstRunQuickSuspend in background.js). 30s after install, Drowzy suspends tabs that Chrome reports as idle for 10+ minutes via tab.lastAccessed (Chrome 121+; skipped on 120). Without this, a fresh installer waited the full 30-minute timer before any visible effect - the most common reason cited for "didn't notice a memory difference" in uninstall feedback. Conservative threshold (10 min via Chrome's own tracking) avoids surprising a user with a recently-used tab going away. Honors all the usual protections (pinned, audio, whitelist, internal pages).
tab.lastAccessed honored in suspend decisions (shouldSuspend and the final recheck inside suspendTab). Drowzy now takes the more recent of its own activation timestamp and Chrome's tab.lastAccessed (Chrome 121+) when deciding whether a tab is past the idle threshold. Fixes a class of "tab I just used got suspended" caused by service-worker restarts: when the worker came up cold, Drowzy's in-memory _timestamps were re-seeded to Date.now() for missing tabs, but tab.lastAccessed had the truer "last focused" timestamp. Feature-detected so 120 still works.
- "Keep awake" button on the suspend warning banner (
formcheck.js). The banner used to be a click-to-dismiss strip with no way to actually stop the imminent discard - the only recourse was to whitelist the site after the fact. The banner now has an explicit "Keep awake" button that sends a keepTabAwake message to the background; the background bumps the tab's timestamp via touchTab and suspendTab's pre-discard recheck reads the bumped timestamp and bails out. New i18n key: keepAwakeBtn.
keepTabAwake action allowed from content-script senders in background.js#onMessage. The unauthorized-content-script guard still blocks every other action, but keepTabAwake is whitelisted because the suspend-warning banner runs in page context. Scoped to the sender's own tab id so a content script can't bump arbitrary tabs.
- Pre-discard timestamp recheck inside
suspendTab. After the form-check + message round-trips, before calling chrome.tabs.discard, the function now re-reads _timestamps[tabId] and tab.lastAccessed and aborts if either is now within the threshold. Closes the race where the user hits Keep awake during the 2500ms warning window or refocuses the tab via a different code path.
- Suspend-timer hint tooltip on the Settings row (
data-i18n-title="suspendTimerHint" in popup.html and sidepanel.html). New users with workflows where they come back to a tab every ~35 min had no hint that 30 was tunable; the tooltip points them at it. New i18n key: suspendTimerHint.
- Two new onboarding tip cards addressing the actual top uninstall reasons: "Suspending tabs you still want?" points at the timer + whitelist as fixes for over-aggressive suspends, and "Filling out a form?" points at the
protectForms setting. Both ship as data-i18n-html so the embedded <strong> survives translation. New i18n keys: onboardingTimerTip, onboardingFormsTip.
- Windows-specific keyboard shortcut defaults to avoid Microsoft Office Web access-key collisions:
suspend-current on Windows is now Alt+Shift+Z (was Alt+S). On Windows, Alt+S is the access key for Send in Outlook Web, Teams, OWA, and most Microsoft 365 surfaces. A user composing an email who hit Alt+S to send would instead suspend the compose tab - silently, with potential draft loss. macOS/Linux/ChromeOS keep Alt+S since those platforms don't have the conflict (Mac Outlook uses Cmd+Enter).
wake-all on Windows is now Alt+Shift+W (was Alt+W). Alt+W is the access key for the View ribbon in Word, Excel, and PowerPoint Web. Same per-platform override pattern.
suspend-others stays at Alt+Shift+S everywhere - no known conflict.
- Existing users who customized their shortcuts via
chrome://extensions/shortcuts are unaffected; only new installs and unmodified bindings pick up the new defaults.
- Dynamic shortcut display in the onboarding page. The
Press <kbd>Alt+S</kbd> ... lines now query chrome.commands.getAll() after i18n localization runs and replace each <kbd>'s text with the user's actual binding - so Windows users see Alt+Shift+Z / Alt+Shift+W and any user remap is reflected without re-translating 57 locale files. If a command is unbound, the translated default is left alone.
- Forecast stat in the stats strip - adaptive third slot. The third memory slot now adapts based on state to keep the strip at three items (a fourth would feel cramped). When Drowzy has actually freed memory, it shows that ("saved", blue dot,
ramEstimateTooltip). Before any tabs have been suspended but eligible tabs exist, it shows the forecast instead ("available", amber dot, ramForecastTooltip) - e.g. ~3.4 GB available. First-session users no longer see " - saved" with no signal anything will happen; they see a real number immediately, addressing the most common uninstall reason ("didn't notice a memory difference"). When neither applies, the slot shows an em-dash with the default "saved" label. Computed in getStatus as (allTabs - protected - discarded) × MB_PER_TAB and exposed as eligibleCount + estimatedMbForecast.
statForecast and ramForecastTooltip i18n keys in en/messages.json for the new strip item label and tooltip.
- Quantified toast feedback for Suspend Others and Wake All. Pre-1.3.3 the buttons flashed
Suspending... → Done → Suspend Others regardless of whether anything actually happened - a window with zero eligible tabs would still show "Done" and the user would close the popup confused. Now: suspendAllOthers and unsuspendAll both return their actual count, the popup handlers show "Suspended N tab(s) · ~M MB freed" / "Woke N tab(s)" toasts on success, and "No other tabs to suspend" / "No suspended tabs to wake" toasts when the action would have been a no-op. Removed the now-redundant Done text-flip and the 400ms timeout since the toast carries the confirmation. New i18n keys: suspendedToast, wokeToast, noOthersToSuspend, noSuspendedToWake.
- Smarter current-tab status line. The status under the active tab's domain (e.g.
"Active - won't be suspended") used to be hardcoded regardless of why the tab was protected. Now picks the actual reason in priority order: systemPageCantSuspend for chrome:// and other non-http schemes, pinnedWontSuspend when the user has Protect Pinned on and the tab is pinned, audioWontSuspend when Protect Audio is on and the tab is audible, whitelistedWontSuspend when the tab's host matches the whitelist, falling back to the existing activeWontSuspend. The whitelist button below already updated correctly; only the status text was stale. New i18n keys: pinnedWontSuspend, audioWontSuspend, whitelistedWontSuspend, systemPageCantSuspend.
- Onboarding now includes a pin-to-toolbar tip and a one-click link to remap shortcuts. Two of the most common first-hour confusions: "where is the icon?" and "I don't like the default keys." A subtle accent-bordered tip card sits above the CTA with a tip about pinning Drowzy via the puzzle icon, plus a link that opens
chrome://extensions/shortcuts directly (<a href="chrome://..."> is blocked from regular pages, so the click handler uses chrome.tabs.create). New i18n keys: onboardingPinTip, onboardingRemapHint.
Changed
- Strip-stat dot color for the third slot stays blue (
:last-child) by default for "saved", and is overridden to amber (.strip-stat.strip-stat-forecast) when the slot is rendering the forecast instead. JS toggles the class as the slot's mode flips between saved/forecast/empty.
- Suspend Others and Wake All buttons disable themselves when there's nothing to act on.
renderStatsStrip now flips btn.disabled based on status.eligibleCount / status.suspendedCount and sets a title tooltip explaining why (noOthersToSuspend / noSuspendedToWake). The existing .btn:disabled { opacity: 0.5 } rule already handled the visuals - no CSS change needed. The click handlers also short-circuit on this.disabled as belt-and-braces.
- Whitelist input placeholder updated from
"example.com or site.com/path/*" to "example.com, full URL, or site.com/path/*". The popup's addFromInput already strips http(s):// and www. so users can paste full URLs directly, but the old placeholder didn't say so - users would manually trim URLs first. The 56 non-English locale translations of whitelistPlaceholder still say the old wording; semantically equivalent so they stay valid until the next translation pass.
Fixed
- Stale-init of
_timestamps could give every tab a fresh 30-min timer after a service-worker restart. Caught in the pre-publish audit. When the worker came up cold and _timestamps was empty (browser restart, session-storage cleared, or first install), both initTimestamps and the lazy-reload branch in checkAndSuspendTabs seeded missing entries with Date.now() - so a tab Chrome itself reported as last-accessed 45 minutes ago still got lastActive = NOW, and the new tab.lastAccessed-aware shouldSuspend couldn't help because it took the max of the two (NOW vs. 45m-ago = NOW). Fix: seed missing entries from tab.lastAccessed when Chrome 121+ reports it, falling back to Date.now() only on Chrome 120. Now a service-worker restart recovers the actual idle time instead of resetting it. Same fix applied to the lazy-init in checkAndSuspendTabs and the timer countdown in getTabList so the popup's "Xm" badge matches the actual eligibility check.
- Forecast strip-stat had no visual differentiation from "saved". The 1.3.3 changelog claimed an amber dot for the third slot when rendering the forecast (vs blue for actual saved memory), but neither
popup.css nor popup.js actually toggled th...
Read more
Assets
3
Loading
Uh oh!
There was an error while loading. Please reload this page.
|