Skip to content

Commit de708aa

Browse files
committed
修复 自动签到功能
1 parent 2faf42f commit de708aa

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.3.5
3+
// @version 1.3.6
44
// @author X.I.U
55
// @description 自动签到、自动无缝翻页、屏蔽导读悬赏贴(最新发表页)
66
// @match *://www.52pojie.cn/*
@@ -188,7 +188,7 @@
188188
function qianDao() {
189189
if (!menu_value('menu_autoClockIn')) return
190190
if (location.pathname === '/home.php' && location.search.indexOf('mod=task') > -1) {return;}
191-
let qiandao = document.querySelector('#um a[href="home.php?mod=task&do=apply&id=2"]');
191+
let qiandao = document.querySelector('#um a[href^="home.php?mod=task&do=apply&id=2"]');
192192
if (qiandao) {
193193
let iframe = document.createElement('iframe'); // XHR 方式无法签到,改用 iframe 框架打开签到网页
194194
document.lastElementChild.appendChild(iframe);

0 commit comments

Comments
 (0)