// ==UserScript== // @name 自用论坛辅助签到 // @namespace bbshelper // @version 1.0.6 // @description 常用论坛辅助签到工具,包括天使动漫论坛、52破解、TTG、卡饭 // @author Eva // @include http*://u2.dmhy.org/* // @include http*://www.tsdm.love/* // @include http*://totheglory.im/* // @include http*://www.52pojie.cn/* // @include http*://bbs.kafan.cn/* // @include http*://www.cordcloud.*/* // @include http*://www.zodgame.us/* // @grant unsafeWindow // @require https://code.jquery.com/jquery-latest.min.js // @run-at document-end // @downloadURL none // ==/UserScript== (function() { //U2 if(matchURL("u2.dmhy.org")){ if(matchURL("showup.php")){ var message = $("textarea[name='message']"); if(message) message.text("注意:回答按钮点击时即提交,手滑损失自负~"); }else if(window.find("立即签到")){ window.location.href = "showup.php"; } } //TTG if(matchURL("totheglory.im")){ if($("#signed")) $("#signed")[0].click(); } //天使动漫 if (matchURL("tsdm.love")) { qd('签到领奖!','wl_s'); } //52破解 if(matchURL("52pojie.cn")){ var qdimg = $("img[src$='qds.png']"); if(qdimg) { $.ajax({ url:'home.php?mod=task&do=apply&id=2', dataType:'html', success:function(result){ if(result.indexOf('任务已完成') != -1){ console.log("签到成功!"); qdimg.attr('src','https://www.52pojie.cn/static/image/common/wbs.png'); } } }) } } //卡饭 if(matchURL("kafan.cn")){ var qdimg = $("img[src$='dk.png']"); if(qdimg) { $.ajax({ url:'plugin.php?id=dsu_amupper&ppersubmit=true&formhash=ef60f83d', dataType:'html', success:function(result){ if(result.indexOf('alert_right') != -1){ console.log("签到成功!"); qdimg.attr('src','https://a.ikafan.com/plugin/dsu_amupper/images/wb.png'); } } }) } } //CordCloud if(matchURL("cordcloud")){ var qdBtn = $("#checkin"); if(qdBtn) qdBtn.click(); } //ZodGame if (matchURL("zodgame.us")) { qd('','fd_s'); } function qd(checkElement,emoji){ if(matchURL('dsu_paulsign:sign')){ if (window.find("今天签到了吗") && window.find("写下今天最想说的话")) { $("#"+emoji).attr('checked',true); $("#todaysay").val("每天签到水一发。。。"); $("#qiandao").submit(); } }else if(window.find(checkElement)){ window.location.href = "plugin.php?id=dsu_paulsign:sign"; } } function matchURL(x){ return window.location.href.indexOf(x) != -1; } })();