r/JavaScriptTips • • Jun 25 '25

Building a Gmail Extension to Highlight Urgent Emails — Tips or Experience?

Hey everyone,

I’m working on a Gmail Chrome extension that scores and color-tags emails based on urgency — think of it like a priority radar. The goal is to quickly visualize which emails need attention first, using cues like:

  • Time unread (bonus points the longer it stays unopened)

  • Critical/secondary keywords (e.g. “urgent”, “logistics”, etc.)

  • Time of sending (emails sent outside working hours get a bonus)

  • No backend — everything is calculated on-the-fly for visible emails only

  • Color-coded dots (gray, blue, orange, red, black) next to each mail

I’m curious:

  • Have any of you worked with the Gmail DOM or done similar UI overlays?

  • Got any tips on handling Gmail’s dynamic content (infinite scroll, label switching, etc.)?

  • How would you handle “urgency sensitivity”? Should it be customizable per user?

  • Any must-know tricks or libraries that help when working with Gmail or similar interfaces?

Appreciate any insight, feedback, or even just “gotchas” to avoid.

Thanks in advance!

1 Upvotes

0 comments sorted by