Hey all, I made a Firefox extension (signed by Mozilla) specifically to add Show/Hide Child Comments functionality similar to how RES had it (where the parent comment is still visible).

It’s not very useful, but I could use some feedback on tightening up the Javascript. I’m not a JS beginner, but I know I can do better, so any tips are welcome!

EDIT: Also, if anyone has any suggestions for the extension, I’m open to those as well.

  • cyberic@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    3 months ago

    I really miss the RES feature of keyboard navigation (mainly j, k, to move between posts.) Thanks for making this!

    • kn0wmad1c@programming.devOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Hey, just a heads up - I updated the extension to add some rudimentary keyboard navigation. Your j and k are there, and also you can use m to toggle the child comments for the selected comment.

      • Baizey@feddit.dk
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        3 months ago

        If you wanna tighten up your extension build process feel free to steal my build setup :) (https://github.com/Baizey/UniversalAutomaticCurrencyConverter )

        It’s using esbuild and I’m using it to bundle for both chrome and Firefox separately (they expect slightly different manifest files), has multi entry points support (background, content, options and popup) and builds for ts/js

        • kn0wmad1c@programming.devOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          3 months ago

          Your repo made me want to convert the extension to TS, which I’ve never written in before.

          So I did that, and I’m getting to learn a new syntax! Thanks :D

  • LarkinDePark@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I tend to think that extensions for websites should be treated as feature requests by the website. Reddit for example should have just incorporated RES features.

    One I liked was tags for users to I could remember who they are better.