SOURCE

console 命令行工具 X clear

                    
>
console
// ==UserScript==
// @name         rpwow签到
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http://java.jsrun.net/9QTKp/edit
// @icon         https://www.google.com/s2/favicons?domain=jsrun.net
// @grant        none
// ==/UserScript==

(function() {
    var indexlogin = $("body").html().indexOf(" 点签到点数可以使用");
    if(indexlogin<0){
        return;
    }else{
    }
    for(var i=1;i<=21;i++){
        var html = "<button id='zhq_but"+i+"' class='zhq_but' index='"+i+"' style='position: absolute;right:10px;top:"+(i*20)+"px;z-index:9999'>签到第"+i+"个按钮</button>";
        $("body").append(html);
        $("#zhq_but"+i).click(function(){
            var hh = $(this).attr("index");
            $.ajax({
                url:"https://wotlk.rpwow.com/?page=vote",
                data:{site:hh},
                type:"POST",
                success:function(d){
                    console.log(d);
                },
                error:function(e){
                    console.error(e);
                }
            })
        })
    }
    var html1 = "<button id='zhq_but_all' style='position: absolute;left:10px;top:10px;z-index:9999'>依次签到</button>";
    $("body").append(html1);
    var zhq_index = 1;
    $("#zhq_but_all").click(function(){
        zhq_index = 1;
        for(var i=1;i<=21;i++){
            setTimeout(function(){
                $.ajax({url:"http://zhq502502.host3v.com/",error:function(){
                    console.log('$("#zhq_but'+zhq_index+'").click();');
                    $.ajax({
                        url:"https://wotlk.rpwow.com/?page=vote",
                        data:{site:zhq_index},
                        type:"POST",
                        success:function(d){
                            $("title").html("第个"+zhq_index+"签到按钮成功");
                            console.log(d);
                            zhq_index++;
                        },
                        error:function(e){
                            console.error(e);
                            zhq_index++;
                        }
                    })
                }})
            },i*3000)
        }
    })
})();
<div id="msg">123123</div>

本项目引用的自定义外部资源