Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// use client userAagent's lowercase to match these:
Wechat: /micromessenger/,
QQBrowser: /qqbrowser/,
UC: /ubrowser|ucbrowser|ucweb/,
Shoujibaidu: /baiduboxapp|baiduhd|bidubrowser|baidubrowser/,
SamsungBrowser: /samsungbrowser/,
MiuiBrowser: /miuibrowser/,
Sogou : /sogoumobilebrowser|sogousearch/,
Explorer2345 : /2345explorer|2345chrome|mb2345browser/,
Liebao : /lbbrowser/,
Weibo: /__weibo__/,
OPPO: /oppobrowser/,
toutiao: /newsarticle/,
MobileQQ: /mobile.*qq/,
Firefox: /firefox/,
Maxthon: /maxthon/,
Se360: /360se/,
Ee360: /360ee/,
Safari: /(iphone|ipad).*version.*mobile.*safari/,
Chrome: /chrome|crios/,
AndroidBrowser: /android.*safari|android.*release.*browser/
// the order is not recommended to change, unless you know it affects
Copy link

tjefferson commented Aug 10, 2016

MQBrowser/5.0 (iPhone; CPU iPhone OS 8.3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Safari/7534.48.3


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment