Identify site visitors who use a 'dev' Browser version
Is it possible to identify visitors to a site who are running a development browser, like Chrome Canary, using JavaScript?
Using the User Agent String, it is obviously possible to check out the version of a browser, but as that increments I assume the dev version eventually becomes the standard version and then eventually a legacy version; so targeting a version number would need constantly updating.
eg Currently these are the dev and stock versions of Chrome:
Canary (17/07/15) Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2457.0 Safari/537.36
"Stock" (17/07/15) Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
I'm using Chrome as an example but I'd also like to target Firefox and Safari beta versions if possible.
The reason is to provide specific content to people who are, well, developer-y.
链接地址: http://www.djcxy.com/p/51910.html上一篇: JavaScript不能在IE中工作,在FireFox UPDATE中工作
下一篇: 确定使用'dev'浏览器版本的网站访问者