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.
A timestamp on a Google search result, converted on hover to UTC, Berlin, Mumbai, and Tokyo.
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.
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.
- Scans the visible text of every page for time strings like
3pm EST,14:00 UTC,9:15 am, orTomorrow 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.
- Open
chrome://extensions. - Toggle Developer mode on (top right).
- Click Load unpacked and pick this folder (
timezone-converter-extension/). - Pin the extension icon, open the popup, and pick your target + comparison zones.
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 EST14:00 UTCMon 9am PTtomorrow 10:00 Asia/Tokyo5/19 4pm GMT+2
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
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.
| 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.
- 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
14or3without:oram/pmare 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.


