Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
逻辑微调
Browse files Browse the repository at this point in the history
  • Loading branch information
ifeng0188 committed Mar 13, 2023
1 parent 293eb9b commit ecb317a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 原神直播活动抢码助手
// @namespace https://github.com/ifeng0188
// @version 3.5.2
// @version 3.5.3
// @description 一款用于原神直播活动的抢码助手,支持哔哩哔哩、虎牙、斗鱼多个平台的自动抢码,附带一些页面优化功能
// @author ifeng0188
// @match *://www.bilibili.com/blackboard/activity-award-exchange.html?task_id=*
Expand Down Expand Up @@ -202,7 +202,7 @@
let timer = setInterval(() => {
document.querySelectorAll('div[title="10经验值"]+button')[0].click()
document.querySelectorAll('.exp-award .reload')[0].click()
if (document.querySelectorAll('div[title="10经验值"]+button')[0].innerText != '未完成') {
if (document.querySelectorAll('div[title="10经验值"]+button')[0].innerText == '已领取') {
clearInterval(timer)
setTimeout(() => {
for (let e of document.querySelectorAll('.J_dcpConfirm')) {
Expand Down

0 comments on commit ecb317a

Please sign in to comment.