# j" r+ s# ^/ t( E* w6 `) w; S+ z: G0 w& \4 A
就下面这段js,看到过好几次了,应该是修改UA相关的,问题是用这段JS的意义在哪呢?
; L; M; o0 g/ H, i7 |3 k各位牛能否解释一下?8 o; z& H" A9 o2 n8 R7 c* ^
4 I1 ]! \* ~* C$ j7 g1 ^
- <script type="text/javascript">Object.defineProperty(window.navigator, 'userAgent', { get: function(){ return 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/28.0.1469.0 Safari/537.36'; } });Object.defineProperty(window.navigator, 'vendor', { get: function(){ return ''; } });Object.defineProperty(window.navigator, 'platform', { get: function(){ return 'Windows'; } });</script>
复制代码
% V( R; z: E, q7 P3 F* u/ F5 k* K$ L. A$ j8 W4 w1 z
|