รหัสอยู่ภายใต้ src/core/ext.js ใน ext
รหัสของ ext3.0beat1 ล่าสุดมีดังนี้:
คัดลอกรหัสรหัสดังนี้:
ua = navigator.useragent.toLowercase ()
ตรวจสอบ = ฟังก์ชั่น (r) {
Return R.Test (UA);
-
issTrict = document.CompatMode == "CSS1COMPAT"
isopera = ตรวจสอบ (/โอเปร่า/)
ischrome = ตรวจสอบ (/chrome/)
iswebkit = ตรวจสอบ (/webkit/)
issafari =!
issafari3 = issafari && ตรวจสอบ (/เวอร์ชัน // 3/)
isSafari4 = issafari && ตรวจสอบ (/เวอร์ชัน // 4/)
isie =!
isie7 = isie && ตรวจสอบ (/msie 7/)
isie8 = isie && ตรวจสอบ (/msie 8/)
isgecko =!
isgecko3 = isgecko && ตรวจสอบ (/rv:1/.9/)
isBorderBox = isie &&!
isWindows = ตรวจสอบ (/windows | win32/)
ismac = ตรวจสอบ (/macintosh | mac os x/)
isch = ตรวจสอบ (/adobeair/)
iSlinux = ตรวจสอบ (/linux/)
issecure = /^https/i.test (window.location.protocol);
และ 2.2.1 (ในแหล่ง/core/ext.js)
คัดลอกรหัสรหัสดังนี้:
var ua = navigator.useragent.toLowercase ();
var isstrict = document.CompatMode == "CSS1COMPAT"
isopra = ua.indexof ("โอเปร่า")> -1,
ischrome = ua.indexof ("chrome")> -1,
issafari =!
issafari3 = issafari && ua.indexof ('webkit/5')!
isie =!
isie7 =!
isie8 =!
isgecko =!
isgecko3 = isgecko && ua.indexof ("rv: 1.9")> -1,
isBorderBox = isie &&!
isWindows = (ua.indexof ("windows")! = -1 || ua.indexof ("win32")! = -1),
ismac = (ua.indexof ("macintosh")! = -1 || ua.indexof ("mac os x")! = -1),
isch = (ua.indexof ("adobeair")! = -1)
iSlinux = (ua.indexof ("linux")! = -1)
Issecure = window.location.href.toLowerCase ()