代码改变世界

中国好声音?给你喜欢的选手疯狂的拉几票吧~(到目前为止,腾讯还未修复此BUG)

2012-09-26 00:16  狼人:-)  阅读(414)  评论(0编辑  收藏  举报

 先上案例:不到20分钟,“吉克隽逸”的票已经上升了20000多票...(前提你得有一个好的CPU和足够的内存)

 

打开浏览器,按“F12”键,粘上以下代码回车即可!(首页得打开页面“http://ent.qq.com/zt2012/voiceofchina/index.htm”)

    var mydiv = document.createElement("div");
    mydiv.id = "mydiv";
    document.body.appendChild(mydiv);

    var oHead = document.getElementsByTagName('HEAD').item(0);
    var oScript = document.createElement("script");
    oScript.type = "text/javascript";
    oScript.src = "https://files.cnblogs.com/waw/jquery.js";
    oHead.appendChild(oScript);

    function sendpost() {
        $.ajax({
            url: 'http://page.vote.qq.com/survey.php?PjtID=3138925&SubjID=3200165&OptID=221588&fmt=json&result=0&rdm=' + Math.random(),
            type: 'GET',
            dataType: 'text',
            success: function(msg) { }
        });
        setTimeout("sendpost()", 100);
    }
    setTimeout("sendpost()", 1000);

以下是代码的执行情况(内存一直在增涨,CPU也频繁的波动,票数同时也在爆增):