Many people visit webpages, which require special browsers because of lack of compatibility. So you have to write a script (client sided or server sided), which just prints the name of the browser. Because not everyone has fast internet, the script has to be as short as possible. (This is a joke xD)


  1. You have to print the name of the browser loading the page without any version number etc. to STDOUT or equivalent. Leading or trailing spaces are allowed.
  2. You can assume the browser is Firefox, Chrome, Edge, Safari or Opera, so only those browsers will be tested. Don't print "Chromium", this does NOT count.
  3. The script may be server sided with CGI (in any language), ruby on rails, jsp and similar. (Given server will be apache 2 on debian) Client sided scripts may be written in JavaScript, TypeScript, and any other versions of ECMAScript, it just has to run in all five browsers.
  4. If your language has no offline interpreter for CGI, assume it's saved in /usr/bin/i, the shebang at the beginning does not add bytes to the count.
  5. This is a , so the shortest answer wins!
  6. Http requests are put through stdin.
  • \$\begingroup\$ How would an offline language even be getting information from a browser? \$\endgroup\$ Commented Jan 21, 2018 at 17:22
  • \$\begingroup\$ oh. forgot that. http requests are given through stdin. \$\endgroup\$
    – univalence
    Commented Jan 21, 2018 at 17:27
  • \$\begingroup\$ @Shaggy big difference. Here,you don't have a given string. \$\endgroup\$
    – univalence
    Commented Jan 21, 2018 at 17:48

1 Answer 1


Japt, 55 52 bytes

-3 bytes thanks to Shaggy

`SafÂÈOpÀCËTFifoxnEdge`qn f!øU o

Try it!

  • \$\begingroup\$ 52 bytes \$\endgroup\$
    – Shaggy
    Commented Jan 21, 2018 at 22:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.