过某云平台检测

/// FuckBaiduYun.js

/// 2015-11-06 Tested
var myPlatForm=function()
{
  return "FuckBaidu";
};

if (Object.defineProperty) {
    Object.defineProperty(navigator, "platform", {get:     myPlatForm});
} else if (Object.prototype.__defineGetter__) {
    navigator.__defineGetter__("platform", myPlatForm);
};

///上面方法已经失效

///2016-05-16 Tested
///s1.pan.bdstatic.com/box-static/disk-system-cdn/pkg/plugin-download_274ac8e.js
///以下函数返回false
isPlatformWindows: function() {
        var e = navigator.platform;
        return 0 === e.toLowerCase().indexOf("win")
},

你可能感兴趣的:(过某云平台检测)