Live data from Hacker News

Comcast injecting JS

gist.github.com

11–20 of 288 posts

Re: Comcast injecting JS

#11
post #5

I'm torn. This seems bad, but the warning (exceeding your bandwidth quota) seems valuable. I can't think of another, better way to message this.

Email? Text?

That could work, but I'm guessing often this might not be the account owner (kids?) racking up the bandwidth.

Re: Comcast injecting JS

#12
Cox is doing something very similar. It's somewhat disconcerting to see JS like this ending up in pages, especially since they didn't get the URL right and a future version of this script could conceivably allow someone to serve malicious content to every Comcast subscriber, injected directly into your page.

Re: Comcast injecting JS

#17

Earlier quoted context omitted.

Email? Text?

That could work, but I'm guessing often this might not be the account owner (kids?) racking up the bandwidth.

Doesn't matter; it's the account owner who is responsible for it.

Injecting into a webpage is unacceptable.

Re: Comcast injecting JS

#19

OMG LOL. Have they never heard about jQuery? Christ, they could have made the code so much more elegant.

So you think they should inject a third-party dependency instead of just some inline js? And that would make it more elegant?

They could just inject it inline. No problem there.

The whole document.write block 27-51 (possibly the CSS-block too, but I'm not sure about this) could be written far more elegant in jQuery.

But the real saving is that "drag and drop" code - jQuery would abstract all that isIE/isNS crap from them.

Re: Comcast injecting JS

#20

Earlier quoted context omitted.

Email? Text?

That could work, but I'm guessing often this might not be the account owner (kids?) racking up the bandwidth.

They have a comment in the script

  // Intended use is to display browser notifications for critical and time sensitive alerts.
I imagine you can rack up a fair amount of usage before checking emails, only to find you went over your cap a few hours ago.
Post reply on HN