Skip to content
mtskfPublic

About

A modern, privacy-focused Chrome extension that snoozes tabs and restores them automatically at the scheduled time.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Snooooze logo

Snooooze

Close a tab now. It reopens when you say.

Add to Chrome  ·  Website  ·  Report an issue

Snooooze is a Chrome extension. Snooze a tab and it closes, then reopens at the time you chose, such as tomorrow morning or next Monday. It's free and open source. Your tabs are stored on your computer, and there's no account.

What it does

  • Each snooze time has its own key, so snoozing a tab is one key press. You can change the keys in Options.
  • Hold Shift with any key to snooze every tab in the window. They come back together in a new window.
  • If a tab comes due while Chrome is closed or your computer is asleep, it opens once Chrome is running and you're back online.
  • Tomorrow means 8:00 AM and this evening means 5:00 PM, unless you set other times in Options.
  • Options lists every snoozed tab. You can search the list, open a tab early or delete it, and Undo brings back one you deleted by mistake.
  • Export saves your snoozed tabs to a JSON file, and Import loads them back, on this computer or another one.

Only ordinary web pages (http and https) can be snoozed. Chrome's own pages, such as Settings, stay open.

Snoozed tabs, settings and a count of snoozes (used once, to ask for a store rating) are kept in Chrome's storage on your own computer. There's no server and no tracking. See the privacy policy.

Keys

Open the popup with Cmd + . on a Mac or Ctrl + . on Windows and Linux. Clicking the toolbar icon works too. Then press one key:

Key Snooze until
L Later today (in an hour)
E This evening
T Tomorrow
S This weekend
N Next Monday
W In a week
M In a month
P Pick a date

Hold Shift with any of these to snooze the whole window.

The letters can be changed in Options. The popup shortcut is set by the browser, at chrome://extensions/shortcuts (edge://extensions/shortcuts in Microsoft Edge).

Development

You need Node.js and pnpm.

git clone https://github.com/mtskf/Snooooze.git
cd Snooooze
pnpm install
pnpm build

Then load the build in Chrome:

  1. Open chrome://extensions.
  2. Turn on Developer mode (top right).
  3. Click Load unpacked and choose the dist folder.

After a change, run pnpm build again and click the reload button on the extension's card. pnpm dev starts a plain Vite server and doesn't produce an extension you can load.

Command What it does
pnpm exec vitest run Run the tests once (pnpm test keeps watching)
pnpm typecheck Check types
pnpm build Build the extension into dist/

How the extension works inside, and why it's built that way, is written up in dev-docs/: ARCHITECTURE.md, SPEC.md and DECISIONS.md.

Releasing

  1. Set the new version in package.json, public/manifest.json, docs/index.html (the footer and softwareVersion in the JSON-LD) and the footer of docs/ja/index.html.
  2. Add the release to dev-docs/CHANGELOG.md.
  3. Run pnpm install --frozen-lockfile, so the build uses exactly the locked dependencies.
  4. Run pnpm build.
  5. Zip the contents of dist: cd dist && zip -r ../release/snooooze-vX.Y.Z.zip .
  6. Upload the zip from release/ in the Chrome Web Store developer dashboard.
  7. Upload the same zip to Microsoft Edge Add-ons in Partner Center. Certification can take up to seven business days.
    • Update: select the extension, upload the zip on its Packages page, then click Publish.
    • First submission: before submitting, load the build in Edge and run these checks (only the load and the shortcut page are done so far, ADR-033), then note the results in the Edge follow-up in dev-docs/TODO.md:
      • Shortcut and alarm: first check that Options shows the same shortcut as edge://extensions/shortcuts. Then, on an ordinary http(s) tab, open the popup with the global shortcut (Cmd + . / Ctrl + .) and press L while it is open, leave Edge running past the due time, and confirm the tab reopens without restarting Edge.
      • Notification: in the service worker's DevTools console, run chrome.notifications.create({ type: 'basic', iconUrl: chrome.runtime.getURL('assets/icons/icon128.png'), title: 'Snooooze', message: 'test' }) and confirm the notification shows with the icon. This only proves Edge shows notifications with the extension's icon; the extension's own failed-restore notice and its click-through to the failed tabs list are covered by unit tests on mocks, because a restore failure is hard to cause by hand, and stay unverified in Edge.
      • Privacy policy: the shared page is browser-neutral by choice, while Microsoft's policy 1.5.2 says it should mainly refer to Edge. Ask Microsoft's extension developer support (see the support section of the guide) whether the shared URL is fine, and note the answer in the Edge follow-up. If they say no, add an Edge-facing introduction before submitting; certification has the final say either way.
      • Submit: choose Create new extension, upload the zip, fill in Availability, Properties, Privacy and Store listings, then click Publish. That opens the certification page: add any testing notes and click Publish again to submit. Microsoft's publishing guide has each step.

Both stores take their title and summary from public/_locales/ (ADR-032) and share one listing text per language (ADR-033):

Listing field Source
Description docs/STORE_DESCRIPTION.txt, docs/STORE_DESCRIPTION.ja.txt
Search terms (Edge only) docs/STORE_SEARCH_TERMS.txt, docs/STORE_SEARCH_TERMS.ja.txt, one term per line
Logo (Edge, per language) public/assets/icons/icon128.png (Edge's minimum size)
Promo tile and screenshots docs/store/
Privacy policy https://mtskf.github.io/Snooooze/privacy.html

Support

If Snooooze saves you some tabs, you can buy me a coffee.

License

MIT © mtskf. See LICENSE.

About

A modern, privacy-focused Chrome extension that snoozes tabs and restores them automatically at the scheduled time.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages