Skip to content

Instantly share code, notes, and snippets.

@ilovechubbyorangecat
Created January 21, 2025 11:26
Show Gist options
  • Save ilovechubbyorangecat/5295405c7790ce7c9b58b8938573ced2 to your computer and use it in GitHub Desktop.
Save ilovechubbyorangecat/5295405c7790ce7c9b58b8938573ced2 to your computer and use it in GitHub Desktop.
Stimulation clicker auto play
// Made by ilovechubbyorangecat
// Paste this in your browser console
const upgradeClickCounts = {};
function clickElementsForever() {
const prettyBtns = document.querySelectorAll('.main-btn.main-btn-pretty');
prettyBtns.forEach(button => button.click());
const anotherBtns = document.querySelectorAll('.another-btn');
anotherBtns.forEach(button => button.click());
const collectBtns = document.querySelectorAll('.collect');
collectBtns.forEach(button => button.click());
const mainBtns = document.querySelectorAll('.main-btn');
mainBtns.forEach(button => button.click());
const containers = document.querySelectorAll('.main-upgrades');
containers.forEach(container => {
const upgrades = container.querySelectorAll('.upgrade');
if (!upgradeClickCounts[container]) {
upgradeClickCounts[container] = [0, 0];
}
upgrades.forEach((upgrade, index) => {
if (index < 2) {
if (upgradeClickCounts[container][index] < 10) {
upgrade.click();
upgradeClickCounts[container][index] += 1;
}
} else {
upgrade.click();
}
});
});
}
var intervalId = setInterval(clickElementsForever, 0);
// to stop, use clearInterval(intervalId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment