browser
browser copied to clipboard
Do some browser detection with Ruby. Includes ActionController integration.
I'd like to check if the device is desktop (the device is neither mobile nor tablet). This PR adds `browser.device.desktop?` method.
Add [FullStory](https://udger.com/resources/ua-list/bot-detail?bot=FullStoryBot), [Charlotte](https://udger.com/resources/ua-list/bot-detail?bot=Charlotte) and [Echobox](https://udger.com/resources/ua-list/bot-detail?bot=EchoboxBot) bot to the bots list. Add [Ya**Search**Browser](https://user-agents.net/string/mozilla-5-0-linux-android-7-0-redmi-note-4-build-nrd90m-applewebkit-537-36-khtml-like-gecko-chrome-80-0-3987-119-mobile-safari-537-36-yaapp-android-10-41-yasearchbrowser-10-41), [Cu**bot**](https://user-agents.net/string/mozilla-5-0-linux-android-6-0-cubot-max-applewebkit-537-36-khtml-like-gecko-chrome-72-0-3626-121-mobile-safari-537-36), [NAVER](https://user-agents.net/applications/naver), [MiuiQuick**Search**Box](https://udger.com/resources/online-parser?Fuas=Mozilla%2F5.0+%28Linux%3B+Android+8.1.0%3B+Redmi+Note+5+Build%2FOPM1.171019.011%3B+wv%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Version%2F4.0+Chrome%2F61.0.3163.128+Mobile+Safari%2F537.36+XiaoMi%2FMiuiQuickSearchBox%2F+XiaoMi%2FHybridView%2F&Fip=&test=6273&action=analyze) and [MEIZU_App**Search**](https://udger.com/resources/online-parser?Fuas=Mozilla%2F5.0+%28Linux%3B+Android+7.0%3B+MEIZU+M6+Build%2FNRD90M%3B+wv%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Version%2F4.0+Chrome%2F65.0.3325.110+Mobile+Safari%2F537.36+MEIZU_AppSearch%2F3.1&Fip=&test=6273&action=analyze) to the bot exceptions list, as they were picked up by the`Browser::Bot::KeywordMatcher` and...
Thank you for developing such a useful gem! I am very grateful for this gem! Yahoo Mobile App is often used in Japan
Also adds tests for other rejected matches
Close #473
``` 2.6.5 :001 > browser = Browser.new("Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36") => # 2.6.5 :002 > browser.device.id => :unknown 2.6.5 :003 >...
It would be nice to have `browser.prefetch?` that detects if the request is coming from a Omnibar prefetch that modern browsers perform. This stackoverflow answer (https://stackoverflow.com/questions/9852257/http-header-to-detect-a-preload-request-by-google-chrome) tells that each browser...
Hi, I have table with unique user agents. I store them as lowercased values. I wanted to do some analyses based on my data, but figure out that gem doesn't...
## Description Google Plus has a bot with the user agent: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Google (+https://developers.google.com/+/web/snippet/)` This is a general snippet fetcher that...