News for hackers. Stuff that matters.
Re:Show HN: HN comments sidebar bookmarklet by srimukh on Saturday June 24, 2023 @07:14PM (#36463557)
Thanks! For now, I added a warning under the gist. Not that this is an excuse, but I put this together in about 30 minutes using GPT-4 for fun without much consideration about robustness or security. I will maybe try to rewrite it when I find time.
Re:Show HN: HN comments sidebar bookmarklet by jfdi on Saturday June 24, 2023 @09:12PM (#36464278)
Please do! Besides being a fun exercise it’s also a neat idea. Comments from the HN community make the content posted almost always more interesting imho
Re:Show HN: HN comments sidebar bookmarklet by srimukh on Sunday June 25, 2023 @03:43AM (#36465861)
I took the advice and updated the code to generate DOM nodes instead of setting HTML directly - it should decrease the risk of XSS