Perhaps a captive portal and redirect would be a &quot;nicer&quot; way of doing this.  At a bare minimum, it&#x27;s less intrusive, and it&#x27;s an accepted practice when using a provider&#x27;s internet (especially wireless).  Injecting JS into a page that I&#x27;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.