Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
Wordfilters are added to the forum
Letters swap and delete themselves seemingly at random
Everyone's posts look like peace's
except peace's posts, they get corrected into normal english words
Offline
We become EE staff and control EE XD
she/her
also known as DevilCharlotte
search 2bisniekitastan if you wanna find my worlds on ArchivEE
Offline
o h i knwo a nice aprial fools everyoen will be using after all text wiht no color tag gets rnaodm colros
thanks hg for making this much better and ty for my avatar aswell
Offline
o h i knwo a nice aprial fools everyoen will be using after all text wiht no color tag gets rnaodm colros
Diff, please remove the filter. I really want to know what this post says.
F
Offline
const ps = document.getElementsByTagName('P');
for (const p of ps)
for (const n of p.childNodes)
if (n.nodeName == '#text')
n.nodeValue = peaceify(n.nodeValue);
function peaceify(str) {
const replaceChances = {
q: { w:.1, a:.1, s:.02 },
w: { q:.1, s:.1, e:.1, a:.02, d:.01 },
e: { w:.1, d:.1, r:.1, s:.02, f:.01 },
r: { e:.1, f:.1, t:.1, d:.02, g:.01 },
t: { r:.1, g:.1, y:.1, f:.02, h:.01 },
y: { t:.1, h:.1, u:.1, f:.02, h:.01 },
u: { y:.1, j:.1, i:.1, h:.02, k:.01 },
i: { u:.1, k:.1, o:.1, j:.02, l:.01 },
o: { i:.1, l:.1, p:.1, k:.02 },
p: { o:.1, l:.02 },
a: { q:.1, s:.1, z:.05, w:.02 },
s: { a:.1, w:.1, d:.1, z:.05, x:.05, e:.02, q:.01 },
d: { s:.1, e:.1, f:.1, x:.05, c:.05, r:.02, w:.01 },
f: { d:.1, r:.1, g:.1, c:.05, v:.05, t:.02, e:.01 },
g: { f:.1, t:.1, h:.1, v:.05, b:.05, y:.02, r:.01 },
h: { g:.1, y:.1, j:.1, b:.05, n:.05, u:.02, t:.01 },
j: { h:.1, u:.1, k:.1, n:.05, m:.05, i:.02, y:.01 },
k: { j:.1, i:.1, l:.1, m:.05, o:.02, u:.01 },
l: { k:.1, o:.1, p:.02, i:.01 },
z: { x:.1, a:.05, s:.05 },
x: { z:.1, c:.1, s:.05, d:.05 },
c: { x:.1, v:.1, d:.05, f:.05 },
v: { c:.1, b:.1, f:.05, g:.05 },
b: { v:.1, n:.1, g:.05, h:.05 },
n: { b:.1, m:.1, h:.05, j:.05 },
m: { n:.1, j:.05, k:.05 }
}
str = str.split('');
for (let i = 0; i < str.length; i++) {
if (str[i] != str[i].toLowerCase()
&& (!str[i-1] || str[i-1] == str[i-1].toLowerCase())
&& (!str[i+1] || str[i+1] == str[i+1].toLowerCase())) {
str[i] = str[i].toLowerCase();
}
if (str[i] == '.' && (str[i-1] != '.') && (str[i+1] != '.')
|| str[i] == '\'' || str[i] == ',') {
str.splice(i--, 1);
continue;
}
if (Math.random() < 0.05 && str[i] in replaceChances) {
const repl = replaceChances[str[i]];
let r = Math.random();
for (const c in repl) {
r -= repl[c];
if (r < 0) {
str.splice(i, 1, c);
break;
}
}
}
let chance = 0.025;
if (i == 0) chance = 0;
else if (str[i-1] == ' ' || str[i] == ' ') chance = 0.1;
else if (str[i-2] == ' ' || str[i+1] == ' ') chance = 0.05;
if (Math.random() < chance) {
[str[i-1], str[i]] = [str[i], str[i-1]];
}
}
return str.join('');
}
Run this in the browser console for 100% peaceness
Offline
Offline
const ps = document.getElementsByTagName('P'); for (const p of ps) for (const n of p.childNodes) if (n.nodeName == '#text') n.nodeValue = peaceify(n.nodeValue); function peaceify(str) { const replaceChances = { q: { w:.1, a:.1, s:.02 }, w: { q:.1, s:.1, e:.1, a:.02, d:.01 }, e: { w:.1, d:.1, r:.1, s:.02, f:.01 }, r: { e:.1, f:.1, t:.1, d:.02, g:.01 }, t: { r:.1, g:.1, y:.1, f:.02, h:.01 }, y: { t:.1, h:.1, u:.1, f:.02, h:.01 }, u: { y:.1, j:.1, i:.1, h:.02, k:.01 }, i: { u:.1, k:.1, o:.1, j:.02, l:.01 }, o: { i:.1, l:.1, p:.1, k:.02 }, p: { o:.1, l:.02 }, a: { q:.1, s:.1, z:.05, w:.02 }, s: { a:.1, w:.1, d:.1, z:.05, x:.05, e:.02, q:.01 }, d: { s:.1, e:.1, f:.1, x:.05, c:.05, r:.02, w:.01 }, f: { d:.1, r:.1, g:.1, c:.05, v:.05, t:.02, e:.01 }, g: { f:.1, t:.1, h:.1, v:.05, b:.05, y:.02, r:.01 }, h: { g:.1, y:.1, j:.1, b:.05, n:.05, u:.02, t:.01 }, j: { h:.1, u:.1, k:.1, n:.05, m:.05, i:.02, y:.01 }, k: { j:.1, i:.1, l:.1, m:.05, o:.02, u:.01 }, l: { k:.1, o:.1, p:.02, i:.01 }, z: { x:.1, a:.05, s:.05 }, x: { z:.1, c:.1, s:.05, d:.05 }, c: { x:.1, v:.1, d:.05, f:.05 }, v: { c:.1, b:.1, f:.05, g:.05 }, b: { v:.1, n:.1, g:.05, h:.05 }, n: { b:.1, m:.1, h:.05, j:.05 }, m: { n:.1, j:.05, k:.05 } } str = str.split(''); for (let i = 0; i < str.length; i++) { if (str[i] != str[i].toLowerCase() && (!str[i-1] || str[i-1] == str[i-1].toLowerCase()) && (!str[i+1] || str[i+1] == str[i+1].toLowerCase())) { str[i] = str[i].toLowerCase(); } if (str[i] == '.' && (str[i-1] != '.') && (str[i+1] != '.') || str[i] == '\'' || str[i] == ',') { str.splice(i--, 1); continue; } if (Math.random() < 0.05 && str[i] in replaceChances) { const repl = replaceChances[str[i]]; let r = Math.random(); for (const c in repl) { r -= repl[c]; if (r < 0) { str.splice(i, 1, c); break; } } } let chance = 0.025; if (i == 0) chance = 0; else if (str[i-1] == ' ' || str[i] == ' ') chance = 0.1; else if (str[i-2] == ' ' || str[i+1] == ' ') chance = 0.05; if (Math.random() < chance) { [str[i-1], str[i]] = [str[i], str[i-1]]; } } return str.join(''); }
Run this in the browser console for 100% peaceness
this is where all of your patreon money goes
Offline
^Question: did you find that or did you have some extra time... or is it something that came to you with some flash of brilliance?
It seems to work rather well.
Thanks
I had three quarters of an hour or so spare before I needed to leave for something, so not enough time to do anything important, but enough time to do a random programming thingy
All it does is remove capital letters and simple punctuation, occasionally switch characters with nearby ones on the keyboard, then switch around their order a bit (with a higher chance near spaces), but it does a surprisingly good job XD
Offline
ONE RANDOM PERSON GETS BANNED FOR 1 SECOND
~meow~
Posting Goal: 2000
#Joe Griffin
Thanks HG for the signature and avatar!!!
Offline
Pages: 1
[ Started around 1735258748.7487 - Generated in 0.084 seconds, 12 queries executed - Memory usage: 1.53 MiB (Peak: 1.69 MiB) ]