Is it possible to detect samsung stock browser

Sam picture Sam · Feb 19, 2013 · Viewed 8.1k times · Source

Because the canvas bug of samsung stock browser, my program will cause error. (http://code.google.com/p/android/issues/detail?id=39247)

So I want to disable canvas on all Samsung stock browser.

Could I detect it by navigator object or other way?

I found the same question, but it's solution looks like not perfect (javascript - regex matching devices on user agent)

Wiki shows Samsung has more models. (http://en.wikipedia.org/wiki/Samsung_Galaxy_S_III)

Answer

imal hasaranga perera picture imal hasaranga perera · Nov 18, 2016

You can simply do this

var isSamsungBrowser = navigator.userAgent.match(/SamsungBrowser/i)