Guest User

Bypass AutoMod

a guest
Jan 30th, 2025
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.71 KB | Cybersecurity | 0 0
  1. const replaceChars = (input, replacements) => {
  2.   const replacementsDefault = { a: "а", c: "с", d: "ԁ", e: "е", i: "і", o: "о", s: "ѕ", y: "у", s: "ѕ", B: "В", d: "ԁ", O: "О", P: "Р", p: "р", C: "С", I: "ӏ", l: "ⅼ", L: "Ⅼ", H: "Η", M: "м" S: "Ѕ" };
  3.   const replacementsUse = replacements ? replacements : replacementsDefault;
  4.   const pattern = new RegExp(Object.keys(replacementsUse).join('|'), 'gu');
  5.  
  6.   return input.replace(pattern, (match) => replacementsUse[match]);
  7. }
  8.  
  9. // Update the line below, between the quotes "
  10. const input = "the quick brown fox jumped over the lazy dog. THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG.";
  11. const output = replaceChars(input);
  12. console.log(output);
Advertisement
Add Comment
Please, Sign In to add comment