I would like to show my users a bar that looks like this, if:
Actually in SharePoint (OP mentioned that) there is a built-in variable browseris. It's available in the global window scope. Answering OP question:
Browser is not IE;
Browser is IE but is version 8 or earlier
(tested in SP2013 on-prem)