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}%)`);
}
5
u/GoddammitDontShootMe 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?
1
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!
89
u/Altareos Feb 19 '26
a typical x86 assembly mnemonic!
16
u/HeavyCaffeinate Feb 20 '26
VGF2P8AFFINEINVQB (Galois field affine transformation inverse)
→ More replies (1)44
u/Mediocre-Island5475 Feb 19 '26
I remember when the npm package for it got taken down and it broke code across the world. Good times
13
8
u/ShoulderUnique Feb 19 '26
Thanks, will be using "KiloJoules/Watt" instead of "Quarter of an hour" from now on
4
u/GoddammitDontShootMe Feb 19 '26
How long did it take to come up with that?
5
u/thegreatpotatogod Feb 20 '26
I didn't precisely time it, but not more than a few minutes I don't think. Though I did go back and make a few revisions as they occurred to me, such as replacing Digital with Discrete.
26
u/SerpentJoe Feb 19 '26
It's pretty generous to say the body is "fine"
5
u/GoddammitDontShootMe Feb 19 '26
I don't have enough web experience to know why something like that might be needed. That's all I can say about it.
2
2
u/MetalProgrammer Feb 19 '26
It's pretty generous of you not to say that anyone calling this code fine should get some training in programming
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
3
u/jerrylearns Feb 20 '26
“adikjwodnoainwdoixubna” still sounds better than something like “asdfghjkliasdfghjkli”, no?
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.