Instead of a this conditional, I think you can just call eval and pass contentScriptInjected to useContentScriptContext...