// ==UserScript== // @name 网站签到工具 // @version 1.2.6 // @description 用于各种论坛和网站自动签到\n论坛签到工具,签到工具,整合吾爱破解,飘云阁,卡饭论坛,网易云音乐,天使动漫论坛等论坛和网站自动点击签到\n根据论坛签到工具 二次开发 需要添加其他网站请在反馈里留言 // @author Fxy // @homepage https://greasyfork.org/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 http*://bbs.kafan.cn/* // @match http*://bbs.wstx.com/* // @match http://www.biliacg218.xyz/* // @match http*://bbs.acg520* // @match http*://googlewk* // @match https://jiuyh.com/* // @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.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 https://www.chinadsl.net/* // @match http://www.hanbao520.com/* // @match https://www.chenyuanqingshui.cn/* // @match https://www.weme.pw/* // @match https://www.52weme.fun/* // @match https://bbs.wcccc.cc/ // @match https://www.sayhuahuo.net/* // @match https://bbs.binmt.cc/* // @match https://coklw.com/ // @match https://coklw.xyz/ // @match http://lzone.moe/ // @match https://hggard.com/ // @match https://keyshot.pro/* // @match https://www.wnflb2023.com/* // @match https://wnflb2023.com/* // @match https://littleskin.cn/user // @match https://www.cunhua.work/* // @match https://www.cunhua.moe/* // @match http://www.2cycd.com/* // @match http://www.2cycdx.com/* // @match https://www.4ksj.com/* // @match https://www.xlebbs.com/* // @match https://www.42958.com/* // @match https://51acg.buzz/* // @match https://ikuuu.pw/* // @match https://www.mmybt.com/* // @match https://nb.mcy001.org/ // @match https://www.tiaokanwang.xyz/user // @match https://www.xmiaos.cc/* // @match https://www.feimaoyun.com/* // @match https://cnlang.org/* // @match http*://*/plugin.php?id=*sign* // @match https://www.iiisg.com/* // @match https://xhcyra.com/ // @match https://moxing.lol/ // @match https://www.moe-acg.com/ // @match https://zxcsol.com/ // @match https://www.uzacg.fun/ // @match https://www.uzacg.vip/ // @match https://blog.51cto.com/ // @match https://www.52cnp.com/* // @match https://bbs.naixi.net/* // @match https://www.manqushe.com/user // @match https://www.3dxy.com/U/Sign // @match https://3d.jzsc.net/* // @match https://www.znzmo.com/* // @match https://sxsy98.com/* // @match https://www.975w.com/* // @match https://klpbbs.com/ // @match https://xhcya.com/ // @match https://webstatic.mihoyo.com/ys/* // @match https://www.mudaiba.com/ // @match https://www.zyrhires.com/* // @match https://www.tekqart.com/* // @match https://winmoes.com/task // @match http://www.ydwgames.com/plugin.php?id=zqlj_sign // @match https://bbs.108mir.com/* // @match https://lixianla.com/ // @match https://70games.net/ // @match https://gztown.org/ // @match https://www.bugutv.org/* // @match http://www.nmandy.net/* // @match https://vip.lzzcc.cn/ // @match https://www.vikacg.com/* // @match https://www.iios.fun/* // @match https://www.macat.vip/user // @match https://bbs.66ccff.cc/ // @match https://www.soraacg.com/ // @match http://bbs.vc52.cn:8888/* // @match http://www.openedv.com/* // @match https://juejin.cn/user/* // @match https://fishc.com.cn/* // @match https://home.x64bbs.cn/ // @include https://*ikuuu* // @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="网站签到工具1.2.6"; var NOLOGIN="-----------------------------\n["+APPNAME+"]\n状态异常或未登录,登录后自动签到\n-----------------------------"; var QIANDAO="-----------------------------\n["+APPNAME+"]\n签到完成!\n-----------------------------"; var QIANDAOTEXT="-----------------------------\n["+APPNAME+"]\n领取完成!\n-----------------------------"; //52破解 if (isURL("52pojie.cn")) { if(isURL("search.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"); console.log("xx") if (qq_bind.indexOf("qds.png") != -1) {//未签到 console.log("wei") window.setTimeout(function(){$("#um p:eq(1) a:eq(0) img").click();},1000); return; } } },2000); } //飘云阁 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(); return; } return; }else{ alert(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)) { 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); } } //文叔叔 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")) { var imgs3 = document.getElementById("pper_a").getElementsByTagName("IMG"); if (imgs3[0].src.indexOf("wb.png") == -1) { document.getElementById("pper_a").click(); return; } } //WK综合论坛 else if (isURL("googlewk")) { window.setTimeout(function(){document.getElementById('JD_sign').click();},2000); return; } //二次元圣地 深影论坛 else if (isURL("bbs.acg520")|isURL("sybbs.vip/plugin.php?id=gsignin:index")) { window.setTimeout(function(){document.getElementsByClassName('right')[0].click();},2000); return; } //uzacg else if (isURL("uzacg")) { window.setTimeout(function(){ if(!window.find("已签到")){ document.getElementById('checkin_button2').click(); } },2000); } //樱花萌ACG else if (isURL("jiuyh")) { if (isURL("yinxingfei_zzza-yinxingfei_zzza_hall.html")) { window.setTimeout(function(){document.getElementById('zzza_go').click();},3000); } 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); } //致美化 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 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("xhcya")) { window.setTimeout( function(){ var aTag = document.querySelector('#inn-nav__point-sign-daily a'); if (aTag && aTag.title !== '已签到') { aTag.click(); } },2000); 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; } //知音人音乐网 品技 诺曼底影视 else if (isURL("zyrhires.com")|isURL("tekqart.com")|isURL("nmandy.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')) { window.setTimeout( function(){ if (document.getElementsByClassName('btna')[0].textContent === '点击打卡') { document.getElementsByClassName('btna')[0].click(); } },2000); return; } //奇速网单 else if (isURL("108mir.com")) { window.setTimeout(function(){ if(window.find("已签到")){ return; }else{ document.getElementById('JD_sign').click(); return; } },2800); } //离线啦 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); } //70Games else if (isURL("70games.net")) { window.setTimeout(function(){ if(window.find("已签到")){ return; }else{ document.getElementById('sg_sign').click(); return; } },2800); } //港知堂社区 else if (isURL("gztown.org")) { window.setTimeout(function(){ [...document.querySelectorAll('#um a')].forEach(a => { if (a.textContent.includes('签到领奖')) { a.click(); window.setTimeout(function(){ document.getElementById('fd').click(); document.querySelector('input[name="qdmode"][value="2"]').click(); document.querySelector('#qiandao button[type="button"]').click(); },1000); } }); },2800); } //大海资源库 else if (isURL("vip.lzzcc.cn")) { window.setTimeout(function(){ var qiandao_element = document.getElementsByClassName('img-badge')[2]; if (qiandao_element && qiandao_element.classList.contains("initiate-checkin")) { qiandao_element.click(); } },2000); } //维咔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(); } } }, 9000); } //苹果软件站 else if (isURL("iios.fun/#/points")) { window.setTimeout(function() { const elements = document.querySelectorAll('div'); elements.forEach(element => { if (element.textContent === '立即签到') { element.click(); } }); }, 2000); } //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); } //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); } } //掘金 else if (isURL("juejin.cn/user/center/signin")) { window.setTimeout(function() { const buttons = document.querySelectorAll('.signin.btn'); buttons.forEach(button => { if (button.textContent.includes('立即签到')) { button.click(); } }); }, 1000); } //掘金 免费自动抽奖 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); } //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); } 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"); } } 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); } }