Greasy Fork is available in English.

自用论坛辅助签到

常用论坛辅助签到工具,包括天使动漫论坛、52破解、TTG、卡饭

Stan na 21-10-2018. Zobacz najnowsza wersja.

// ==UserScript==
// @name         自用论坛辅助签到
// @namespace    bbshelper
// @version      1.0.2
// @description  常用论坛辅助签到工具,包括天使动漫论坛、52破解、TTG、卡饭
// @author       Eva
// @include      http*://u2.dmhy.org/*
// @include      http*://www.tsdm.me/*
// @include      http*://totheglory.im/*
// @include      http*://www.52pojie.cn/*
// @include      http*://bbs.kafan.cn/*
// @grant        unsafeWindow
// @require      https://code.jquery.com/jquery-latest.js
// @run-at 		 document-end
// ==/UserScript==

(function() {
    //U2
    if(isURL("u2.dmhy.org")){
        var tt = $("textarea[name='message']");
        if(tt){
            tt.text("注意:回答按钮点击时即提交,手滑损失自负~");
        }
        /*if(window.find("立即签到") && !isURL("u2.dmhy.org/showup.php")){
            window.location.href = "showup.php";
        }*/
         return;
    }

    //TTG
    if(isURL("totheglory.im")){
        if($("#signed")){
            $("#signed")[0].click();
        }
        return;
    }

    //天使动漫
    if (isURL("tsdm.me")) {
        qd();
        if (window.find("签到领奖!")) {
            window.location.href = "plugin.php?id=dsu_paulsign:sign";
            return;
        }
    }

    //52破解
    if(isURL("52pojie.cn")){
        var qdlink = $("img[src$='qds.png']").closest("a");
        if(qdlink){
            qdlink[0].click();
        }
        return;
    }

     //卡饭
    if(isURL("kafan.cn")){
        var dklink = $("img[src$='dk.png']").closest("a");
        if($("img[src$='wb.png']").closest("a").css('display') === 'none'){
            dklink[0].click();
        }
        return;
    }

    function qd(){
        if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
            $("#wl_s").attr('checked',true);
            $("#todaysay").val("每天签到水一发。。。");
            $("#qiandao").submit();
            return;
        }
    }

    function isURL(x){
        return window.location.href.indexOf(x) != -1;
    }

})();