// ==UserScript== // @name 网站签到工具 // @namespace http://tampermonkey.net/ // @version 0.5 // @description 用于各种论坛和网站自动点击签到 // @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 // @include https://www.52pojie.cn/* // @include https://music.163.com/* // @include https://www.hifini.com* // @include https://www.acfun.cn* // @include https://www.wenshushu.cn/* // @include http*://bbs.kafan.cn/* // @include http*://bbs.wstx.com/* // @include http*://*bili201.com* // @include http*://bbs.acg520* // @include http*://*uzxun* // @include http*://googlewk* // @include http*://yhuam* // @include https://*58shuyou.com* // @include https://*zhutix.com/* // @include http*://*/plugin.php?id=*sign* // @note 论坛签到工具,签到工具,整合吾爱破解,卡饭论坛,网易云音乐,uzxun等论坛自动点击签到 // @note 根据论坛签到工具 二次开发 需要添加其他网站请在反馈里留言 // @grant GM_xmlhttpRequest // @grant unsafeWindow // @run-at document-end // @copyright 2022+, Fxy // @copyright 2016+, wycaca // @copyright 2014+, jasonshaw // @copyright 2013+, Coolkid // @downloadURL none // ==/UserScript== (function () { var APPNAME="网站签到工具0.5"; var NOLOGIN="-----------------------------\n["+APPNAME+"]\n未登录,登录后自动签到\n-----------------------------"; var QIANDAOTEXT="-----------------------------\n["+APPNAME+"]\n签到完成!\n-----------------------------"; //52破解 if (isURL("52pojie.cn")) { if (document.getElementById("g_upmine")==null){ console.log(NOLOGIN); alert(NOLOGIN); return; }else{ var qq_bind = document.getElementsByClassName('qq_bind')[0].src; var g_upmine =document.getElementById("g_upmine"); if (qq_bind.indexOf("wbs.png") == -1) { window.setTimeout(function(){document.getElementsByClassName('qq_bind')[0].click();},2000); console.log(QIANDAOTEXT); return; } } } //网易云音乐 else if (isURL("music.163.com")) { var imgs2 = document.getElementsByClassName("u-btn2-2")[0]; if (imgs2.textContent.indexOf("已") != -1) { imgs2.click(); console.log(QIANDAOTEXT); return; } } //acfun else if (isURL("www.acfun.cn")) { //var acfun_main = /^https?:\/\/www.acfun.cn/; //var acfun_member = /^https?:\/\/www.acfun.cn\/member\//; 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(); console.log("-----------------------------\n["+APPNAME+"]\nAcfun 签到完成!\n-----------------------------"); } 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();},2000); console.log(QIANDAOTEXT); 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(QIANDAOTEXT); return; } } //好书友论坛 else if (isURL("58shuyou")) { var imgs4 = document.getElementById("fx_checkin_b"); var g_upmine2 =document.getElementById("g_upmine"); if (imgs4.alt.indexOf('已签') == -1) { imgs4.click(); console.log(QIANDAOTEXT); return; }else if(g_upmine2.text.indexOf("用户") == -1){ console.log(NOLOGIN); alert(NOLOGIN); } } //bili201 WK综合论坛 else if (isURL("bili201") || isURL("googlewk")) { window.setTimeout(function(){document.getElementById('JD_sign').click();},2000); console.log(QIANDAOTEXT); return; } //二次元圣地 else if (isURL("bbs.acg520")) { window.setTimeout(function(){document.getElementsByClassName('right')[0].click();},2000); console.log(QIANDAOTEXT); return; } //uzxun else if (isURL("uzxun")) { window.setTimeout(function(){document.getElementById('checkin_button2').click();},2000); console.log(QIANDAOTEXT); return; } //樱花萌ACG else if (isURL("yhuam.com")) { window.setTimeout(function(){document.getElementById('zzza_go').click();},2000); console.log(QIANDAOTEXT); return; } //HiFiNi - 音乐磁场 else if (isURL("hifini.com")) { var imgs5 = document.getElementById("sg_sign"); if(imgs5.textContent.indexOf("请登录") != -1) { console.log(NOLOGIN); alert(NOLOGIN); return; }else if(imgs5.textContent.indexOf("已") != -1){ imgs5.click(); console.log(QIANDAOTEXT); return; } } //致美化 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