Detects where the current browser extension code is being run. Compatible with Firefox, Chrome and derivates.