Last active
October 14, 2024 02:30
-
-
Save m-sterling/633fc268500df82f728d07c67771ff25 to your computer and use it in GitHub Desktop.
Password Game Paul auto-feeder
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
| /* [Written by Morgan Rose Sterling on 30 June 2023] | |
| * | |
| * If you're like me, you're probably busy playing Neal Agarwal's new game "Password Game" - https://neal.fun/password-game/ | |
| * If you're *also* like me, you probably don't like having to constantly tab back every 30-40 seconds to feed that | |
| * gods-forsaken chicken. This also prevents you from tabling the game while you take a brain break or do things IRL. In | |
| * spite of this, I've created a script that automatically feeds the little shit that is Paul. In my opinion, this script | |
| * ruins the spirit of the game, but when life happens, life happens. | |
| * | |
| * Throw this script into your JS console and never worry about that pesky chicken again! If you want to switch back to | |
| * hard mode and feed him yourself, just type `clearInterval(feedingLoop)` in the console. | |
| */ | |
| const passElt = document.querySelector('.ProseMirror p') | |
| const feedingLoop = setInterval(() => { | |
| if (passElt.innerText.indexOf('π')) { // Paul exists! | |
| if (!x.innerText.indexOf('π')) { // he doesn't have food, so commence the initial feeding of Paul! | |
| passElt.innerHTML = passElt.innerHTML.replace('π', 'ππππ') | |
| } else if ([...passElt.innerText].filter(e => e === 'π').length === 1) { // he's low on food, so replenish the supply! | |
| passElt.innerHTML = passElt.innerHTML.replace('π', 'πππ') | |
| } | |
| } | |
| }, 10*1000) |
Author
doesnt work :(
Fixed!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
doesnt work :(