Skip to content

Commit

Permalink
📛 fix pause button
Browse files Browse the repository at this point in the history
  • Loading branch information
mudachyo committed Jul 4, 2024
1 parent b9d16c4 commit 4fff756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blum-autoclicker.user copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ try {

function checkAndClickPlayButton() {
const playButton = document.querySelector('button.kit-button.is-large.is-primary');
if (playButton && playButton.textContent.includes('Play')) {
if (!isGamePaused && playButton && playButton.textContent.includes('Play')) {
setTimeout(() => {
playButton.click();
gameStats.isGameOver = false;
Expand Down
4 changes: 2 additions & 2 deletions blum-autoclicker.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Blum Autoclicker
// @version 1.3
// @version 1.4
// @namespace Violentmonkey Scripts
// @author mudachyo
// @match https://telegram.blum.codes/*
Expand Down Expand Up @@ -133,7 +133,7 @@ try {

function checkAndClickPlayButton() {
const playButton = document.querySelector('button.kit-button.is-large.is-primary');
if (playButton && playButton.textContent.includes('Play')) {
if (!isGamePaused && playButton && playButton.textContent.includes('Play')) {
setTimeout(() => {
playButton.click();
gameStats.isGameOver = false;
Expand Down

0 comments on commit 4fff756

Please sign in to comment.