you are viewing a single comment's thread.

view the rest of the comments →

[–]sawboss[S] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (0 children)

Sure thing. It's just some shitty javascript which anyone could come up with on their own. The core function looks like this:

function disfigure(str) {
  let result = '';
  str.split('').forEach(letter => {
    if (Math.random() < 0.5)
      result += letter.toUpperCase();
    else
      result += letter.toLowerCase();
  });
  return result;
}

I have my own script to do the equivalent, but it's not easily adaptable to the web.