Skip to content

Commit 711f058

Browse files
committed
优化 [自动签到] 功能
1 parent b542334 commit 711f058

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.8
3+
// @version 1.2.9
44
// @author X.I.U
55
// @description 自动签到、自动无缝翻页、屏蔽导读悬赏贴(最新发表页)
66
// @match *://www.52pojie.cn/*
@@ -205,7 +205,7 @@
205205
onload: function (response) {
206206
let html = ShowPager.createDocumentByString(response.responseText);
207207
html = html.querySelector('#messagetext p')
208-
if (html && html.innerText.indexOf("任务已完成") > -1) {
208+
if (html && html.innerText.indexOf('任务已完成') > -1 || html && html.innerText.indexOf('已申请过此任务') > -1) {
209209
qiandao.querySelector('.qq_bind').setAttribute('src','https://www.52pojie.cn/static/image/common/wbs.png') // 修改 [打卡签到] 图标为 [签到完毕]
210210
qiandao.href = "#" // 修改 URL 为 #
211211
} else {

0 commit comments

Comments
 (0)