Greasy Fork

Greasy Fork is available in English.

网站签到工具

用于各种论坛和网站自动点击签到\n论坛签到工具,签到工具,整合吾爱破解,飘云阁,卡饭论坛,网易云音乐,uzxun,天使动漫论坛等论坛和网站自动点击签到\n根据论坛签到工具 二次开发 需要添加其他网站请在反馈里留言

当前为 2023-09-06 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         网站签到工具
// @version      1.0.7
// @description  用于各种论坛和网站自动点击签到\n论坛签到工具,签到工具,整合吾爱破解,飘云阁,卡饭论坛,网易云音乐,uzxun,天使动漫论坛等论坛和网站自动点击签到\n根据论坛签到工具 二次开发 需要添加其他网站请在反馈里留言
// @author       Fxy
// @homepage     http://greasyfork.icu/zh-CN/scripts/439136-%E7%BD%91%E7%AB%99%E7%AD%BE%E5%88%B0%E5%B7%A5%E5%85%B7
// @match        https://www.52pojie.cn/*
// @match        https://www.chinapyg.com*
// @match        https://music.163.com/*
// @match        https://www.acfun.cn/*
// @match        https://www.wenshushu.cn/*
// @match        https://www.itsk.com/*
// @match        http*://bbs.kafan.cn/*
// @match        http*://bbs.wstx.com/*
// @match        http://www.biliacg218.xyz/*
// @match        http*://bbs.acg520*
// @match        http://www.uzxun.live/*
// @match        http://www.uzacg.vip/*
// @match        http*://googlewk*
// @match        https://yhuam.cc/*
// @match        https://www.hifini.com/*
// @match        https://hifini.com/*
// @match        https://www.manlou99.com*
// @match        https://*zhutix.com/*
// @match        http*://www.tsdm39.net/*
// @match        http*://www.tsdm39.com/*
// @match        https://www.smzdm.com/
// @match        https://www.gtloli.gay/*
// @match        https://www.928wang.cn/*
// @match        https://www.iya.app/*
// @match        https://sq.wgrid.cn/*
// @match        http://tzsqacg.top/*
// @match        http://www.1000qm.vip/*
// @match        https://legado.cn/*
// @match        https://www.mydigit.cn/*
// @match        https://bbs.jqhdd.com/*
// @match        http://www.chinadsl.net/*
// @match        http://www.hanbao520.com/*
// @match        https://www.chenyuanqingshui.cn/*
// @match        https://www.weme.pw/*
// @match        https://www.sayhuahuo.xyz/*
// @match        https://bbs.binmt.cc/*
// @match        http*://*/plugin.php?id=*sign*
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @grant 		 GM_xmlhttpRequest
// @grant        unsafeWindow
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM.deleteValue
// @grant        GM_registerMenuCommand
// @run-at 		 document-end
// @copyright 	 2022+, Fxy
// @copyright 	 2016+, wycaca
// @copyright 	 2014+, jasonshaw
// @copyright 	 2013+, Coolkid

// @namespace http://tampermonkey.net/
// ==/UserScript==

(function () {

    var APPNAME="网站签到工具1.0.7";
    var NOLOGIN="-----------------------------\n["+APPNAME+"]\n状态异常或未登录,登录后自动签到\n-----------------------------";
    var QIANDAO="-----------------------------\n["+APPNAME+"]\n签到完成!\n-----------------------------";
    var QIANDAOTEXT="-----------------------------\n["+APPNAME+"]\n领取完成!\n-----------------------------";

    //52破解
    if (isURL("52pojie.cn")) {
        window.setTimeout(function(){
            if (document.body.textContent.indexOf('全文搜索') != -1 || document.body.textContent.indexOf('自动登录') != -1){
                console.log(NOLOGIN);
                return;
            }else if(document.getElementById("g_upmine")==null && document.body.textContent.indexOf('Forbidden') == -1){
                window.setTimeout(function(){
                  console.log(NOLOGIN);
                  alert(NOLOGIN);
                  return;
                },1200);
            }else{
                var qq_bind = document.getElementsByClassName('qq_bind')[0].src;
                var g_upmine =document.getElementById("g_upmine");
                if (qq_bind.indexOf("qq_bind_small.gif") != -1 && qq_bind.indexOf("qds.png") != -1) {//未绑定QQ
                    window.setTimeout(function(){document.getElementsByClassName('qq_bind')[1].click();},2500);
                    console.log(QIANDAO);
                    return;
                }else if (qq_bind.indexOf("qds.png") != -1) {//未签到
                    window.setTimeout(function(){document.getElementsByClassName('qq_bind')[0].click();},2500);
                    console.log(QIANDAO);
                    return;
                }
            }
        },2800);
    }

    //飘云阁
    else if (isURL("chinapyg.com")) {
        qd4('签到领奖!', 'kx_s');
    }

    //网易云音乐
    else if (isURL("music.163.com")) {
        window.setTimeout(function(){
            if(!window.find("登录") && !window.find("登录网易云音乐")){
                var imgs2 = document.getElementsByClassName('sign')[0];
                if (imgs2.text.indexOf("签 到") == 0) {
                    imgs2.click();
                    console.log(QIANDAO);
                    return;
                }
                return;
            }else{
                console.log(NOLOGIN);
                return;
            }
        },3000);
    }

    //acfun
    else if (isURL("www.acfun.cn")) {
        var acfun_main = 'https://www.acfun.cn/';
        var acfun_member = 'https://www.acfun.cn/member/';
        if (isURL(acfun_member)) {
            console.log('进入acfun会员');
            setTimeout(function () {
                var ischecked = function (doc) {
                    return (document.getElementsByClassName("sign-in-btn")[0].textContent.indexOf("已签到") != -1);
                };
                if (!ischecked(document)) {
                    document.getElementsByClassName("sign-in-btn")[0].click();
                    window.setTimeout(function(){
                        window.location.reload();
                        document.getElementById("signin-modal-show").checked = true;
                        document.getElementsByClassName("signin-web-btn")[0].click();
                        console.log("-----------------------------\n["+APPNAME+"]\nAcfun 签到完成!\n-----------------------------");
                    },1000);
                } else {
                    console.log("-----------------------------\n["+APPNAME+"]\nAcfun 已签到!\n-----------------------------");
                }
            }, 2000);
        } else if (isURL(acfun_main)) {
            console.log("成功进入acfun世界");
            var islogin = function (doc) {return document.getElementsByClassName("guide-user")[0].textContent.indexOf("注册") == -1;};
            window.addEventListener('load', function () {
                if (!islogin(document)) {
                    console.log('脑波没对接');
                } else {
                    //toURL('/member/');
                    //var i = document.createElement('iframe');
                    //i.name = 'autologin-iframe';
                    //i.width = '100%';
                    //i.height = '0';
                    //i.frameBorder = "0";
                    //i.style.cssText = '\
                    //	                    margin:0!important;\
                    //	                    padding:0!important;\
                    //	                    visibility:hidden!important;\
                    //	                ';
                    //i.src = 'http://www.acfun.cn/member/';
                    //document.body.appendChild(i);
                }
            }, false);
        }
        return;
    }

    //文叔叔
    else if (isURL("wenshushu.cn")) {
        window.setTimeout(function(){document.getElementsByClassName('icon-cont_clock')[0].click();},3000);
        console.log(QIANDAO);
        return;
    }

    //IT天空
    else if (isURL("itsk.com")) {
        window.setTimeout(function(){
            document.getElementsByClassName('qiandao')[0].click();
            document.getElementsByClassName('signin-close')[0].click();
            console.log(QIANDAO);
        },3000);
        return;
    }

    //卡饭论坛
    else if (isURL("bbs.kafan.cn")) {
        var imgs3 = document.getElementById("pper_a").getElementsByTagName("IMG");
        if (imgs3[0].src.indexOf("wb.png") == -1) {
            document.getElementById("pper_a").click();
            console.log(QIANDAO);
            return;
        }
    }


    //好书友论坛
    else if (isURL("ppl520")) {
        window.setTimeout(function(){
            if (isURL('plugin.php?id=k_misign:sign')) {
                if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
    }

    //bili201 WK综合论坛
    else if (isURL("biliacg218") || isURL("googlewk")) {
        window.setTimeout(function(){document.getElementById('JD_sign').click();},2000);
        console.log(QIANDAO);
        return;
    }

    //二次元圣地
    else if (isURL("bbs.acg520")) {
        window.setTimeout(function(){document.getElementsByClassName('right')[0].click();},2000);
        console.log(QIANDAO);
        return;
    }

    //uzxun
    else if (isURL("uzxun")) {
        window.setTimeout(function(){
            if(window.find("已签到")){
                return;
            }else{
                document.getElementById('checkin_button2').click();
                return;
            }
        },2000);
    }

   //uzacg
    else if (isURL("uzacg")) {
        window.setTimeout(function(){
            if(window.find("已签到")){
                return;
            }else{
                document.getElementById('checkin_button2').click();
                return;
            }
        },2000);
    }

    //樱花萌ACG
    else if (isURL("yhuam")) {
        window.setTimeout(function(){document.getElementById('zzza_go').click();},2000);
        console.log(QIANDAO);
        return;
    }

    //HiFiNi - 音乐磁场
    else if (isURL("hifini.com")) {
        window.setTimeout(function(){
            var imgs5 = document.getElementById("sg_sign");
            if(imgs5.textContent.indexOf("请登录") != -1) {
                console.log(NOLOGIN);
                alert(NOLOGIN);
                return;
            }else if(imgs5.textContent.indexOf("已签") != -1){
                return;
            }else if(imgs5.textContent.indexOf("签到") != -1){
                imgs5.click();
                console.log(QIANDAO);
                return;
            }
        },2000);
    }

    //致美化
    else if (isURL("zhutix.com")) {
        var task_day_list=document.getElementsByClassName("task-day-list")[0];
        var task_day_list_ul=task_day_list.childNodes.item(0);
        var task_day_list_ul_lis=task_day_list_ul.childNodes;
        var task_day_list_ul_lis_lison4=null;
        for(var i=0;i<task_day_list_ul_lis.length;i++){
            if(i==3){
                task_day_list_ul_lis_lison4=task_day_list_ul_lis.item(i).innerHTML;
            }
        }
        var task_day_list_spanno15=document.getElementsByClassName("task-day-list")[0].getElementsByTagName('span')[15];
        if(task_day_list_spanno15.className.trim() == 'task-finish-icon-go') {
            document.getElementsByClassName("task-day-list")[0].getElementsByTagName('i')[7].click();
            console.log(QIANDAO);
            return;
        }else if(task_day_list_spanno15.className.trim() == 'task-finish-icon'){
            console.log(NOLOGIN);
            alert(NOLOGIN);
            return;
        }
    }

    //天使动漫论坛
    else if (isURL("tsdm")) {
        qd4('签到领奖!', 'kx_s');
    }

    //什么值得买
    else if (isURL("smzdm.com")) {
        window.setTimeout(function(){
            if(!window.find("登录") && !window.find("注册")){
                var imgs6 = document.getElementsByClassName('J_punch')[0];
                if (imgs6.text.indexOf("签到领奖") == 0) {
                    imgs6.click();
                    console.log(QIANDAO);
                    return;
                }
            }else{
                console.log(NOLOGIN);
                alert(NOLOGIN);
                return;
            }
        },2800);
    }

    //哥特萝莉
    else if (isURL("gtloli")) {
        window.setTimeout(function(){
            if(window.find("已签到")){
                return;
            }else{
                document.getElementById('JD_sign').click();
                return;
            }
        },2800);
    }

    //老王运维博客
    //else if (isURL("928wang")) {
    //    window.setTimeout(function(){
    //        if(window.find("已签到")){
    //            console.log("已签到");
    //            return;
    //        }else if(window.find("登录") || window.find("注册")){
    //            console.log("未登录");
    //            return;
    //        }else if(window.find("用户中心")){
    //            console.log("签到");
    //            document.getElementsByClassName('initiate-checkin')[0].click();
    //            return;
    //        }else{
    //            console.log("错误");
    //            return;
    //        }
    //    },3000);
    //}

    //iYa.App 软件交流社区
    else if (isURL("www.iya.app")) {
        if (window.find("签到领奖!")) {
    		window.location.href = "https://www.iya.app/plugin.php?id=dsu_paulsign:sign";
    		return;
    	}
    	qd();
    }

    //绅士之庭
    //else if (isURL("gmgard.com") || isURL("hggard.com")) {
    //	var p = {
    //		elements: ['.signdiv .btn-danger']
    //	}
    //	qd3();
    //	return;
    //}

    //原神
    //components-home-assets-__sign-content_---active---36unD3

    //书满楼
    else if (isURL("manlou99")) {
        window.setTimeout(function(){
            if (isURL('sign')) {
                if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
    }

    //桃子论坛
    else if (isURL("tzsqacg")) {
        window.setTimeout(function(){
            if(window.find("已签到")){
                return;
            }else{
                document.getElementById('JD_sign').click();
                return;
            }
        },2800);
    }

    //阡陌居
    else if (isURL("1000qm")) {
        qd4('签到领奖!', 'kx_s');
    }

    //阅读
    else if (isURL("legado")) {
        window.setTimeout(function(){
            if (isURL('k_misign-sign.html')) {
                if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
    }

    //数码之家
    else if (isURL("mydigit")) {
        window.setTimeout(function(){
            if (isURL('k_misign-sign.html')) {
                if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
    }

    //宽带技术网
    else if (isURL("chinadsl")) {
        window.setTimeout(function(){
            if (isURL('home.php?mod=task&do=view&id=1')) {
                var taskbtn = document.getElementsByClassName('taskbtn')[0].href;
                if (taskbtn.indexOf("javascript") == -1) {
                    $(".taskbtn")[0].click();
                    return;
                }
            }
        },1000);
    }

    //轻之文库
    else if (isURL("hanbao520")) {
        if (isURL('task')) {
          window.setTimeout(function(){
             document.getElementsByClassName('link-block')[9].click();
          },2800);
        }
    }

    //尘缘轻水
    else if (isURL("chenyuanqingshui")) {
        window.setTimeout(function(){
            if (window.find("点击领取今天的签到奖励")) {
                $(".user-w-qd.cur")[0].click();
                console.log(QIANDAOTEXT);
                return;
            }
        },1000);
    }

    //weme
    else if (isURL("weme")) {
        if (isURL('user')) {
           window.setTimeout(function(){
               if (window.find("今日签到")) {
                   $(".usercheck.checkin")[0].click();
                   console.log(QIANDAOTEXT);
                   return;
               }
           },2000);
        }
    }

    //月曦论坛
     else if (isURL("wcccc")) {
         window.setTimeout(function(){
            if (isURL('plugin.php?id=k_misign:sign')) {
                if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
     }

    //如此玩
     else if (isURL("ruciwan")) {
         window.setTimeout(function(){
            if (isURL('plugin.php?id=k_misign:sign')) {
                if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
     }

    //Minecraft中文站
    else if (isURL("mcbbs.net")) {
         window.setTimeout(function(){
            if (isURL('plugin.php?id=dc_signin')) {
                $(".sign_div a")[0].click();
            }
        },1000);
     }

    //MT论坛
    else if (isURL("binmt")) {
         window.setTimeout(function(){
            if (isURL('k_misign-sign.html')) {
                 if (window.find("您今天还没有签到")) {
                    $("#JD_sign").click();
                    console.log(QIANDAOTEXT);
                    return;
                }
            }
        },1000);
     }

    else {
        //其他论坛
        //数据恢复基地
        //火花论坛
        //qd();
        qd2();
        qd3();
    }
})();

//传递的url和当前url是否包含
function isURL(x) {
    return window.location.href.indexOf(x) != -1;
}

//取消前后空格
function trim(s){
    return s.replace(/(^\s*)|(\s*$)/g, "");
}

//跳转到传递的地址
function toURL(x) {
    window.location.href=x;
}

function qd() {
    if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
        var kxImg = document.getElementById("kx_s");
        var todaySayTextArea = document.getElementById("todaysay");
        if (kxImg == null) {
            return;
        }
        kxImg.setAttribute('checked', true);
        todaySayTextArea.value = "今天天气真好~签到。";
        var button = document.getElementById("qiandao");
        button.submit();
        return;
    }
}

function qd2() {
    document.getElementById("kx").click();
    var todaySayTextArea = document.getElementById("todaysay");
    if (todaySayTextArea != null) {
        todaySayTextArea.value = "今天天气真好~签到。";
    }
    unsafeWindow.showWindow('qwindow', 'qiandao', 'post', '0');
    return;
}

function qd3() {
    var elements = p.elements,i = 0;
    setTimeout(function () {
        try {
            var els;
            if (elements instanceof Array){ els = p.elements;}
            else {
                els = p.elements();
            }
            while (els[i]) {
                var obj = (p.elements instanceof Array) ? document.querySelector(els[i]) : els[i];
                if (obj == null) return;
                if (obj.tagName == "A" && obj.href.indexOf("javascript") < 0 && obj.onclick == "undefined") GM_openInTab(obj.href);
                else obj.click();
                i++;
            }
        } catch (e) {
            alert(e);
        }
    }, 400);
    setTimeout(function () {
        if (autoClose) window.close();
    }, delay + 100);
    return;
}

function qd4(checkElement, emojiImg) {
    if (isURL('dsu_paulsign:sign')) {
        if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
            $("#" + emojiImg).attr('checked', true);
            $("#todaysay").val("每天签到水一发。。。");
            $("#qiandao").submit();
        }
    } else if (window.find(checkElement)) {
        toURL("plugin.php?id=dsu_paulsign:sign");
    }
}

function qd5(checkElement, emojiImg) {
    if (isURL('dsu_paulsign-sign.html')) {
        if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
            $("#" + emojiImg).click();
            $("#todaysay").val("每天签到水一发。。。");
            $("#qiandao").submit();
        }
    } else if (window.find(checkElement)) {
        toURL("dsu_paulsign-sign.html");
    }
}