Skip to content

A FireFox Plugin to Automatically Convert any timezone/format on page to Local time

Notifications You must be signed in to change notification settings

rakshith111/Time-Sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A FireFox Plugin to Automatically Convert any timezone/format on page to Local time

Most of the code was generated using GPT-4

INSTALLATION

Plugin is now available on Mozilla firefox addon!!.
You can find it here

image

USAGE

  • Select any text on the page and right click to convert it to local time, it will only convert if the text is a valid date
  • Click on the plugin icon to open the popup
  • Toggle the Auto Convert switch to enable/disable auto conversion
  • Toggle the Local Timezones switch to enable/disable local timezones - If enabled, the plugin will only convert timezones to local timezone (enabled by default) - If disabled, the plugin will convert any timezone to the selected timezone - Select any timezone from the list or search for it by typing in the search bar and double click to select it
  • Hover over any text on the page to see the Original date.
  • Go to the Options page to add/remove domains to the whitelist to control whether the auto converter should run on the domain

The auto script wont run on pages which are excluded in the manifest as they can affect browser's performance but manual mode is allowed, so select text -> convert will work

Currently available features

  • Choose any timezone (Toggled)
  • Choose local timezones (BY DEFAULT)
  • List all timezones
  • Search for timezone (Can double click to select)
  • Parse any format, timezone and convert to local timezone and format
  • Whitelist/Blacklist pages in the options page
- [ ] Regex to parse any format
- [ ] Regex to parse any timezone
- [ ] Regex to parse any format and timezone

  • Right click to convert date by default
  • Auto convert date by default (Toggled)

Screenshots

Screenshot_4

Auto Converted page, one can hover over the converted, underlined date to see original text

Screenshot_5

Here is a mail before converted in a different format

Screenshot_6

The text is selected and when you right click, a drop down menu with the option to "Convert Date and time" is available

Screenshot_7

Upon converting , one can hover over to see the original text

Screenshot_8

Minimalist Menu

Untitled

Search feature to find non local timezone, can be selected by double clicking

image

The plugin now allows users to add/remove domains to the whitelist


Features to be added

  • Choose any format (Toggled)
  • List all formats
  • Search for format (Can double click to select)

LIBRARIES USED

Chrono-node (Packed via browserify) - A natural language date parser in JavaScript.
Compromise (Packed via webpack) - A modern natural language processing library for the browser and node.
Compromise-dates(Packed via webpack) - A plugin for Compromise to parse, manipulate, and display dates.
Luxon - A library for working with dates and times in JS.
Moment - A lightweight JavaScript library for parsing, validating, manipulating, and formatting dates.
Moment Timezone with data - A plugin for Moment to parse, manipulate, and display dates in any timezone with data.


CURRENT ISSUES ⚠️

  • The plugin works on all pages, I've whitelisted only a few heavy pages for now will add a whitelist option in the future
  • Not sure if the autoconvert feature works on pages that use iframe or frame tags
  • The plugin also edits the inline code in StackOverflow, I'm working on a fix for this
  • More testing is required to see how the nlp libraries work on different pages

Attributions

Working hours icons created by Maan Icons - Flaticon
Sun icon by Kmg Design
Moon icon by Kmg Design Wallpaper: Smoke background texture black abstract design by rawpixel.com on Freepik
Settings Icons: bejombah-icon on Iconfinder

Special thanks to @MAX-dev2020 for contributing

About

A FireFox Plugin to Automatically Convert any timezone/format on page to Local time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages