Skip to content

Instantly share code, notes, and snippets.

@NeilMasters
Created September 9, 2026 08:46
Show Gist options
  • Select an option

  • Save NeilMasters/23b107c3134975220d1c4085c5e5b0fc to your computer and use it in GitHub Desktop.

Select an option

Save NeilMasters/23b107c3134975220d1c4085c5e5b0fc to your computer and use it in GitHub Desktop.
A small snippet of javascript you can paste into your console that rains poop emojis down the screen.
(() => {
const COUNT = 60;
const layer = document.createElement('div');
layer.style.cssText =
'position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483647';
document.body.appendChild(layer);
const style = document.createElement('style');
style.textContent = `
@keyframes poop-fall {
from { transform: translateY(-15vh) rotate(0deg); }
to { transform: translateY(115vh) rotate(var(--spin)); }
}`;
document.head.appendChild(style);
const rand = (min, max) => min + Math.random() * (max - min);
for (let i = 0; i < COUNT; i++) {
const drop = document.createElement('span');
drop.textContent = '💩';
drop.style.cssText = `
position:absolute;
top:0;
left:${rand(0, 100)}vw;
font-size:${rand(14, 42)}px;
opacity:${rand(0.5, 1)};
--spin:${rand(-720, 720)}deg;
animation:poop-fall ${rand(4, 11)}s linear ${rand(0, 8)}s infinite;
will-change:transform;
`;
layer.appendChild(drop);
}
// Stop it: window.stopPoopRain()
window.stopPoopRain = () => {
layer.remove();
style.remove();
delete window.stopPoopRain;
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment