maksverver / astral-codex-eleven

A Chrome browser extension to speed up loading of posts on https://www.astralcodexten.com/ by replacing the comments widget.
MIT License
4 stars 2 forks source link

Start consolidating options in options.js. #17

Closed Pycea closed 4 months ago

Pycea commented 4 months ago

Remove the date format and collapse depth options from the options passed to replaceComments and move them to options.js instead. Move comment header time creation out of ExtCommentComponent and into an option.

The time format option is more of a pseudo-option, in that it doesn't have a value that it uses itself, but instead uses the values of other options to format the time. For example, there may be an option to use 24 hour time, and the time format option will check this when filling in the time fields. This means that the other time related options will just be values holders that don't have to handle anything themselves.

Performance: