检测移动浏览器 | 开源手机检测

Credits

Detect Mobile Browser was created by Chad Smith.

检测手机浏览器是由 邵珠庆 整理

可以通过访问此URL测试当前是否为移动浏览器http://shaozhuqing.com/s/dmb/,如果是移动浏览器访问会自动跳转到http://shaozhuqing.com/s/dmb/mobile.php页面

Terms

If you receive financial gain or use the scripts regularly, please say thanks and consider a small donation.

如果您可以获得收益或定期使用脚本,请 说声感谢 并提供小额 捐款.

License

This is free and unencumbered software released into the public domain.

这是自由支配的软件发布到公共领域。

For more information, please refer to the UNLICENSE.

欲了解更多信息,请参阅UNLICENSE.

Setup

Download a mobile browser redirect script and change http://detectmobilebrowser.com/mobile to your mobile site's URL.

下载一个手机浏览器重定向脚本和更改 http://detectmobilebrowser.com/mobile 移动网站的URL.

Redirect Service

A redirect service is available so you can share mobile-friendly links to sites you do not control.

重定向服务,这样你就可以分享你无法控制的网站移动友好链接.

Please do not point your entire app or site to a redirect URL. Instead, download a redirect script.

请不要您的整个应用程序或网站的重定向URL指向。相反,下载一个重定向脚本.

Supported Devices

This script was written to quickly detect nearly all major devices detected by WURFL. Download a list of supported devices and useragents.

这个剧本写快速检测几乎所有主要WURFL检测设备。下载列表 支持设备和useragents的.

Tablets

Android tablets, iPads, Kindle Fires and PlayBooks are not detected by design. To add support for tablets, add |android|ipad|playbook|silk to the first regex.

Android平板电脑,iPads, Kindle Fires and PlayBooks 都没有检测到设计。要增加对这些设备的支持,加 |android|ipad|playbook|silk 第一正则表达式.

Support

Support and installation are available at an hourly rate. Contact Mktg Dept for information.

支持和安装可以联系 邵珠庆 信息.