mirror of
https://github.com/XIU2/UserScript.git
synced 2026-10-07 15:54:20 +00:00
优化 自动签到方式(改为后台打开签到地址并立即关闭,不影响前台观感)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 吾爱破解论坛增强 - 自动签到、翻页
|
||||
// @version 1.2.0
|
||||
// @version 1.2.1
|
||||
// @author X.I.U
|
||||
// @description 自动签到、自动无缝翻页(全站)
|
||||
// @match *://www.52pojie.cn/*
|
||||
@@ -150,7 +150,8 @@
|
||||
// 搜索结果列表
|
||||
curSite = DBSite.search;
|
||||
}else if(location.href === "https://www.52pojie.cn/home.php?mod=task&do=draw&id=2"){
|
||||
qianDaoBack(); // 先看看是不是签到跳转页面,如果是则返回
|
||||
window.opener=null;window.open('','_self');window.close();
|
||||
//qianDaoBack(); // 先看看是不是签到跳转页面,如果是则返回
|
||||
}
|
||||
curSite.pageUrl = ""; // 下一页URL
|
||||
|
||||
@@ -186,10 +187,12 @@
|
||||
function qianDao() {
|
||||
var qiandao = document.querySelector('#um p:last-child a:first-child');
|
||||
if (qiandao){
|
||||
if(qiandao.href === "https://www.52pojie.cn/home.php?mod=task&do=apply&id=2")
|
||||
{
|
||||
qiandao.click();
|
||||
}
|
||||
//if(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.click();
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user