69 points · by jdormit · 8y ago · 74 comments
Typically, Google just said that it "did not comply with their policies" with no additional information, but I'm guessing their concerns are along the same lines.
Meanwhile, if anyone is interested in trying it out, the README has instructions on running the extension locally in Firefox or Chrome.
Part of that is looking at usage data to identify what parts are working, what needs improvement, retention statistics, etc. I made them opt-out because I would be pissed if someone made a cool thing that I wanted to use but insisted on tracking me with it :)
One suggestion that came to my mind: As most pages I visit have no comments, I closed the sidebar again. But that way I don't see the comments when there are some. How about adding a setting to let the sidebar open/close automatically if there are comments for a page?
It would be better to give constructive criticism, like:
This is a really cool tool! I might even choose to use it, but I have a few concerns: 1) it sends too much data unfiltered to the algolia search servers. Could you instead make it a button that only then triggers the request or opens another browser window? 2) the analytics are also a concern. In general, you should always make these opt-in; better, ask the user through a dialogue to enable them; even better, request feedback through some other system (github for example).
Let’s try and be nice here and give people the benefit of the doubt.
FWIW, I am taking the privacy and security concerns raised in this thread seriously. In fact, this type of candid feedback is one of the best things about HN. I anticipate it will take me a few days to choose and implement some of the fixes suggested here.
Sharing people's browsing data with third-parties can threaten their lives in some circumstances. There's no excuse for a developer creating browser extensions not to take this threat seriously in 2018. It's negligent.
I find it strange how everyone used to be concerned about XSS exploits (including Google themselves who painstakingly implemented reflective XSS prevention, nonce support, and support for XSS-blocking HTTP headers in Chrome) and now they all love XSS as long as it has decent marketing and a clean presentation as an "extension".
So, can this be done with an initial download of some small number of megabytes, then incremental updates of a few kilobytes as often as desired? I think so.
Guessing at numbers (see other comments here), there are probably fewer than 1,000,000 URL's that have comments associated with them on HN. For each, you store hash of the canonicalized URL and a comment count. Collisions aren't deadly, so you could probably get down to 8B per hash (7B for hash, 1B for count). Updates can be a list of all new and revised URL-hash-counts since a given date.
Lookup the hash of the URL of each visited page with binary search on the 7B prefix in the ~8MB ordered list of data. If found, report the number of comments in something clickable that loads a sidebar. The only data that leaves the machine is based on the active click to load the comments. Maybe store a "false positive list" so that the rare collisions are only visible to the user once. Maybe use a bit for "visited" so you can distinguish pages with new comments?
The numbers seem surprisingly manageable.
I've opened an issue to implement this here: https://github.com/jdormit/looped-in/issues/4
As time allows, I will implement this later this week.
I'd rather not have a browser extension that sends everything I visit to some US servers - but I do like the idea behind this.
There's so much that can go wrong with that, especially if this stuff eventually shows up in some data leak.
Here's some examples:
1. URLs can contain sensitive data, which will tie your session to your person (facebook URLs etc)
2. This could create vulnerabilities in (for example) checkout flows that pass data via URLs
3. I'd rather not make the job of intelligence services easier than it already is
4. Sometimes I clear my browser history for a reason
Suppose I'm an evil overlord and someone in my organization has been tipping off the FBI about my upcoming operations. I'm pretty sure it is one of my work-at-home minions.
If I can obtain the hashes of the URLs that my minions have visited, I can look for a minion that has in their history the hash of https://tips.fbi.gov/ and now I've got a good suspect.
And there is also: https://github.com/powerpak/hn-sidebar which was in the Chrome Store but not anymore...
Any idea why the earlier extension was shut down by YC?
[1]: https://www.google.com/search?q=(160+bits+%2B+32+bits)+*+16....
javascript:(function()%7Bwindow.open('https%3A%2F%2Fhn.algolia.com%2F%3Fquery%3D' %2B (window.location.hostname %2B window.location.pathname %2B window.location.hash).split('%2F').join(' ').split('%23').join(' ')%2C '_blank')%7D)()https://chrome.google.com/webstore/detail/kiwi-conversations...
Also "researches" Reddit, Product Hunt and Google News. And only on demand
What does your development workflow for CLJS browser extensions look like? Do you have to rebuild and reload the extension on your development machine each time you change the code? Is it possible to use Figwheel when writing browser extensions?
This system has some disadvantages, though. The main one is the glacial feedback loop - due to strict CSP restrictions in web extensions, I had trouble compiling the CLJS with {:optimizations :none}, so each save-compile-reload cycle takes ~30 seconds from when I save the source file to when I see the results of the change in the browser. I also did not figure out how to set up a REPL environment connected to the code running in the web extension.
Lots of room for improvement here, basically.
[0]: https://github.com/binaryage/chromex-sample#chromex-sample-p...
[1]: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Ge...
I tried to use clojurescript for Chrome extensions few years ago but failed to configure fast reload cycle (either repl or figwheel).
Do you know any good resources on REPL-driven ClojureScript development? Preferably with a REPL that lives in the page environment so that browser variables etc. can be accessed.