mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-24 11:03:23 +00:00
修复 论坛恢复签到功能后,自动签到未生效的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 吾爱破解论坛增强 - 自动签到、翻页
|
||||
// @version 1.2.3
|
||||
// @version 1.2.4
|
||||
// @author X.I.U
|
||||
// @description 自动签到、自动无缝翻页(全站)
|
||||
// @match *://www.52pojie.cn/*
|
||||
@@ -179,7 +179,7 @@
|
||||
// 自动签到
|
||||
function qianDao() {
|
||||
let qiandao = document.querySelector('#um p:last-child a:first-child');
|
||||
if (qiandao && qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=draw&id=2"){
|
||||
if (qiandao && qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=apply&id=2"){
|
||||
window.GM_openInTab(qiandao.href, {active: false,insert: true,setParent: true}) // 后台打开签到地址
|
||||
qiandao.querySelector('.qq_bind').setAttribute('src','https://www.52pojie.cn/static/image/common/wbs.png') // 修改 [打卡签到] 图标为 [签到完毕]
|
||||
qiandao.href = "#" // 修改 URL 为 #
|
||||
|
||||
Reference in New Issue
Block a user