Hacker News new | ask | show | jobs
by avinash 2068 days ago
For Chrome users, this open source extension will tell you what protocol the browser is using for each website being accessed:

https://chrome.google.com/webstore/detail/http-indicator/hgc...

2 comments

Unfortunately permissions to access everything on every website are way to broad for a niche extension like this. There's no guarantee it won't be sold to a malware developer in a month. If you want to use it, I suggest cloning the repo and loading it as an unpacked extension to avoid auto updates.
Also be sure to audit it yourself beforehand if you're going to go that route; there's no use tilting against auto-updates if you haven't gone to the trouble of making sure that malicious code isn't already present.
Essentially it is

    performance.getEntriesByType("navigation")[0].nextHopProtocol
and background task to update UI, plus a link to chrome://net-export/

This one is not hard to audit but in current model should be done by each user.

If that's it, you could just save it as a bookmark:

    javascript:alert(performance.getEntriesByType("navigation")[0].nextHopProtocol)
That works in Firefox, too.
Chrome's own developer tools can tell you this easily. Check out the network pane.