Re:Chrome extension to indicate background network activity ...
by qntmfred on Saturday July 09, 2016 @02:01PM
(#12062522)
nice idea. I would prefer if it reset to 0 on page load though. I used it for a few minutes and after a few pages the count was already in the hundreds, at which point I've lost my sense of whether the count was increasing for this current page or if it was already high from previous pages
The Chrome store requires a flat fee to upgrade one's account to "uploader", which helps keep (some) spam out. AwalGarg (the fellow who built this) is a friend of mine and comes from a traditionally poor part of the world. I've contacted him about paying for the fee to see if we can get this on the Chrome Store proper.
Re:Chrome extension to indicate background network activity ...
by chris_wot on Saturday July 09, 2016 @09:06PM
(#12064095)
You are awesome :-) thank you so much for doing that for both the developer, and the rest of us!
If the fee is to stop spam, it would be great if Google would consider upgrading the accounts of folks like AwalGarg for free.
Speaking of extensions, and I know this is off-topic, but I found an extension written by a Google team that implements OpenPG facilities for Gmail, but though it looks pretty complete they still say it's incomplete. What would we need to do to get them to finish this? I work for a large company that extensively uses Google for Business, in particular Gmail, and whilst Google has end-to-end encryption and facilities like Google Drive and Google Docs, I'd still like to be able to easily sign and encrypt my email!
Re:Chrome extension to indicate background network activity ...
by awalGarg on Saturday July 09, 2016 @12:46PM
(#12062120)
Author here.
I think it involves some payment (IIRC) or some other stupid barrier. If someone is kind enough to take care of that for me, I'd be happy to publish it. I have a couple other extensions which I'd like to publish as well but wasn't able to do so in the past, so I have just stopped trying.
Re:Chrome extension to indicate background network activity ...
by awalGarg on Saturday July 09, 2016 @09:32PM
(#12064161)
Didn't "learn" it - I just google my way through! :P The docs are pretty good in general. But I guess knowing JS well is important, which I think I do. It is an easy language (leave for the ecosystem...) so you can surely get started quickly :)
Re:Chrome extension to indicate background network activity ...
by zappo2938 on Saturday July 09, 2016 @06:31PM
(#12063645)
For curiosity I turned off the ad blocker and head over to the Huffington Post. Every mouse click triggers an XHR event and there is constant communication on top of that. It reached over 1000 requests after 3 quick page views.
Re:Chrome extension to indicate background network activity ...
by baby on Saturday July 09, 2016 @12:12PM
(#12061940)
Something nice would be to see, next to the tab title, the CPU resource taken by that tab. I don't mind pages loading a lot of resources, I mind pages killing my CPU.
Re:Chrome extension to indicate background network activity ...
by rmsaksida on Saturday July 09, 2016 @02:23PM
(#12062604)
Shift+Escape made me realize HTTPS Everywhere[0] is by far my most resource intensive extension. Most extensions sit around the 20MB range (of memory usage). uBlock is in the 50MB range. HTTPS Everywhere is in the 100MB range and goes to 150MB sometimes. I love the extension but I do wonder how it manages to use so much memory...
Re:Chrome extension to indicate background network activity ...
by mcescalante on Saturday July 09, 2016 @12:34PM
(#12062059)
Shift + Esc doesn't seem work for me (Chrome 53 dev), and there are a few open bugs about the shortcut not working. Opening Task Manager from the menus works fine though :)
Re:Chrome extension to indicate background network activity ...
by Noseshine on Saturday July 09, 2016 @01:45PM
(#12062450)
It has? I have Chrome version 51.0.2704.106 m (64-bit) and I do get the task manager with SHIFT+ESC, with numbers for each tab and GPU and for some extensions for CPU, network and memory.
What you link talks about chrome://memory, which was indeed removed, but the parent post only says
Re:Chrome extension to indicate background network activity ...
by awalGarg on Saturday July 09, 2016 @11:35PM
(#12064468)
Whoops, sorry, my bad. It seems the "Stats for nerds" link (and the page it linked to) accessible via the task manager was removed, not the task manager itself. Apologies for the misinformation!
Re:Chrome extension to indicate background network activity ...
by basemntunivrse on Saturday July 09, 2016 @05:13PM
(#12063354)
I really like this, it's an excellent idea.
This might be quite useful for developers as well, just as a quick indicator instead of having the Developer Tools Network tab open all the time.
One thing that might be quite useful (though it would probably be beyond the scope of this project and perhaps hard to implement) would be the ability to block any further requests made by the tab. A sort of per-tab 'offline mode'. Perhaps as a context menu option when clicking on the icon.
Also, it would be very interesting to see statistics on which popular websites tend to do the most user-activity tracking, lazy loading etc. - but, in order to collect and collate these statistics your extension would itself have to send background requests to some central API. That'd be quite ironic...
Re:Chrome extension to indicate background network activity ...
by aleem on Saturday July 09, 2016 @07:03PM
(#12063732)
A few chrome extensions no Chrome should be without. uBlock and/or Ghostery, needs no introduction.
FlashControl disables flash and allows selective enabling on components, pages or domains. Quick Javascript Switcher let's you selectively disable JS on individual pages, handy sometimes for badly behaving pages. Tab Suspender suspends unused tabs, useful if you have dozens of open tabs not otherwise.
Re:Chrome extension to indicate background network activity ...
by EugeneOZ on Saturday July 09, 2016 @12:44PM
(#12062106)
> A lot of web pages use background network requests for tracking user actions and sending data to remote servers, lazily loading heavy assets etc., and all that goes unnoticed by the user.
Re:Chrome extension to indicate background network activity ...
by bhauer on Saturday July 09, 2016 @01:01PM
(#12062217)
There's also nothing wrong with wanting to know about it. So I applaud the creation of this extension.
Though he does go on to say:
> Ideally, the browsers "loading icon" should spin for those requests as well
On that point, I don't agree, since it would give the misleading appearance—at least to me—that the page wasn't even done with its initial rendering. But perhaps he is suggesting the standard loading icon should switch to a sort of unobtrusive network in/out indicator after the initial rendering. That I would like.
Re:Chrome extension to indicate background network activity ...
by userbinator on Saturday July 09, 2016 @01:23PM
(#12062342)
That's the attitude which leads to users who don't know anything, can't easily learn, and can be easily controlled and manipulated. Of course, that might be your intention, in which case my only appropriate reaction is "DO NOT WANT!"
Re:Chrome extension to indicate background network activity ...
by Cybiote on Saturday July 09, 2016 @12:57PM
(#12062198)
It depends. There are situations when a user is heavily constrained by both data and charge (Amp hr) limits. In those situations, heavy background loading is a measurable source of headaches and annoyance.
Re:Chrome extension to indicate background network activity ...
by __a__ on Saturday July 09, 2016 @01:01PM
(#12062221)
And there is nothing wrong with blocking these transfers either.
It is the user's own computer and the user's own network subscription after all. User pays for these resources.
As for the software, users get to choose the software. They might prefer software that does not use so much bandwidth. And there's nothing wrong with that.
yoasif_ has confirmed that it works. Firefox has implemented some but not all of chrome's webextension API, so this isn't guaranteed to work for all addons (yet).
Re:Chrome extension to indicate background network activity ...
by andersonmvd on Saturday July 09, 2016 @05:14PM
(#12063363)
The license (WTFPL – Do What the Fuck You Want to Public License) grabbed my attention. Seems to be even more permissive than MIT and BSD? At least the name suggests.
(under my account by AwalGarg's request [0])
The Chrome store requires a flat fee to upgrade one's account to "uploader", which helps keep (some) spam out. AwalGarg (the fellow who built this) is a friend of mine and comes from a traditionally poor part of the world. I've contacted him about paying for the fee to see if we can get this on the Chrome Store proper.
[0] http://chat.stackoverflow.com/transcript/message/31616167#31...
If the fee is to stop spam, it would be great if Google would consider upgrading the accounts of folks like AwalGarg for free.
Speaking of extensions, and I know this is off-topic, but I found an extension written by a Google team that implements OpenPG facilities for Gmail, but though it looks pretty complete they still say it's incomplete. What would we need to do to get them to finish this? I work for a large company that extensively uses Google for Business, in particular Gmail, and whilst Google has end-to-end encryption and facilities like Google Drive and Google Docs, I'd still like to be able to easily sign and encrypt my email!
I think it involves some payment (IIRC) or some other stupid barrier. If someone is kind enough to take care of that for me, I'd be happy to publish it. I have a couple other extensions which I'd like to publish as well but wasn't able to do so in the past, so I have just stopped trying.
Which shows how little I know about Chrome extension writing. Where did you learn how to write extensions Awal?
Oh, and let me express my appreciation for you taking the time to write this and put it on GitHub :-)
I am glad you find my work useful, thank you!
Mini-tuto to install by hand:
1. Download zip - https://github.com/awalGarg/netmonitor/archive/master.zip
2. Unzip it
3. Go to chrome extension page (or type `chrome://chrome/extensions/` in the URL bar)
4. Drag and drop the folder `netmonitor` on the page
[0] https://www.eff.org/https-everywhere
https://github.com/EFForg/https-everywhere/issues/1775
This should be trivial to catch with CI tests...wonder what went wrong there.
What you link talks about chrome://memory, which was indeed removed, but the parent post only says
This might be quite useful for developers as well, just as a quick indicator instead of having the Developer Tools Network tab open all the time.
One thing that might be quite useful (though it would probably be beyond the scope of this project and perhaps hard to implement) would be the ability to block any further requests made by the tab. A sort of per-tab 'offline mode'. Perhaps as a context menu option when clicking on the icon.
Also, it would be very interesting to see statistics on which popular websites tend to do the most user-activity tracking, lazy loading etc. - but, in order to collect and collate these statistics your extension would itself have to send background requests to some central API. That'd be quite ironic...
Anyway, nice work!
FlashControl disables flash and allows selective enabling on components, pages or domains. Quick Javascript Switcher let's you selectively disable JS on individual pages, handy sometimes for badly behaving pages. Tab Suspender suspends unused tabs, useful if you have dozens of open tabs not otherwise.
And there is nothing wrong with it.
Though he does go on to say:
> Ideally, the browsers "loading icon" should spin for those requests as well
On that point, I don't agree, since it would give the misleading appearance—at least to me—that the page wasn't even done with its initial rendering. But perhaps he is suggesting the standard loading icon should switch to a sort of unobtrusive network in/out indicator after the initial rendering. That I would like.
> perhaps he is suggesting the standard loading icon should switch to a sort of unobtrusive network in/out indicator after the initial rendering
yes, that was what I implied, which is why I wrapped "\"loading icon\"" in quotes :) I agree though that the wording isn't very clear, my bad!
It is the user's own computer and the user's own network subscription after all. User pays for these resources.
As for the software, users get to choose the software. They might prefer software that does not use so much bandwidth. And there's nothing wrong with that.
https://github.com/pmarks-net/ipvfoo
When viewing the popup window, each domain gets a yellow highlight if a connection is currently open. The feature was introduced in 2012:
https://github.com/pmarks-net/ipvfoo/commit/d09c68219cb970c1...
yoasif_ has confirmed that it works. Firefox has implemented some but not all of chrome's webextension API, so this isn't guaranteed to work for all addons (yet).
https://news.ycombinator.com/item?id=5733050