Skip to content

Commit

Permalink
🌉 fix autoclicker
Browse files Browse the repository at this point in the history
-updated the script to version 2.7
-pause in the script now works correctly.
-the script now catches Trump and Kamala
  • Loading branch information
mudachyo committed Nov 4, 2024
1 parent 17d71f0 commit 8ffcdc0
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 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 2.6
// @version 2.7
// @namespace Violentmonkey Scripts
// @author mudachyo
// @match https://telegram.blum.codes/*
Expand All @@ -18,7 +18,9 @@ let GAME_SETTINGS = {
minDelayMs: 500,
maxDelayMs: 999,
autoClickPlay: false,
dogsProbability: (98 + Math.random()) / 100
dogsProbability: (98 + Math.random()) / 100,
trumpProbability: (98 + Math.random()) / 100,
harrisProbability: (98 + Math.random()) / 100
};


Expand All @@ -30,6 +32,8 @@ try {
bombHits: 0,
iceHits: 0,
dogsHits: 0,
trumpHits: 0,
harrisHits: 0,
flowersSkipped: 0,
isGameOver: false,
};
Expand Down Expand Up @@ -59,6 +63,12 @@ try {
case "DOGS":
processDogs(item);
break;
case "TRUMP":
processTrump(item);
break;
case "HARRIS":
processHarris(item);
break;
}
}

Expand Down Expand Up @@ -94,7 +104,22 @@ try {
}
}

function processTrump(item) {
if (Math.random() < GAME_SETTINGS.trumpProbability) {
clickElement(item);
gameStats.trumpHits++;
}
}

function processHarris(item) {
if (Math.random() < GAME_SETTINGS.harrisProbability) {
clickElement(item);
gameStats.harrisHits++;
}
}

function clickElement(item) {
if (isGamePaused) return;
const createEvent = (type, EventClass) => new EventClass(type, {
bubbles: true,
cancelable: true,
Expand Down

0 comments on commit 8ffcdc0

Please sign in to comment.