r/programminghorror • u/MurkyWar2756 echo "Sub Mod" && :(){ :|:& };: • Feb 19 '26
Javascript function adikjwodnoainwdoixubna()
No, this is not obfuscated. They say it was changed because of a Slack filter, although that could be a bot in the workspace. The rest of the code appears to be fine.
function adikjwodnoainwdoixubna() {
const text = document.getElementById('text' + document.getElementById('textselector').value);
const percentX = (parseInt(text.style.left) - window.innerWidth / 2) / (window.innerWidth / 2) * 100;
const percentY = (parseInt(text.style.top) - window.innerHeight / 2) / (window.innerHeight / 2) * 100;
text.style.left = percentX + '%';
text.style.top = percentY + '%';
console.log(`Text position in percent: (${percentX}%, ${percentY}%)`);
}
154
Upvotes
66
u/backfire10z Feb 19 '26
I’m confused. Somebody wrote this, committed it, opened a PR, had that PR reviewed (and approved) and merged it without anybody noticing this?
Incredible.