So I was reading this post and decided to make the tool described, as a userscript (I credit ChatGPT with doing most of the work, which went pretty quickly). To use it, install a compatible userscript browser extension such as https://violentmonkey.github.io/ , then press install on the linked page. Reddit comments should now have a ‘copy-context’ button that will put the comment chain in your clipboard. I made it for old.reddit so probably won’t work with the redesign. Another limitation is that it will only work to copy what is on the current page, so if the comment chain is too deep it’s not going to get all of it.

Any feedback is welcome. Also if someone who can read javascript wants to give it a once-over and confirm for people that it isn’t malicious that would be cool too.

  • EK13@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    I don’t mean to be rude since this seems like a good script and it’s really cool that you were able to get ChatGPT to help. I just find the idea of people writing code they don’t understand using an LLM, publishing it, and then expecting someone else to check that it’s safe a little bit troubling. Credit to you, you’ve been transparent about that being the case but it got me thinking about other developers who might not be so upfront.

    • chicken@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      That isn’t actually what I meant by that. I am a programmer, I fully understand the code and know what it does, and can personally attest that it is safe.

      What I meant is that people might not trust me to not be trying to trick them into running malware, so I welcome any scrutiny.

      • EK13@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Oh I see, that makes sense. Sorry that I interpreted it differently based on the post!

    • Haui@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Amazing indeed! Thanks a lot for the ping. I switched instances in between. Gonna ping myself @haui_lemmy@lemmy.giftedmc.com

    • Lvxferre@lemmy.mlM
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I can understand your view - Reddit has piles of garbage that is best forgotten, and we should be carving our own space here.

      However, there’s still good content there, that still makes people to visit that shithole. Hand-picking it and copying it to Lemmy is, IMO, a good way to make people rely less on Reddit. And OP’s tool simply make this a bit more convenient.

        • chicken@lemmy.dbzer0.comOP
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          That’s fair, but I think the post that inspired this made a good point that there are many Reddit comment chains with actually useful information that can’t be found elsewhere. This is a manual tool, not a bot, and I think it’s fair to trust that Lemmy users would use it to specifically share the actually good stuff. For people who really want to repost cringe, there’s already the popular option of Twitter screenshots.