Tell my browser



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.

Mega Man

Posted 2018-01-21T17:15:50.770

Reputation: 1 379

Question was closed 2018-01-21T17:40:58.100

How would an offline language even be getting information from a browser? – fəˈnɛtɪk – 2018-01-21T17:22:07.037

oh. forgot that. http requests are given through stdin. – Mega Man – 2018-01-21T17:27:06.677

@Shaggy big difference. Here,you don't have a given string. – Mega Man – 2018-01-21T17:48:32.303



Japt, 55 52 bytes

-3 bytes thanks to Shaggy

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

Try it!


Posted 2018-01-21T17:15:50.770

Reputation: 7 160

52 bytes – Shaggy – 2018-01-21T22:53:13.093