Re:Comcast injects JavaScript into webpages to show copyrigh...
by thoughtexpt on Thursday November 19, 2015 @01:22AM
(#10593079)
From what domain does comcast.js originate? Does the injection still work if we block connections to the IP for that domain?
[ Parent
| on HN ]
Re:Comcast injects JavaScript into webpages to show copyrigh...
by jand on Thursday November 19, 2015 @02:28AM
(#10593279)
The script is inlined, so blocking by origin seems not possible. You could write a greasemonkey script (is that still a thing?) or write an extension which removes the line
_ComcastAlert.go();
from every visited page.
Re:Comcast injects JavaScript into webpages to show copyrigh...
by ryan-c on Thursday November 19, 2015 @03:11AM
(#10593422)
I think you could also insert a script in the document head that adds an event listener for beforescriptexecute that checks for and cancels execution of the comcast script. A website could do this themselves even.
Better yet, block the script if detected, then fire the acknowledgement.
Re:Comcast injects JavaScript into webpages to show copyrigh...
by notahacker on Thursday November 19, 2015 @05:12AM
(#10593891)
If script detected, serve not-strictly-accurate but damaging to Comcast warning about "insecure Comcast connection"...