Perhaps a captive portal and redirect would be a "nicer" way of doing this. At a bare minimum, it's less intrusive, and it's an accepted practice when using a provider's internet (especially wireless). Injecting JS into a page that I've requested from a third party server would erase my trust in that provider, and I would immediately cancel my service the first time my provider performed that action.