Created
November 14, 2015 18:38
-
-
Save anonymous/8de248f7876b9f5a3ea3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<script type="text/javascript"> | |
var u = 'http://click.linktech.cn/?m=suning&a=A100188357&l=99999&l_cd1=0&l_cd2=1&tu=http%3A%2F%2Fwww.suning.com', | |
ua = navigator.userAgent.toLowerCase(); | |
if (u.indexOf('baidu.com') > 0 || u.indexOf('360.cn') > 0 || u.indexOf('hao123.com') > 0) { | |
var cc = document.cookie.split(';'); | |
for (var i = 0; i < cc.length; i++) { | |
var name = cc[i].split("=")[0]; | |
document.cookie = name + '=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | |
document.cookie = name + '=; path=/; domain=.hao123.com; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | |
document.cookie = name + '=; path=/; domain=.baidu.com; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | |
document.cookie = name + '=; path=/; domain=.360.cn; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | |
document.cookie = name + '=; path=/; domain=360.cn; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | |
} | |
if (u.indexOf('hao123.com') > 0) { | |
document.cookie = 'hz=0;domain=www.hao123.com;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;'; | |
} | |
} | |
if (ua.indexOf('applewebkit') > 0) { | |
var h = document.createElement('a'); | |
h.rel = 'noreferrer'; | |
h.href = u; | |
document.body.appendChild(h); | |
var evt = document.createEvent("MouseEvents"); | |
evt.initEvent("click", true, true); | |
h.dispatchEvent(evt); | |
} else { | |
document.write('<meta http-equiv="Refresh" Content="0; Url=' + u + '" >'); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment