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}%)`);
}
151
Upvotes
67
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.
5
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Feb 19 '26
As in the original function name contained a word that was banned? Did they pick a new name by mashing the keyboard?
249
u/thegreatpotatogod Feb 19 '26
Ah yes, the function to Add Discrete Items, KiloJoules/Watt Of Data, Negatively Ordered As Is Not Wanted, Do Order Items eXcept Uni-Byte Node-Arrays. A common function any programmer should know!
26
u/SerpentJoe Feb 19 '26
It's pretty generous to say the body is "fine"
8
u/viralslapzz Feb 19 '26
Can’t this be one of those cases where the function name is scrambled but the rest of the code not? I’ve seen this happening in the past, there was a config that was applying this rule to more than it should
6
u/polymorphiced Feb 19 '26
The name looks a lot like a yubikey token
3
u/jerrylearns Feb 20 '26
“adikjwodnoainwdoixubna” still sounds better than something like “asdfghjkliasdfghjkli”, no?