News for hackers. Stuff that matters.
Re:Show HN: A Firefox extension to leave comments on any URL by Jaruzel on Thursday June 27, 2019 @09:44AM (#20294253)
You might be able to do with just a bookmarklet into the algolia search for HN.

EDIT: I've just created a proof of concept that works:

http://www.jaruzel.com/apps/hnlookup/

Re:Show HN: A Firefox extension to leave comments on any URL by comntr on Thursday June 27, 2019 @11:41PM (#20301295)
So it effectively runs arbitrary javascript in the current page? I mean, if I run it on my online banking page, it'll have access to everything. The extension isn't ideal either - access to the current URL is too much - but at least it can't run arbitrary JS in the page itself.
Re:Show HN: A Firefox extension to leave comments on any URL by Jaruzel on Tuesday July 02, 2019 @03:38AM (#20333011)
If you look at the bookmarklet, you'll see that the JS in it only fetches the URL and appends it to an Algolia search query. Nothing is sent to any other server. It's all done in your browser. Hacker News has exactly the same type of bookmarklet on their 'bookmarklet' link at the bottom of every page[1]. Arguably this method is safer than an Extension.

---

[1] https://news.ycombinator.com/bookmarklet.html