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
    link
    English
    36 months 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.

    • @[email protected]OP
      link
      fedilink
      36 months 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
        link
        36 months ago

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