La copie de code est la suivante:
var system = {};
var p = navigator.platform;
System.Win = P.Indexof ("Win") == 0;
System.mac = P.Indexof ("Mac") == 0;
System.x11 = (p == "x11") || (P.Indexof ("Linux") == 0);
if (System.Win || System.mac || System.xll) {// Si c'est un ordinateur, sautez à Baidu
window.location.href = "http://www.baidu.com/";
} else {// S'il s'agit d'un téléphone mobile, passez à Google
window.location.href = "http://www.google.cn/";
}