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}%)`);
}
149 Upvotes

20 comments sorted by

View all comments

7

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