I would much prefer if it only looked up the current tab.
A more private design might fetch the top N results from algolia.com and only search through them locally.
That being said, this is cool! Thanks for sharing.
I would much prefer if it only looked up the current tab.
A more private design might fetch the top N results from algolia.com and only search through them locally.
That being said, this is cool! Thanks for sharing.
Wait, how's that possible? The extension doesn't even have permission to get urls from tabs that are not the active one...
In popup.js[1]:
chrome.tabs.query({active:true,currentWindow:true}, function(tabs){ ... })
These `active` and `currentWindow` parameters to query() [2] restrict the results to the current tab. If I remove those parameters and run in DevTools, I seem to get a full tab listing.[1]: https://github.com/pinoceniccola/what-hn-says-webext/blob/ma...
[2]: https://developer.chrome.com/extensions/tabs#method-query
I think with the `activeTab` permission you still get the an object for every tab other the active one, but without access to `url`, `title` and `faviconUrl` properties.
Thanks for checking out anyway. I built this tool especially because all of the others already available were a privacy nightmare.
[1]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...