Greasy Fork

Greasy Fork is available in English.

网站签到工具

用于各种论坛和网站自动签到 论坛签到工具、签到工具、整合吾爱破解、飘云阁、卡饭论坛、网易云音乐、天使动漫论坛等论坛和网站自动点击签到 根据论坛签到工具 二次开发 需要添加其他网站请私聊我留下网站地址

当前为 2025-04-25 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         网站签到工具
// @version      1.4.2
// @description  用于各种论坛和网站自动签到 论坛签到工具、签到工具、整合吾爱破解、飘云阁、卡饭论坛、网易云音乐、天使动漫论坛等论坛和网站自动点击签到 根据论坛签到工具 二次开发 需要添加其他网站请私聊我留下网站地址
// @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
// @icon         https://www.dismall.com/favicon.ico
// @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        https://bbs.kafan.cn/*
// @match        https://bbs.wstx.com/*
// @match        https://googlewk.com
// @match        https://jiuyh.com/*
// @match        https://*.hifini.com/*
// @match        https://zhutix.com/*
// @match        https://www.tsdm39.com/*
// @match        https://www.smzdm.com/
// @match        https://www.iya.app/*
// @match        https://sq.wgrid.cn/*
// @match        *://www.1000qm.vip/*
// @match        https://www.mydigit.cn/*
// @match        https://bbs.jqhdd.com/*
// @match        https://www.chinadsl.net/*
// @match        https://www.chenyuanqingshui.cn/*
// @match        https://*.weme.lat/*
// @match        https://www.sayhanabi.net/*
// @match        https://bbs.binmt.cc/*
// @match        https://*.coklw.vip/
// @match        *://lzone.moe/
// @match        https://hggard.com/
// @match        https://keyshot.pro/*
// @match        https://*.wnflb2023.com/*
// @match        https://littleskin.cn/user
// @match        *://*.2cycd.com/*
// @match        *://*.2cycdx.com/*
// @match        https://www.4ksj.com/*
// @match        https://www.xlebbs.com/*
// @match        https://51acg.buzz/*
// @match        https://nb.mcy001.org/
// @match        https://nb.mcy002.org/
// @match        https://www.tiaokanwang.xyz/user*
// @match        https://*.xms2.cc/*
// @match        https://cnlang.org/*
// @match        https://www.iiisg.com/*
// @match        https://xhcyra.com/
// @match        https://moxing.lol/
// @match        https://www.mhh1.com/
// @match        https://zxcsol.com/
// @match        https://blog.51cto.com/
// @match        https://www.52cnp.com/*
// @match        https://forum.naixi.net/*
// @match        https://3d.jzsc.net/*
// @match        https://www.znzmo.com/*
// @match        https://www.975w.com/*
// @match        https://klpbbs.com/*
// @match        https://xhcyw.com/
// @match        https://*.mudaiba.com/
// @match        https://www.zyrhires.com/*
// @match        https://www.tekqart.com/*
// @match        https://winmoes.com/task
// @match        *://www.ydwgames.com/*
// @match        https://bbs.108mir.com/*
// @match        https://lixianla.com/
// @match        https://70games.net/
// @match        https://gztown.org/*
// @match        https://www.bugutv.vip/*
// @match        *://www.nmandy.net/*
// @match        https://vip.lzzcc.cn/
// @match        https://www.vikacg.com/*
// @match        https://*.iios.fun/*
// @match        https://www.macat.vip/user
// @match        https://bbs.66ccff.cc/
// @match        https://www.soraacg.com/
// @match        *://www.openedv.com/*
// @match        https://juejin.cn/user/*
// @match        https://fishc.com.cn/*
// @match        https://home.x64bbs.cn/
// @match        *://www.ymmfa.com/*
// @match        https://*.manhuabudangbbs.com/*
// @match        https://www.55188.com/*
// @match        https://2dfan.com/*
// @match        https://www.xianyudanji.ai/*
// @match        https://bbs2.seikuu.com/*
// @match        https://bbs.yamibo.com/*
// @match        https://bingfong.com/*
// @match        https://www.jyeoo.com/*
// @match        https://duokan.club/*
// @match        https://xhzyku.com/*
// @match        https://www.xbgame.net/*
// @match        https://bbs.steamtools.net/*
// @match        https://club.excelhome.net/*
// @match        https://aistudio.baidu.com/*
// @match        https://www.luogu.com.cn/*
// @match        https://bbs.foodmate.net/*
// @match        *://apk.tw/*
// @match        https://www.fotor.com/*
// @match        https://*.mnpc.net/*
// @match        https://www.byzhihuo.com/*
// @match        https://mox.moxing.lol/*
// @include      https://sxsy*.com/*
// @include      https://*ikuuu*
// @include      *://*/plugin.php?id=*sign*
// @exclude      https://leaves.red/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js
// @grant        GM_addStyle
// @grant        GM_getResourceText
// @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="网站签到工具-"+GM_info.script.version;
    var NOLOGIN="-----------------------------\n["+APPNAME+"]\n状态异常或未登录,登录后自动签到\n-----------------------------";
    var QIANDAO="-----------------------------\n["+APPNAME+"]\n签到完成!\n-----------------------------";
    var QIANDAOTEXT="-----------------------------\n["+APPNAME+"]\n领取完成!\n-----------------------------";

    /* globals jQuery, $, waitForKeyElements */

    //吾爱破解论坛
    if (isURL("52pojie.cn")) {
        if(isURL("search.php")||isURL("home.php")){
            return;
        }
        window.setTimeout(function(){
            if (document.body.textContent.indexOf('注册[Register]') != -1){
                return;
            }else if(document.getElementById("g_upmine")==null && document.body.textContent.indexOf('Forbidden') == -1){
                window.setTimeout(function(){
                    alert(NOLOGIN);
                },1200);
            }else{
                var qq_bind = $("#um p:eq(1) a:eq(0) img").attr('src');
                var g_upmine =document.getElementById("g_upmine");
                if (qq_bind.indexOf("qds.png") != -1) {//未签到
                    window.setTimeout(function(){$("#um p:eq(1) a:eq(0) img").click();},1000);
                    return;
                }
            }
        },2000);
        return;
    }

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

    //网易云音乐
    else if (isURL("music.163.com")) {
        window.setTimeout(function(){
            if(!window.find("登录") && !window.find("登录网易云音乐")){
                const iframe = document.querySelector('#g_iframe');
                const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
                const sign_button = iframeDoc.getElementsByClassName('sign')[0];
                if (sign_button && sign_button.text.indexOf("签 到") == 0) {
                    sign_button.click();
                    return;
                }
            }else{
                alert(NOLOGIN);
            }
        },3000);
        return;
    }

    //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)) {
            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(){
                        document.getElementById("signin-modal-show").checked = true;
                        document.getElementsByClassName("signin-web-btn")[0].click();
                        window.location.reload();
                    },1000);
                }
            }, 2000);
        }
        return;
    }

    //文叔叔
    else if (isURL("wenshushu.cn")) {
        window.setTimeout(function(){
            for (var i=0; i<5; i++)
            {
                if (typeof $(".btn-icon")[i] != 'undefined') {
                    $(".btn-icon")[i].click();
                }
            }
            document.getElementsByClassName('icon-cont_clock')[0].click();
        },5000);
        return;
    }

    //IT天空
    else if (isURL("itsk.com")) {
        window.setTimeout(function(){
            document.getElementsByClassName('daily-sign')[0].click();
        },3000);
        return;
    }

    //卡饭论坛 冰楓論壇
    else if (isURL("bbs.kafan.cn") || isURL("bingfong.com")) {
        window.setTimeout(function(){
            var imgs3 = document.getElementById("pper_a").getElementsByTagName("IMG");
            if (imgs3[0].src.indexOf("wb.png") == -1) {
                document.getElementById("pper_a").click();
            }
        },2000);
        return;
    }

    //WK综合论坛 鱼C论坛 时光论坛 数码之家 MT论坛  91ACG次元小屋 华印社区 奶昔论坛 苦力怕论坛 奇速网单 ExcelHome技术论坛 不移之火
    else if (isURL("googlewk") || isURL("fishc.com.cn") || isURL("iiisg.com") || isURL("mydigit.cn") || isURL("bbs.binmt.cc") || isURL("51acg.buzz") || isURL("52cnp.com") || isURL("naixi.net") || isURL("klpbbs.com") || isURL("108mir.com") || isURL("club.excelhome.net")  || isURL("byzhihuo.com")) {
        window.setTimeout(function(){
            if (isURL('k_misign-sign.html') || isURL('plugin.php?id=k_misign:sign') || isURL('k_misign:sign') || isURL('sign.php')) {
                if (window.find("您今天还没有签到")||window.find("您今天還沒有簽到")) {
                    $("#JD_sign").click();
                    return;
                }
            }
        },2000);
        return;
    }

    //深影论坛
    else if (isURL("sybbs.vip/plugin.php?id=gsignin:index")) {
        window.setTimeout(function(){document.getElementsByClassName('right')[0].click();},2000);
        return;
    }

    //樱花萌ACG 三国情论坛
    else if (isURL("jiuyh") || isURL("975w.com")) {
        if (isURL('yinxingfei_zzza:yinxingfei_zzza_hall') || isURL("yinxingfei_zzza-yinxingfei_zzza_hall.html")) {
            window.setTimeout(function(){document.getElementById("zzza_go").click();},2000);
        }
        return;
    }

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

    //致美化
    else if (isURL("zhutix.com/task")) {
        window.setTimeout(function(){
            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('a')[3].click();
                alert(QIANDAO);
                return;
            }
        },1000);
        return;
    }
    else if (isURL("zhutix.com/mission/today")) {
        window.setTimeout(function(){
            var span = document.getElementsByClassName('gold-row')[0].getElementsByTagName('span')[0];
            var button = document.getElementsByClassName('gold-row')[0].getElementsByTagName('button')[0];
            if (button && span && span.innerText.includes('签到')) {
                button.click();
                alert(QIANDAO);
            }
        },6500);
        return;
    }

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

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

    //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();
        return;
    }

    //阡陌居
    else if (isURL("1000qm")) {
        qd4('签到领奖!', 'kx_s');
        window.setTimeout(function(){
            toURL_once('/home.php?mod=task&do=apply&id=1')
        },2000);
        return;
    }

    //宽带技术网
    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);
        return;
    }

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

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

    //快乐屋洛丽塔
    else if (isURL("coklw")) {
        window.setTimeout(function(){
            if(window.find("已签到")){
                return;
            }else{
                $(".poi-tooltip.inn-nav__point-sign-daily__btn")[0].click();
                return;
            }
        },2000);
        return;
    }

    //绅士之庭
    else if (isURL("lzone.moe") || isURL("hggard.com")) {
        if(window.find("连续签到") || window.find("登录")){
            return;
        }else{
            $("#checkw").click();
            return;
        }
        return;
    }

    //keyshot
    else if (isURL("keyshot.pro/qiandao")) {
        window.setTimeout(function(){
            if(window.find("注册")){
                return;
            }else{
                $(".jinsom-qiandao3")[0].click();
                return;
            }
        },2000);
        return;
    }

    //moxing new
    else if (isURL("mox.moxing")) {
        window.setTimeout(function(){
            if(window.find("签到抽奖")){
                $(".el-button.el-button--primary.is-round")[0].click();
            }
        },10000);
        return;
    }

    //wnflb2023 moxing
    else if (isURL("wnflb2023") || isURL("moxing.lol")) {
        window.setTimeout(function(){
            if(!window.find("自动登录")){
                var imgs6 = document.getElementById("fx_checkin_b");
                if (imgs6.alt.indexOf("签到领奖") == 0 || imgs6.alt.indexOf("点击签到") == 0) {
                    $("#fx_checkin_b").click();
                }
            }
        },5000);
        return;
    }

    //LittleSkin
    else if (isURL("littleskin")) {
        window.setTimeout(function(){
            if(window.find("签到")){
                $(".bg-gradient-primary")[0].click();
            }
        },2000);
        return;
    }

    //二次元虫洞
    else if (isURL("2cycd")) {
        if ($('#dcsignin_tips').attr("style").indexOf("signin_no")!=-1){
            $("#dcsignin_tips").click();
            window.setTimeout(function(){
                $(".dcsignin_list li")[14].click();
                $('#emotid').val('10');
                $('.pnc')[0].click();
            },2000);
        }
        return;
    }

    //4K世界
    else if (isURL("4ksj")) {
        if (isURL('qiandao.php')) {
            window.setTimeout(function(){
                var imgs7 = document.getElementsByClassName("btna")[0];
                if(imgs7.textContent.indexOf("点击打卡")==0){
                    $('.btna')[0].click();
                }
            },2000);
        }
        return;
    }

    //iKuuu VPN
    else if (isURL("ikuuu")) {
        window.setTimeout(function(){
            if (isURL('user')) {
                if (window.find("每日签到")) {
                    $(".btn-primary")[0].click();
                    return;
                }
            }
        },1000);
        return;
    }

    //新妙社
    else if (isURL("xms2.cc")) {
        if (isURL('dsu_paulsign-sign.html')) {
            window.setTimeout(function(){
                if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
                    $("#kx").click();
                    $(".btn")[0].click();
                }
            },1000);
        }
        return;
    }

    //国语视界 食品论坛
    else if (isURL("cnlang.org")||isURL("foodmate.net")) {
        if (isURL('dsu_paulsign-sign.html')) {
            if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) {
                $("#kx").click();
                $("#todaysay").val("每天签到水一发。。。");
                showWindow('qwindow', 'qiandao', 'post', '0');
            }
        }
        return;
    }

    //萌次元
    else if (isURL("mcy")) {
        window.setTimeout(function(){
            if(window.find("签到")){
                $(".inn-nav__point-sign-daily__btn")[0].click();
            }
        },2000);
        return;
    }

    //调侃网
    else if (isURL("tiaokanwang")) {
        window.setTimeout(function(){
            if(window.find("今日签到")){
                $(".erphpdown-sc-btn")[0].click();
            }
        },2000);
        return;
    }

    //萌幻之乡
    else if (isURL("mhh1")) {
        window.setTimeout(function(){
            if(window.find("签到")){
                $(".inn-nav__point-sign-daily__btn")[0].click();
            }
        },10000);
        return;
    }

    //知轩藏书 梦楠分享
    else if (isURL("zxcsol") || isURL("mnpc.net")) {
        window.setTimeout(function() {
            var checkinLinks = document.querySelectorAll('a.initiate-checkin');
            checkinLinks.forEach(function(link) {
                if (link.textContent.includes('今日奖励') || link.textContent.includes('每日签到')) {
                    link.click();
                    return false;
                }
            });
        }, 2000);
        return;
    }

    //51cto
    else if (isURL("blog.51cto.com")) {
        window.setTimeout(function(){
            var imgs8 = document.getElementById('sign');
            if(imgs8!=null){
                if(imgs8.textContent.indexOf("签到领勋章")==0){
                    $('#sign').click();
                }
            }
        },2000);
        return;
    }

    //布谷TV 马克喵 咸鱼单机 小黑资源库
    else if (isURL("bugutv.vip/user") || isURL("macat.vip/user") || isURL("xianyudanji.ai/user") || isURL("xhzyku.com/user")) {
        window.setTimeout(function(){
            var button = document.querySelector('.go-user-qiandao');
            if (button && button.textContent.includes('每日签到')) {
                button.click();
            }
        },2000);
        return;
    }

    //典尚三维模型网
    else if (isURL("3d.jzsc.net")) {
        window.setTimeout(function(){
            const element = document.getElementById("setsign");
            if (element){
                if (document.getElementById("setsign").textContent.indexOf("已签到") == -1){
                    document.getElementById("setsign").click();
                }
            }
        },2000);
        return;
    }

    //知末网
    else if (isURL("znzmo.com")) {
        window.setTimeout(function(){
            if (isURL('usercenter_task.html?subaction=sign')) {
                $(".task_signIn_week_item_img.heartbeat")[0].click();
                window.setTimeout(function(){
                    $(".signIn-progress-btn")[0].click();
                },1000);
            };
        },9500);
        return;
    }

    //尚香书苑 书友社区
    else if (isURL("sxsy") || isURL("wgrid.cn")) {
        window.setTimeout(function(){
            if (document.getElementById("fx_checkin_b").src.includes('mini.gif')){
                document.getElementById("fx_checkin_b").click();
                return;
            }
        },2000);
        return;
    }

    //原神赛事签到
    else if (isURL("/ys/event/tcgmatch")) {
        window.setTimeout(function(){
            const buttons = Array.from(document.querySelectorAll('.src-components-common-assets-__raceBonusTasks_---text---IVInbN')).filter(button => button.textContent.includes('领取'));
            if (buttons.length > 0) {
                for (let i = buttons.length - 1; i >= 0; i--) {
                    const button = buttons[i];
                    if (i > 0) {
                        window.setTimeout(function(){
                            button.click();
                        },1000);
                    }
                }
            }
        },2000);
        return;
    }

    //芯幻
    else if (isURL("xhcyw")) {
        window.setTimeout(function(){
            var aTag = document.querySelector('#inn-nav__point-sign-daily a');
            if (aTag && aTag.title !== '已签到') {
                aTag.click();
            }
        },3000);
        return;
    }

    //母带吧音乐
    else if (isURL('mudaiba.com')) {
        window.setTimeout(function(){
            var span = document.querySelector('.m_sign');
            if (span.textContent === '签到') {
                document.getElementById('m_sign').click();
            }
        },2000);
        return;
    }

    //知音人音乐网 诺曼底影视 SteamTools
    else if (isURL("zyrhires.com") || isURL("nmandy.net") || isURL("steamtools.net")) {
        window.setTimeout(function(){
            var aElement = document.getElementById('dcsignin_tips');
            var computedStyle = window.getComputedStyle(aElement);
            var backgroundImage = computedStyle.getPropertyValue('background-image');
            if (backgroundImage.includes('signin_no.png')) {
                aElement.click();
                window.setTimeout(function() {
                    var ulElement = document.querySelector('.dcsignin_list');
                    var ninthLiElement = ulElement.children[8];
                    ninthLiElement.click();
                    var submitButton = document.querySelector('button[name="signpn"]');
                    if (submitButton) {
                        submitButton.click();
                    }
                }, 2000);
            }
        },2000);
        return;
    }

    //枫の主题社
    else if (isURL('winmoes.com')) {
        window.setTimeout(function(){
            document.getElementsByClassName('link-block')[7].click();
        },2000);
        return;
    }

    //游蝶网单
    else if (isURL('ydwgames.com') || isURL('yamibo.com/plugin.php?id=zqlj_sign')) {
        window.setTimeout(function(){
            qd4('签到领奖!', 'kx_s');
            return;
        },2000);
        return;
    }

    //离线啦
    else if (isURL("lixianla.com")) {
        window.setTimeout(function(){
            var span = document.querySelector('#sg_sign .btn-group button span');
            if (span.textContent.trim() === '签到') {
                span.closest('button').click();
            }
        },2800);
        return;
    }

    //70Games
    else if (isURL("70games.net")) {
        window.setTimeout(function(){
            if(window.find("已签")){
                return;
            }else{
                document.getElementById('sg_sign').click();
                return;
            }
        },2800);
        return;
    }

    //大海资源库
    else if (isURL("vip.lzzcc.cn")) {
        window.setTimeout(function(){
            var qiandao_element = document.getElementsByClassName('img-badge')[3];
            if (qiandao_element && qiandao_element.classList.contains("initiate-checkin")) {
                qiandao_element.click();
            }
        },2000);
        return;
    }

    //维咔VikACG
    else if (isURL("vikacg.com/wallet/mission")) {
        window.setTimeout(function() {
            var todayNotSignedIn = document.querySelector('.credit-main .h6 span span');
            if (todayNotSignedIn && todayNotSignedIn.textContent.includes('今日未签')) {
                var signInButton = document.querySelector('.credit-main .ml-auto button');
                if (signInButton && signInButton.textContent.includes('立即签到')) {
                    signInButton.click();
                }
            }
        }, 5000);
        return;
    }

    //苹果软件站
    else if (isURL("iios.fun/#/points")) {
        window.setTimeout(function() {
            const elements = document.querySelectorAll('div');
            elements.forEach(element => {
                if (element.textContent === '立即签到') {
                    element.click();
                }
            });
        }, 2000);
        return;
    }

    //V次元 穹之下
    else if (isURL("66ccff.cc") || isURL("soraacg.com")) {
        window.setTimeout(function() {
            var checkinLinks = document.querySelectorAll('a.initiate-checkin');
            checkinLinks.forEach(function(link) {
                if (link.textContent.includes('签到')) {
                    link.click();
                    return false;
                }
            });
        }, 3000);
        return;
    }

    //OpenEdv
    else if (isURL("openedv.com")) {
        if ($('#dcsignin_tips').attr("style").indexOf("signin_no")!=-1){
            $("#dcsignin_tips").click();
            window.setTimeout(function(){
                $(".dcsignin_list li")[8].click();
                $('#emotid').val('8');
                $('.pnc')[0].click();
            },2000);
        }
        return;
    }

    //掘金
    else if (isURL("juejin.cn/user/center/signin") || isURL("juejin.cn/user/center/signin?avatar_menu")) {
        window.setTimeout(function() {
            const buttons = document.querySelectorAll('.signin.btn');
            buttons.forEach(button => {
                if (button.textContent.includes('立即签到')) {
                    button.click();
                }
            });
        }, 1000);
        return;
    }

    //掘金 免费自动抽奖
    else if (isURL("juejin.cn/user/center/lottery?from=sign_in_success")) {
        window.setTimeout(function() {
            const buttons = document.querySelectorAll('button');
            Array.from(buttons).find(button => button.textContent.includes('去抽奖'))?.click();
            var turntable = document.getElementById('turntable-item-0');
            if (turntable && turntable.querySelector('.text-free')) {
                turntable.click();
            }
        }, 1000);
        return;
    }

    //X64论坛
    else if (isURL("ome.x64bbs.cn")) {
        window.setTimeout(function() {
            var divUm = document.getElementById('um');
            var links = divUm.getElementsByTagName('a');
            for (var i = 0; i < links.length; i++) {
                if (links[i].textContent.includes('打卡签到')) {
                    links[i].click();
                    return;
                }
            }
        }, 2000);
        return;
    }

    //工控人家园
    else if (isURL("ymmfa.com/read-gktid-142599.html")) {
        window.setTimeout(function() {
            const chinaTime = new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' });
            const today = chinaTime.split(' ')[0];
            const time1 = GM_getValue('time1', '');
            const time2 = GM_getValue('time2', '');
            const isTime2Today = time2.split(' ')[0] === today;
            if (!isTime2Today && !time1) {
                const link1 = document.getElementById('url_1');
                if (link1) {
                    link1.click();
                    GM_setValue('time1', chinaTime);
                }
            } else {
                const time1Date = new Date(time1);
                const now = new Date(chinaTime);
                const diffInMinutes = (now - time1Date) / 60000;
                if(!isTime2Today){
                    const checkCondition = () => {
                        const currentTime = new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' });
                        const currentTimeDate = new Date(currentTime);
                        const time1Date = new Date(time1);
                        const diffInMinutes = (currentTimeDate - time1Date) / 60000;

                        if (diffInMinutes > 60) {
                            const link2 = document.getElementById('url_2');
                            if (link2) {
                                link2.click();
                                GM_setValue('time2', currentTime);
                                GM_setValue('time1', '');
                                alert(QIANDAO);
                            }
                        } else {
                            setTimeout(checkCondition, 10 * 60 * 1000);
                        }
                    };
                    checkCondition();
                }
            }
        }, 1000);
        return;
    }

    //補檔冰室
    else if (isURL("manhuabudangbbs.com/u.php")) {
        window.setTimeout(function() {
            var punchElement = document.getElementById('punch');
            if (punchElement && (punchElement.textContent.includes('每日打卡') || punchElement.textContent.includes('未打卡')) ) {
                punchElement.click();
            }
        }, 2000);
        return;
    }

    //理想股票技术论坛
    else if (isURL("55188.com/plugin.php?id=sign")) {
        window.setTimeout(function(){
            if (window.find("您今天还没有签到哦")) {
                document.getElementById('addsign').click();
            }
        },1000);
        return;
    }

    //2DFan
    else if (isURL("2dfan.com/users")) {
        window.setTimeout(function(){
            const button = document.getElementById('do_checkin');
            if (button && button.textContent.includes('今日签到')) {
                button.click();
            }
        },8000);
        return;
    }

    //星空论坛
    else if (isURL("seikuu.com")){
        window.setTimeout(function(){
            var todaySayTextArea = document.getElementById("todaysay");
            document.getElementById("kx").click();
            if (todaySayTextArea != null) {
                todaySayTextArea.value = "今天天气真好~签到。";
            }
            unsafeWindow.showWindow('qwindow', 'qiandao', 'post', '0');
        },2000);
        return;
    }

    //菁优网
    else if (isURL("jyeoo.com/profile")){
        window.setTimeout(function(){
            if (document.getElementById('sign').textContent === '立即签到') {
                document.getElementById('sign').click();
            }
        },2000);
        return;
    }

    //多看聚影 品技 港知堂社区
    else if (isURL("duokan.club/sign.php") || isURL("tekqart.com/plugin.php?id=zqlj_sign") || isURL("gztown.org")) {
        window.setTimeout(function() {
            var btnaElement = document.getElementsByClassName('btna')[0];
            if (btnaElement && btnaElement.textContent.includes('点击打卡')) {
                btnaElement.click();
            }
        }, 1000);
        return;
    }

    //飞浆
    else if (isURL("aistudio.baidu.com")) {
        window.setTimeout(function() {
            var hoverElement = document.querySelector('.a-s-header-tool-item.header-tool-item-console');
            if (hoverElement) {
                var mouseoverEvent = new MouseEvent('mouseover', {
                    bubbles: true,
                    cancelable: true
                });
                hoverElement.dispatchEvent(mouseoverEvent);
                window.setTimeout(function() {
                    var titleElement = document.querySelector('.user-sign-highlight .user-sign-item-title');
                    if (titleElement && titleElement.textContent.includes('签到')) {
                        titleElement.closest('.user-sign-highlight').click();
                        console.log('已自动点击签到项');
                    }
                }, 1000);
            }
        }, 3000);
        return;
    }

    //洛谷
    else if (isURL("luogu.com.cn")){
        window.setTimeout(function(){
            var am_btn=document.getElementsByClassName('am-btn-warning')[0];
            if (am_btn&&am_btn.textContent === '点击打卡') {
                am_btn.click();
            }
        },2000);
        return;
    }

    //小白游戏网
    else if (isURL("xbgame.net/task")) {
        window.setTimeout(function(){
            document.getElementsByClassName('link-block')[3].click();
        },2000);
        return;
    }

    //apk.tw
    else if (isURL("apk.tw")) {
        window.setTimeout(function(){
            function eventFire(el, etype){
                if (el.fireEvent) {
                    el.fireEvent('on' + etype);
                } else {
                    var evObj = document.createEvent('Events');
                    evObj.initEvent(etype, true, false);
                    el.dispatchEvent(evObj);
                }
            }
            eventFire(document.getElementById('my_amupper'), 'click');
            document.cookie = 'adblock_forbit=1;expires=0';
        },1000);
        return;
    }

    //fotor
    else if (isURL("fotor.com/cn/rewards") || isURL("fotor.com/tw/rewards")) {
        window.setTimeout(function(){
            // 综合特征检测
            const candidate = Array.from(document.querySelectorAll('button')).find(btn => {
                return (btn.textContent.includes('立即领取') || btn.textContent.includes('立即領取')) &&
                    btn.querySelector('span.PointsActivityPageSection_credits__104Wy') &&
                    btn.closest('[class*="dailyCheckIn"]');
            });
            if (candidate) {
                candidate.click();
            }
        },3000);
        return;
    }

    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') || isURL('dsu_paulsign-sign.html')) {
        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");
    }
}

function toURL_once(url,name='time'){
    const t = new Date();
    const time = [t.getFullYear(),t.getMonth()+1,t.getDate()].join("/");
    const itemName = "qd_"+name;
    if(localStorage.getItem(itemName) != time){
        localStorage.setItem(itemName,time);
        toURL(url);
    }
}