Official Everybody Edits Forums

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.

#1 2018-10-27 14:41:14

HeyNK
Member
Joined: 2017-04-07
Posts: 1,318

April Fools 2019

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

#2 2018-10-27 14:54:45

2b55b5g
Formerly 2B55B5G TNG
Joined: 2016-08-27
Posts: 3,005

Re: April Fools 2019

We become EE staff and control EE XD


she/her

also known as DevilCharlotte

search 2bisniekitastan if you wanna find my worlds on ArchivEE

pfp: https://picrew.me/image_maker/1272810

Offline

Wooted by: (2)

#3 2018-10-27 14:59:41

peace
Member
From: admin land
Joined: 2015-08-10
Posts: 9,226

Re: April Fools 2019

o h i knwo a nice aprial fools everyoen will be using after all text wiht no color tag gets rnaodm colros


peace.png

thanks hg for making this much better and ty for my avatar aswell

Offline

#4 2018-10-27 15:31:21

Freckleface
Member
Joined: 2015-04-02
Posts: 1,364

Re: April Fools 2019

peace wrote:

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

Wooted by:

PTU

#5 2018-10-27 15:55:41, last edited by LukeM (2018-10-27 16:19:53)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: April Fools 2019

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 //forums.everybodyedits.com/img/smilies/smile

Offline

#6 2018-10-27 16:42:55

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: April Fools 2019

^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.

Offline

#7 2018-10-27 16:58:08

TaskManager
Formerly maxi123
From: i really should update this
Joined: 2015-03-01
Posts: 9,465

Re: April Fools 2019

LukeM wrote:
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 //forums.everybodyedits.com/img/smilies/smile

this is where all of your patreon money goes


i8SwC8p.png
signature by HG, profile picture by bluecloud, thank!!
previous signature by drstereos

Offline

#8 2018-10-28 01:38:38

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
Website

Re: April Fools 2019

hummerz5 wrote:

^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 //forums.everybodyedits.com/img/smilies/smile
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 //forums.everybodyedits.com/img/smilies/big_smile

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

#9 2018-10-28 01:53:38

ILikeTofuuJoe
Member
From: Obvervable Universe
Joined: 2018-06-04
Posts: 1,770
Website

Re: April Fools 2019

ONE RANDOM PERSON GETS BANNED FOR 1 SECOND


https://wiki.everybodyedits.com/images/8/8f/117_cat ~meow~ https://wiki.everybodyedits.com/images/8/8f/117_cat
Posting Goal: 2000
#Joe Griffin
Signature
Thanks HG for the signature and avatar!!!

Offline

ILikeTofuuJoe1540688018729636

Board footer

Powered by FluxBB

[ Started around 1735258748.7487 - Generated in 0.084 seconds, 12 queries executed - Memory usage: 1.53 MiB (Peak: 1.69 MiB) ]