Created
January 7, 2025 13:51
-
-
Save MrSaints/dbc1856fc0f9844adde2c15ce5d637bb to your computer and use it in GitHub Desktop.
Console scripts for semi-automating https://neal.fun/stimulation-clicker/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let clickClicker = setInterval(() => { | |
[...document.querySelectorAll('button')].find(btn => btn.textContent.trim() === 'Click me')?.click(); | |
document.querySelector('.google-btn')?.click() | |
}, 100); | |
let hydraulicClicker = setInterval(() => { | |
document.querySelector('.hydraulic-press .press-btn:not(.press-btn-hide)')?.click(); | |
document.querySelector('.hydraulic-press .press-collect:not(.press-collect-hide)')?.click(); | |
}, 1000); | |
let rewardClicker = setInterval(() => { | |
document.querySelector('.reward .collect')?.click() | |
}, 1000); | |
let lootClicker = setInterval(() => { | |
document.querySelector('.loot-box-target')?.click() | |
}, 1000); | |
let duoClicker = setInterval(() => { | |
document.querySelector('.question-choice')?.click(); | |
}, 1000); | |
let notificationClicker = setInterval(() => { | |
document.querySelector('.inbox .close')?.click(); | |
const notification = document.querySelector('.notification'); | |
if (notification) { | |
notification.click(); | |
document.querySelector('.inbox .action')?.click(); | |
document.querySelector('.inbox .close')?.click(); | |
} | |
}, 1000); | |
let btcClicker = setInterval(() => { | |
const selectedIndex = document.querySelector(".stock-select").selectedIndex; | |
if (selectedIndex != 4) { | |
return; | |
} | |
const rawLastPrice = document.querySelector(".last-price").innerText?.replace(/[^\w\s]/gi, "").split(" ")[0]; | |
const lastPrice = rawLastPrice ? parseInt(rawLastPrice, 10) : null; | |
if (lastPrice) { | |
if (lastPrice < 10000) { | |
document.querySelector('.stock-buy:not([disabled])')?.click(); | |
} | |
if (lastPrice > 40000) { | |
document.querySelector('.stock-sell:not([disabled])')?.click(); | |
} | |
} | |
}, 500); | |
let teslaClicker = setInterval(() => { | |
const selectedIndex = document.querySelector(".stock-select").selectedIndex; | |
if (selectedIndex != 2) { | |
return; | |
} | |
const rawLastPrice = document.querySelector(".last-price").innerText?.replace(/[^\w\s]/gi, "").split(" ")[0]; | |
const lastPrice = rawLastPrice ? parseInt(rawLastPrice, 10) : null; | |
if (lastPrice) { | |
if (lastPrice < 500) { | |
document.querySelector('.stock-buy:not([disabled])')?.click(); | |
} | |
if (lastPrice > 600) { | |
document.querySelector('.stock-sell:not([disabled])')?.click(); | |
} | |
} | |
}, 500); | |
let tamagotchiClicker = setInterval(() => { | |
document.querySelector('.egg')?.click(); | |
[...document.querySelectorAll('button')].find(btn => btn.textContent.trim() === 'Feed')?.click(); | |
}, 1000); | |
let powerupClicker = setInterval(() => { | |
document.querySelector('.powerup')?.click(); | |
}, 1500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment