Simplify detectNativeClient, and only trigger on view of diagnostics page, or on relevant pages.
Simplify detectNativeClient, and only trigger on view of diagnostics page, or on relevant pages.

TIYDC/tiyo-assistant,TIYDC/newline-assistant,TIYDC/tiyo-assistant,TIYDC/newline-assistant