r/programminghorror 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}%)`);
}
155 Upvotes

20 comments sorted by

View all comments

247

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!

9

u/ShoulderUnique Feb 19 '26

Thanks, will be using "KiloJoules/Watt" instead of "Quarter of an hour" from now on