A cópia do código é a seguinte:
var sistema = {};
var p = navegator.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) {// Se for um computador, pule para o Baidu
window.location.href = "http://www.baidu.com/";
} else {// Se for um telefone celular, pule para o Google
window.location.href = "http://www.google.cn/";
}