Skip to content

Instantly share code, notes, and snippets.

@m-sterling
Last active January 31, 2026 19:17
Show Gist options
  • Select an option

  • Save m-sterling/633fc268500df82f728d07c67771ff25 to your computer and use it in GitHub Desktop.

Select an option

Save m-sterling/633fc268500df82f728d07c67771ff25 to your computer and use it in GitHub Desktop.
Password Game Paul auto-feeder
/* [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)
@MasterofGame64

Copy link
Copy Markdown

doesnt work :(

@m-sterling

Copy link
Copy Markdown
Author

doesnt work :(

Fixed!

@omernizami

omernizami commented Jan 31, 2026

Copy link
Copy Markdown

wasn't working bc x is not defined, I changed it to this and it worked for me:
const passElt = document.querySelector('.ProseMirror p');
const feedingLoop = setInterval(() => {
if (passElt.innerText.indexOf('πŸ”') >= 0) { // Paul exists!
if (passElt.innerText.indexOf('πŸ›') == -1) { // 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);
using truthy and falsy values seems like itll cause errors so i changed that too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment