Skip to content

Commit a337525

Browse files
committed
优化 自动签到方式(改为后台打开签到地址并立即关闭,不影响前台观感)
1 parent ebd3090 commit a337525

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

52pojie-Enhanced.user.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 吾爱破解论坛增强 - 自动签到、翻页
3-
// @version 1.2.0
3+
// @version 1.2.1
44
// @author X.I.U
55
// @description 自动签到、自动无缝翻页(全站)
66
// @match *://www.52pojie.cn/*
@@ -150,7 +150,8 @@
150150
// 搜索结果列表
151151
curSite = DBSite.search;
152152
}else if(location.href === "https://www.52pojie.cn/home.php?mod=task&do=draw&id=2"){
153-
qianDaoBack(); // 先看看是不是签到跳转页面,如果是则返回
153+
window.opener=null;window.open('','_self');window.close();
154+
//qianDaoBack(); // 先看看是不是签到跳转页面,如果是则返回
154155
}
155156
curSite.pageUrl = ""; // 下一页URL
156157

@@ -186,10 +187,12 @@
186187
function qianDao() {
187188
var qiandao = document.querySelector('#um p:last-child a:first-child');
188189
if (qiandao){
189-
if(qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=apply&id=2")
190-
{
191-
qiandao.click();
192-
}
190+
//if(qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=apply&id=2")
191+
//{
192+
window.GM_openInTab(qiandao.href, {active: false,insert: true,setParent: true}) // 后台打开签到地址
193+
qiandao.querySelector('.qq_bind').setAttribute('src','https://www.52pojie.cn/static/image/common/wbs.png') // 修改 [打卡签到] 图标为 [签到完毕]
194+
//qiandao.click();
195+
//}
193196
}
194197
}
195198

0 commit comments

Comments
 (0)