新浪看点邀请码

转载请注明出处:http://www.douban.com/note/176823496/

废话不多说 1.在Chrome浏览器下,首先用你的新浪微博帐号登录到此页面(http://kandian.com/play/invite.php)

2.打开“开发人员工具” -> “控制台(Console)”,或者Windows下直接按 Ctrl+Shift+J 打开,将最下面的一串代码贴进去,回车,当看到“Congratulations, it matches!”时就表示你成功了 :-) 人品啊

代码(源码地址:http://jsfiddle.net/sway/3BFzH/3/):

 

	var timer;function randomCharacter(){var D=[],A=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];for(var C=0;C<4;C++){var B=Math.ceil(Math.random()*51);D.push(A[B])}return D.join("")}function inviteVerify(){var A=randomCharacter();jQuery.ajax({url:"http://kandian.com/play/reg_mcode.php",type:"POST",data:{invite:A},success:function(B){console.log("invite:"+A+", suc: "+B.suc);if(B.suc===1){console.log("Congratulations, it matches!");window.clearInterval(timer)}}})}timer=window.setInterval(inviteVerify,1500);

标签: 邀请码

此文章共有条评论, 人参与