Skip to content

Commit c2caac0

Browse files
committed
修复 论坛恢复签到功能后,自动签到未生效的问题
1 parent 8de5b7e commit c2caac0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

52pojie-Enhanced.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 吾爱破解论坛增强 - 自动签到、翻页
3-
// @version 1.2.3
3+
// @version 1.2.4
44
// @author X.I.U
55
// @description 自动签到、自动无缝翻页(全站)
66
// @match *://www.52pojie.cn/*
@@ -179,7 +179,7 @@
179179
// 自动签到
180180
function qianDao() {
181181
let qiandao = document.querySelector('#um p:last-child a:first-child');
182-
if (qiandao && qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=draw&id=2"){
182+
if (qiandao && qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=apply&id=2"){
183183
window.GM_openInTab(qiandao.href, {active: false,insert: true,setParent: true}) // 后台打开签到地址
184184
qiandao.querySelector('.qq_bind').setAttribute('src','https://www.52pojie.cn/static/image/common/wbs.png') // 修改 [打卡签到] 图标为 [签到完毕]
185185
qiandao.href = "#" // 修改 URL 为 #

0 commit comments

Comments
 (0)