Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
kirayomato committed Jul 18, 2024
1 parent b26a6a3 commit 724db12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion JS/B站直播自动抢红包.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ async function fetcher(url) {
// }
removeDrawBtn();
let follow = unpacking;
let count = GM_getValue(`Count`)
unpacking = false;
notice && (notice.style.display = "none");
let flag = 0
Expand Down Expand Up @@ -655,7 +656,7 @@ async function fetcher(url) {
if (3 < ts && ts < 4 && i.gift_type == 0)
cnt += i.gift_num;
}
if (cnt > count) {
if (cnt > GM_getValue(`Count`)) {
GM_setValue(`Count`, cnt);
console.info(`【Red Packet】Set Count to ${cnt}`);
}
Expand Down

0 comments on commit 724db12

Please sign in to comment.