Skip to content

About

A Chrome extension that auto-detects times on any webpage and shows them in your target timezone — with quick comparisons to a handful of pre-selected timezones on hover.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Timezone Peek

A Chrome extension that auto-detects times on any webpage and shows them in your target timezone — with quick comparisons to a handful of pre-selected timezones on hover.

Screenshots

Hover anywhere on the web

A timestamp on a Google search result, converted on hover to UTC, Berlin, Mumbai, and Tokyo.

Hovering a time on a Google search result

Works inside CI log viewers (Shadow DOM + <pre>)

GitLab renders its job log inside an open Shadow DOM with the content wrapped in <pre>. With Scan code blocks too enabled in the popup, the extension descends into the shadow root and underlines timestamps like 11:56:51 for hover conversion.

Hovering a timestamp inside a GitLab CI job log

Popup settings

Pick a target timezone, add comparison cities for the hover tooltip, toggle 12/24h, opt into code-block scanning, and force a rescan of the current tab when needed.

Timezone Peek popup configuration

What it does

  • Scans the visible text of every page for time strings like 3pm EST, 14:00 UTC, 9:15 am, or Tomorrow at 10:00 Asia/Tokyo.
  • Underlines each detected time. Hovering shows a tooltip with the time converted to your target timezone plus your pre-selected comparison timezones.
  • Descends into open Shadow DOMs (needed for log viewers like GitLab CI, GitHub Actions, and many modern web-component dashboards).
  • A popup lets you configure target, presets, time format (12/24h), a "Scan code blocks too" opt-in, a Rescan-tab escape hatch, and a quick "type a time, see it converted" calculator.

Install (developer mode)

  1. Open chrome://extensions.
  2. Toggle Developer mode on (top right).
  3. Click Load unpacked and pick this folder (timezone-converter-extension/).
  4. Pin the extension icon, open the popup, and pick your target + comparison zones.

Try it

After loading, open any page that mentions a time — a calendar invite preview, a release-notes blog post, an event page — and hover over the underlined times.

You can also test the popup's Quick convert field with inputs like:

  • 3pm EST
  • 14:00 UTC
  • Mon 9am PT
  • tomorrow 10:00 Asia/Tokyo
  • 5/19 4pm GMT+2

Project layout

timezone-converter-extension/
├── manifest.json                  # MV3 manifest
├── background/
│   └── service-worker.js          # Install-time defaults
├── content/
│   ├── tz-detector.js             # Scans pages, wraps hits, shows tooltip
│   └── tooltip.css                # Tooltip + inline-hit styling
├── lib/
│   ├── timezones.js               # Curated IANA list + abbreviation aliases
│   └── parse.js                   # Standalone parser used by the popup
├── popup/
│   ├── popup.html                 # Settings UI
│   ├── popup.css
│   └── popup.js                   # Reads/writes chrome.storage.sync
├── icons/                         # 16/32/48/128 PNGs
├── screenshots/                   # README assets
├── ARCHITECTURE.md                # How it all fits together + tradeoffs
├── PACKAGING.md                   # Build a .zip + submit to Chrome Web Store
└── README.md

Privacy

The extension only reads page text in your own browser. No network calls. Settings are stored via chrome.storage.sync so they roam between your Chrome installs but never leave Google's sync infrastructure.

Permissions

Permission Why it's needed
storage Persist your target timezone, presets, time format, and on/off state.
activeTab (Future-proofing) used if we add a "convert selection" command.
host_permissions: <all_urls> Detect times on whatever page you happen to be on.

If you'd rather restrict where the extension runs, narrow host_permissions in manifest.json to specific origins.

Known limitations

  • Ambiguous abbreviations (IST = India vs Ireland vs Israel) resolve to the most common reading (India). Use IANA ids when authoring docs you control.
  • Bare numbers like 14 or 3 without : or am/pm are intentionally ignored to avoid false positives.
  • Dates without an explicit reference fall back to "today in the source zone" — fine for "let's meet at 3pm EST" but not for historical references.
  • Open Shadow DOMs are scanned automatically. Closed Shadow DOMs (rare) are unreachable to content scripts; the extension can't see text inside them.

See ARCHITECTURE.md for the deeper rationale on each of these.

About

A Chrome extension that auto-detects times on any webpage and shows them in your target timezone — with quick comparisons to a handful of pre-selected timezones on hover.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages