I would move this check into injectScript. Doesn't really seem to belong here.

Also, maybe injectScript needs renaming. 'addTo'DOM' or something like that.