Detectizr icon indicating copy to clipboard operation
Detectizr copied to clipboard

Opera detection is returning chrome

Open merrickfox opened this issue 10 years ago • 3 comments

Opera browsers are returning as chrome (tested in OSX, multiple opera versions, windows tested with latest opera), it looks like you are parsing the UA to find the word 'opera', which is not in the opera UA, however the word 'chrome' actually is in the user agent so it returns chrome. As far as I can tell the only unique identifier to opera is the string 'opr/26.0.1656.60' (replace the numbers with the version) and really old versions contain the string 'Presto/'

The regex that works for me is /OPR/\d{2}.\d{1}.\d{4}.\d{2}|Presto// however it would be nice if we didn't have to have a separate rule from the Detectizr stuff.

merrickfox avatar Jan 22 '15 11:01 merrickfox

Is this ever going to be fixed?!

lepinejf avatar Jan 19 '17 04:01 lepinejf

@lepinejf It doesn't seem like the library is maintained anymore, I recommend opening a pull request with a fix and try and breath new life into the project or just fork it like I did and apply your own fixes

merrickfox avatar Jan 19 '17 09:01 merrickfox

@merrickfox I don't know, I've seen commits that are 2 month old. Pretty sure it's still maintained, just very slowly.

lepinejf avatar Jan 19 '17 14:01 lepinejf