View Full Version : Elite(l337) Translator
I have been working for quite a while on a elite translator. Elite (Or l337) Is a language mainly based on english and is a language for hackers.
The main code is like a=4 so change a into 4 and the other way round for elite in to english. But like in every language there is exceptions.
Here fear is translated into ph34r but this word should be pheer. There are about 23 exceptions.
The first code is just the basic code. And the second is my attempt which has no bugs but does not work for some reason.
Please Note: The code looks massive but really the code is very basic and is short for what it is!
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<Script Language="JavaScript">
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents Highlighted And Copied To Keyboard!"
setTimeout("window.status=''",0)
}
}
function clr()
{
document.f.ff.value=""
}
function elite()
{
var strenglish=""
var Char=""
var strelite=""
if (document.f.ff.value=="") alert("Please Type Something In.")
strenglish=document.f.ff.value
for (var x=0; x < strenglish.length+1; x++)
{
Char=strenglish.charAt(x)
if (Char=="a" || Char=="A") Char="4"
if (Char=="b") Char="8"
if (Char=="c") Char="k"
if (Char=="d") Char="d"
if (Char=="e") Char="3"
if (Char=="f") Char="ph"
if (Char=="g") Char="6"
if (Char=="h") Char="h"
if (Char=="i") Char="1"
if (Char=="j") Char="j"
if (Char=="k") Char="k"
if (Char=="l") Char="L"
if (Char=="m") Char="m"
if (Char=="n") Char="n"
if (Char=="o") Char="0"
if (Char=="p") Char="p"
if (Char=="q") Char="q"
if (Char=="r") Char="r"
if (Char=="s") Char="5"
if (Char=="t") Char="7"
if (Char=="u") Char="u"
if (Char=="v") Char="v"
if (Char=="w") Char="w"
if (Char=="x") Char="x"
if (Char=="y") Char="y"
if (Char=="z") Char="z"
if (Char=="cool") Char="k3wl"
if (Char=="dude") Char="d00d"
if (Char=="dudes") Char="d00dz"
if (Char=="elite") Char="l33t"
if (Char=="hacker") Char="hax0r"
if (Char=="hacked") Char="hax0red"
if (Char=="the") Char="teh"
if (Char=="mp3s") Char="mp3z"
if (Char=="own") Char="0wn"
if (Char=="owned") Char="0wned"
if (Char=="porn") Char="pr0n"
if (Char=="quake") Char="quaek"
if (Char=="quake2") Char="quaek2"
if (Char=="quake3") Char="quaek3"
if (Char=="quakeworld") Char="quaekworld"
if (Char=="rock") Char="r0x0r"
if (Char=="rocks") Char="r0x0rez"
if (Char=="you") Char="j00"
if (Char=="your") Char="j00r"
if (Char=="newbie") Char="n00b"
if (Char=="boxers") Char="b0xx0rz"
if (Char=="fool") Char="f00"
if (Char=="suck") Char="sux0rz"
if (Char=="fear") Char="pheer"
strelite=strelite+Char
}
document.f.ff.value=strelite
}
function english()
{
var Char=""
var strelite=""
var strenglish=""
if (document.f.ff.value=="") alert("Please Type Something In.")
strelite=document.f.ff.value
for (var x=0; x < strelite.length+1; x++)
{
Char=strelite.charAt(x)
if (Char=="k3wl") Char="cool"
if (Char=="d00d") Char="dude"
if (Char=="d00dz") Char="dudes"
if (Char=="l33t") Char="elite"
if (Char=="hax0r") Char="hacker"
if (Char=="hax0red") Char="hacked"
if (Char=="teh") Char="the"
if (Char=="mp3z") Char="mp3s"
if (Char=="0wn") Char="own"
if (Char=="0wned") Char="owned"
if (Char=="pr0n") Char="porn"
if (Char=="quaek") Char="quake"
if (Char=="quaek2") Char="quake2"
if (Char=="quaek3") Char="quake3"
if (Char=="quaekworld") Char="quakeworld"
if (Char=="r0x0r") Char="rock"
if (Char=="r0x0rez") Char="rocks"
if (Char=="j00") Char="you"
if (Char=="j00r") Char="your"
if (Char=="n00b") Char="newbie"
if (Char=="b0xx0rz") Char="boxers"
if (Char=="f00") Char="fool"
if (Char=="sux0rz") Char="suck"
if (Char=="pheer") Char="fear"
if (Char=="4") Char="a"
if (Char=="8") Char="b"
if (Char=="k") Char="c"
if (Char=="|)") Char="d"
if (Char=="3") Char="e"
if (Char=="ph") Char="f"
if (Char=="6") Char="g"
if (Char=="|-|") Char="h"
if (Char=="1") Char="i"
if (Char=="j") Char="j"
if (Char=="k") Char="k"
if (Char=="|_") Char="l"
if (Char=="|\/|") Char="m"
if (Char=="|\|") Char="n"
if (Char=="0") Char="o"
if (Char=="p") Char="p"
if (Char=="q") Char="q"
if (Char=="|2") Char="r"
if (Char=="5") Char="s"
if (Char=="7") Char="t"
if (Char=="+") Char="t"
if (Char=="u") Char="u"
if (Char=="\/") Char="v"
if (Char=="\/\/") Char="w"
if (Char=="><") Char="x"
if (Char=="'/") Char="y"
if (Char=="z") Char="z"
strenglish=strenglish+Char
}
document.f.ff.value=strenglish
}
function advelite()
{
var strenglish=""
var Char=""
var stradvelite=""
if (document.f.ff.value=="") alert("Please Type Something In.")
strenglish=document.f.ff.value
for (var x=0; x < strenglish.length+1; x++)
{
Char=strenglish.charAt(x)
if (Char=="cool") Char="k3wl"
if (Char=="dude") Char="d00d"
if (Char=="dudes") Char="d00dz"
if (Char=="elite") Char="l33t"
if (Char=="hacker") Char="hax0r"
if (Char=="hacked") Char="hax0red"
if (Char=="the") Char="teh"
if (Char=="mp3s") Char="mp3z"
if (Char=="own") Char="0wn"
if (Char=="owned") Char="0wned"
if (Char=="porn") Char="pr0n"
if (Char=="quake") Char="quaek"
if (Char=="quake2") Char="quaek2"
if (Char=="quake3") Char="quaek3"
if (Char=="quakeworld") Char="quaekworld"
if (Char=="rock") Char="r0x0r"
if (Char=="rocks") Char="r0x0rez"
if (Char=="you") Char="j00"
if (Char=="your") Char="j00r"
if (Char=="newbie") Char="n00b"
if (Char=="boxers") Char="b0xx0rz"
if (Char=="fool") Char="f00"
if (Char=="suck") Char="sux0rz"
if (Char=="fear") Char="pheer"
if (Char=="a" || Char=="A") Char="4"
if (Char=="b") Char="8"
if (Char=="c") Char="k"
if (Char=="d") Char="|)"
if (Char=="e") Char="3"
if (Char=="f") Char="ph"
if (Char=="g") Char="6"
if (Char=="h") Char="|-|"
if (Char=="i") Char="1"
if (Char=="j") Char="j"
if (Char=="k") Char="k"
if (Char=="l") Char="L"
if (Char=="m") Char="|\\/|"
if (Char=="n") Char="|\\|"
if (Char=="o") Char="0"
if (Char=="p") Char="p"
if (Char=="q") Char="q"
if (Char=="r") Char="|2"
if (Char=="s") Char="5"
if (Char=="t") Char="+"
if (Char=="u") Char="u"
if (Char=="v") Char="\\/"
if (Char=="w") Char="\\/\\/"
if (Char=="x") Char="><"
if (Char=="y") Char="'/"
if (Char=="z") Char="z"
stradvelite=stradvelite+Char
}
document.f.ff.value=stradvelite
}
</Script>
<img src="Get APicture"> v0.0 BETA
<form name="f">
Please Type In Text :<br>
<textarea name="ff" cols="50" rows="7"></textarea>
<br>
<br>
<input type="button" value=" Translate To Elite " name="go" onclick="javascript:elite()">
<input type="button" value=" Clear Text " name="clear" onclick="javascript:clr()">
<br>
<input type="button" value="Translate To Advance Elite" name="go" onclick="javascript:advelite()">
<input type="button" value=" Copy To Keyboard " onclick="HighlightAll('f.ff');">
<br>
<input type="button" value=" Translate To English " name="go" onclick="javascript:english()">
<br>
</form>
</BODY>
</HTML>
This is split into 2 messages this code:
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<Script Language="JavaScript">
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents Highlighted And Copied To Keyboard!"
setTimeout("window.status=''",0)
}
}
</Script>
<Script Language="JavaScript">
function CheckIt(WElem,DLimit){
DWords=document.f["ff"+WElem].value;
if(DWords.length>=DLimit){
DWords=DWords.slice(0,DLimit);
document.f["ff"+WElem].value=DWords;
}
Mess=DWords.length+"/"+DLimit;
if (document.getElementById) {document.getElementById("B"+WElem).innerHTML = Mess}
else if (document.all) {document.all["B"+WElem].innerHTML = Mess}
else if (document.layers) {document.layers["B"+WElem].innerHTML = Mess}
else{}
}
</Script>
<Script Language="JavaScript">
w = new Array();
w[0] = 'pheer';
w[1] = 'sux0rz';
w[2] = 'f00';
w[3] = 'b0xx0rz';
w[4] = 'n00b';
w[5] = 'j00r';
w[6] = 'j00';
w[7] = 'r0x0rez';
w[8] = 'r0x0r';
w[9] = 'quaekworld';
w[10] = 'quaek';
w[11] = 'quaek2';
w[12] = 'quaek3';
w[13] = 'pr0n';
w[14] = '0wned';
w[15] = '0wn';
w[16] = 'mp3z';
w[17] = 'teh';
w[18] = 'hax0red';
w[19] = 'hax0r';
w[20] = 'l33t';
w[21] = 'd00dz';
w[22] = 'd00d';
w[23] = 'k3wl';
n = new Array();
n[0] = 'fear';
n[1] = 'suck';
n[2] = 'fool';
n[3] = 'boxers';
n[4] = 'newbie';
n[5] = 'your';
n[6] = 'you';
n[7] = 'rocks';
n[8] = 'rock';
n[9] = 'quakeworld';
n[10] = 'quake';
n[11] = 'quake2';
n[12] = 'quake3';
n[13] = 'porn';
n[14] = 'owned';
n[15] = 'own';
n[16] = 'mp3s';
n[17] = 'the';
n[18] = 'hacked';
n[19] = 'hacker';
n[20] = 'elite';
n[21] = 'dudes';
n[22] = 'dude';
n[23] = 'cool';
var i = 0;
var GotOne = 0;
while (i < 23 && !GotOne) {
if (strelite == w[i]) {
GotOne = 1;
}
}
if (GotOne){
switch(i) {
case 0:
strelite = n[0];
break;
case 1:
strelite = n[1];
break;
case 2:
strelite = n[2];
break;
case 3:
strelite = n[3];
break;
case 4:
strelite = n[4];
break;
case 5:
strelite = n[5];
break;
case 6:
strelite = n[6];
break;
case 7:
strelite = n[7];
break;
case 8:
strelite = n[8];
break;
case 9:
strelite = n[9];
break;
case 10:
strelite = n[10];
break;
case 11:
strelite = n[11];
break;
case 12:
strelite = n[12];
break;
case 13:
strelite = n[13];
break;
case 14:
strelite = n[14];
break;
case 15:
strelite = n[15];
break;
case 16:
strelite = n[16];
break;
case 17:
strelite = n[17];
break;
case 18:
strelite = n[18];
break;
case 19:
strelite = n[19];
break;
case 20:
strelite = n[20];
break;
case 21:
strelite = n[21];
break;
case 22:
strelite = n[22];
break;
case 23:
strelite = n[23];
break;
}
}
else {
function clr()
{
document.f.ff1.value=""
}
function elite()
{
var strenglish=""
var Char=""
var strelite=""
if (document.f.ff1.value=="") alert("Please Type Something In.")
strenglish=document.f.ff1.value
for (var x=0; x < strenglish.length+1; x++)
{
Char=strenglish.charAt(x)
if (Char=="a" || Char=="A") {Char="4"}
if (Char=="b" || Char=="B") {Char="8"}
if (Char=="c" || Char=="C") {Char="k"}
if (Char=="d" || Char=="D") {Char="d"}
if (Char=="e" || Char=="E") {Char="3"}
if (Char=="f" || Char=="F") {Char="ph"}
if (Char=="g" || Char=="G") {Char="6"}
if (Char=="h" || Char=="H") {Char="h"}
if (Char=="i" || Char=="I") {Char="1"}
if (Char=="j" || Char=="J") {Char="j"}
if (Char=="k" || Char=="K") {Char="k"}
if (Char=="l" || Char=="L") {Char="L"}
if (Char=="m" || Char=="M") {Char="m"}
if (Char=="n" || Char=="N") {Char="n"}
if (Char=="o" || Char=="O") {Char="0"}
if (Char=="p" || Char=="P") {Char="p"}
if (Char=="q" || Char=="Q") {Char="q"}
if (Char=="r" || Char=="R") {Char="r"}
if (Char=="s" || Char=="S") {Char="5"}
if (Char=="t" || Char=="T") {Char="7"}
if (Char=="u" || Char=="U") {Char="u"}
if (Char=="v" || Char=="V") {Char="v"}
if (Char=="w" || Char=="W") {Char="w"}
if (Char=="x" || Char=="X") {Char="x"}
if (Char=="y" || Char=="Y") {Char="y"}
if (Char=="z" || Char=="Z") {Char="z"}
strelite=strelite+Char
}
document.f.ff1.value=strelite
}
function english()
{
var Char=""
var strelite=""
var strenglish=""
if (document.f.ff1.value=="") alert("Please Type Something In.")
strelite=document.f.ff1.value
for (var x=0; x < strelite.length+1; x++)
{
Char=strelite.charAt(x)
if (Char=="4") {Char="a"}
if (Char=="8") {Char="b"}
if (Char=="k" || Char=="K") {Char="c"}
if (Char=="d" || Char=="D") {Char="d"}
if (Char=="3") {Char="e"}
if (Char=="ph" || Char=="PH") {Char="f"}
if (Char=="6") {Char="g"}
if (Char=="h" || Char=="H") {Char="h"}
if (Char=="1") {Char="i"}
if (Char=="j" || Char=="J") {Char="j"}
if (Char=="k" || Char=="K") {Char="k"}
if (Char=="L" || Char=="l") {Char="l"}
if (Char=="m" || Char=="M") {Char="m"}
if (Char=="n" || Char=="N") {Char="n"}
if (Char=="0") {Char="o"}
if (Char=="p" || Char=="P") {Char="p"}
if (Char=="q" || Char=="Q") {Char="q"}
if (Char=="r" || Char=="R") {Char="r"}
if (Char=="5") {Char="s"}
if (Char=="7") {Char="t"}
if (Char=="u" || Char=="U") {Char="u"}
if (Char=="v" || Char=="V") {Char="v"}
if (Char=="w" || Char=="W") {Char="w"}
if (Char=="x" || Char=="X") {Char="x"}
if (Char=="y" || Char=="Y") {Char="y"}
if (Char=="z" || Char=="Z") {Char="z"}
strenglish=strenglish+Char
}
document.f.ff1.value=strenglish
}
}
l = new Array();
l[0] = 'pheer';
l[1] = 'sux0rz';
l[2] = 'f00';
l[3] = 'b0xx0rz';
l[4] = 'n00b';
l[5] = 'j00r';
l[6] = 'j00';
l[7] = 'r0x0rez';
l[8] = 'r0x0r';
l[9] = 'quaekworld';
l[10] = 'quaek';
l[11] = 'quaek2';
l[12] = 'quaek3';
l[13] = 'pr0n';
l[14] = '0wned';
l[15] = '0wn';
l[16] = 'mp3z';
l[17] = 'teh';
l[18] = 'hax0red';
l[19] = 'hax0r';
l[20] = 'l33t';
l[21] = 'd00dz';
l[22] = 'd00d';
l[23] = 'k3wl';
d = new Array();
d[0] = 'fear';
d[1] = 'suck';
d[2] = 'fool';
d[3] = 'boxers';
d[4] = 'newbie';
d[5] = 'your';
d[6] = 'you';
d[7] = 'rocks';
d[8] = 'rock';
d[9] = 'quakeworld';
d[10] = 'quake';
d[11] = 'quake2';
d[12] = 'quake3';
d[13] = 'porn';
d[14] = 'owned';
d[15] = 'own';
d[16] = 'mp3s';
d[17] = 'the';
d[18] = 'hacked';
d[19] = 'hacker';
d[20] = 'elite';
d[21] = 'dudes';
d[22] = 'dude';
d[23] = 'cool';
var i = 0;
var GotOne = 0;
while (i < 23 && !GotOne) {
if (stradvelite == l[i]) {
GotOne = 1;
}
}
if (GotOne){
switch(i) {
case 0:
stradvelite = d[0];
break;
case 1:
stradvelite = d[1];
break;
case 2:
stradvelite = d[2];
break;
case 3:
stradvelite = d[3];
break;
case 4:
stradvelite = d[4];
break;
case 5:
stradvelite = d[5];
break;
case 6:
stradvelite = d[6];
break;
case 7:
stradvelite = d[7];
break;
case 8:
stradvelite = d[8];
break;
case 9:
stradvelite = d[9];
break;
case 10:
stradvelite = d[10];
break;
case 11:
stradvelite = d[11];
break;
case 12:
stradvelite = d[12];
break;
case 13:
stradvelite = d[13];
break;
case 14:
stradvelite = d[14];
break;
case 15:
stradvelite = d[15];
break;
case 16:
stradvelite = d[16];
break;
case 17:
stradvelite = d[17];
break;
case 18:
stradvelite = d[18];
break;
case 19:
stradvelite = d[19];
break;
case 20:
stradvelite = d[20];
break;
case 21:
stradvelite = d[21];
break;
case 22:
stradvelite = d[22];
break;
case 23:
stradvelite = d[23];
break;
}
}
else {
function advelite()
{
var stradvenglish=""
var Char=""
var stradvelite=""
if (document.f.ff1.value=="") alert("Please Type Something In.")
stradvenglish=document.f.ff1.value
for (var x=0; x < stradvenglish.length+1; x++)
{
Char=stradvenglish.charAt(x)
if (Char=="a" || Char=="A") Char="4"
if (Char=="b") Char="8"
if (Char=="c") Char="k"
if (Char=="d") Char="|)"
if (Char=="e") Char="3"
if (Char=="f") Char="ph"
if (Char=="g") Char="6"
if (Char=="h") Char="|-|"
if (Char=="i") Char="1"
if (Char=="j") Char="j"
if (Char=="k") Char="k"
if (Char=="l") Char="L"
if (Char=="m") Char="|\\/|"
if (Char=="n") Char="|\\|"
if (Char=="o") Char="0"
if (Char=="p") Char="p"
if (Char=="q") Char="q"
if (Char=="r") Char="|2"
if (Char=="s") Char="5"
if (Char=="t") Char="7"
if (Char=="u") Char="u"
if (Char=="v") Char="\\/"
if (Char=="w") Char="\\/\\/"
if (Char=="x") Char="><"
if (Char=="y") Char="'/"
if (Char=="z") Char="z"
stradvelite=stradvelite+Char
}
document.f.ff1.value=stradvelite
}
function advenglish()
{
var Char=""
var stradvelite=""
var stradvenglish=""
if (document.f.ff1.value=="") alert("Please Type Something In.")
stradvelite=document.f.ff1.value
for (var x=0; x < stradvelite.length+1; x++)
{
Char=stradvelite.charAt(x)
if (Char=="4") {Char="a"}
if (Char=="8") {Char="b"}
if (Char=="k" || Char=="K") {Char="c"}
if (Char=="|)") {Char="d"}
if (Char=="3") {Char="e"}
if (Char=="ph" || Char=="PH") {Char="f"}
if (Char=="6") {Char="g"}
if (Char=="|-|") {Char="h"}
if (Char=="1") {Char="i"}
if (Char=="j" || Char=="J") {Char="j"}
if (Char=="k" || Char=="K") {Char="k"}
if (Char=="L" || Char=="l") {Char="l"}
if (Char=="|\\/|") {Char="m"}
if (Char=="|\\|") {Char="n"}
if (Char=="0") {Char="o"}
if (Char=="p" || Char=="P") {Char="p"}
if (Char=="q" || Char=="Q") {Char="q"}
if (Char=="|2") {Char="r"}
if (Char=="5") {Char="s"}
if (Char=="7") {Char="t"}
if (Char=="u" || Char=="U") {Char="u"}
if (Char=="\\/") {Char="v"}
if (Char=="\\/\\/") {Char="w"}
if (Char=="><") {Char="x"}
if (Char=="'/") {Char="y"}
if (Char=="z" || Char=="Z") {Char="z"}
stradvenglish=stradvenglish+Char
}
document.f.ff1.value=stradvenglish
}
}
</Script>
<img src="Get A Picture"> v0.0 BETA
<form name="f">
Please Type In Text:
Characters:
<span id="B1">0/10000</span>
<BR>
<textarea name="ff1" cols="68" rows="8" onkeydown="CheckIt(1,10000)" onkeyup="CheckIt(1,10000)" onblur="CheckIt(1,10000)"></textarea>
<BR>
<BR>
<input type="button" value=" Translate To Elite " name="go" onclick="javascript:elite()">
<input type="button" value=" Translate To English " name="go" onclick="javascript:english()">
<BR>
<input type="button" value=" Translate To Advance Elite " name="go" onclick="javascript:advelite()">
<input type="button" value="Translate To Advance English" name="go" onclick="javascript:advenglish()">
<BR>
<input type="button" value=" Clear Text " name="clear" onclick="javascript:clr()">
<input type="button" value=" Copy To Keyboard " onclick="HighlightAll('f.ff1');">
<BR>
</form>
</BODY>
</HTML>
cg9com
10-15-2002, 05:11 PM
thats pretty neat
ive only seen people use that in mIRC and AIM
you should put this in "post a javascript" section ;)
Originally posted by 101
Elite (Or l337) Is a language mainly based on english and is a language for hackers.
Script kiddies you mean? Most self-respecful hackers (in the true sense, not the black hat crackers often associated with "hacking") would never write in 1337-5p34k.
Anyway, you may want to look into a switch() {} statement. It would cut down a lot of your if statements.
cg9com
10-15-2002, 07:13 PM
Originally posted by jkd
Script kiddies you mean?
<---- didnt want to say anything
Err depends really... i grew up with elite hackers and have leant the language really well. And all i wasnted to do is help some n00bs with a bit of basic l337.
But getting to the point...can any one help with the code?
joh6nn
10-15-2002, 09:30 PM
i didn't get the chance to finish this, 'cause i have class in a little bit, but this is a start:
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<Script Language="JavaScript">
var copytoclip=1
function HighlightAll(theField) {
theField.focus()
theField.select()
if (document.all&©toclip==1) {
therange=theField.createTextRange()
therange.execCommand("Copy")
}
}
function elite(adv) {
if (document.f.ff.value=="") { alert("Please Type Something In."); }
var strenglish=document.f.ff.value;
strenglish.replace(/\bcool\b/gi, "k3wl");
strenglish.replace(/\bdude\b/gi, "d00d");
strenglish.replace(/\belite\b/gi, "l33t");
strenglish.replace(/\bhacker\b/gi, "hax0r");
strenglish.replace(/\bhacked\b/gi, "hax0red");
strenglish.replace(/\bthe\b/gi, "teh");
strenglish.replace(/\bporn\b/gi, "pr0n");
strenglish.replace(/\bquake\b/gi, "quaek");
strenglish.replace(/\brock\b/gi, "r0x0r");
strenglish.replace(/\byou/gi, "j00");
strenglish.replace(/\bnewb(ie)?/gi, "n00b");
strenglish.replace(/\bboxer\b/gi, "b0xx0r");
strenglish.replace(/\bfool\b/gi, "f00");
strenglish.replace(/\bsuck\b/gi, "sux0r");
strenglish.replace(/a/gi, "4");
strenglish.replace(/b/gi, "8");
strenglish.replace(/c/gi, "k");
strenglish.replace(/e/gi, "3");
strenglish.replace(/\bf\w+/gi, "ph");
strenglish.replace(/g/gi, "6");
strenglish.replace(/i/gi, "1");
strenglish.replace(/l/gi, "L");
strenglish.replace(/o/gi "0");
strenglish.replace(/\w+s\w+/gi, "5");
strenglish.replace(/\w+s\b/gi, "z");
strenglish.replace(/t/gi, "7");
if (adv = true) {
strenglish.replace(/h/gi, "|-|");
strenglish.replace(/m/gi, "|\\/|");
strenglish.replace(/n/gi, "|\\|");
strenglish.replace(/r/gi, "|2");
strenglish.replace(/v/gi, "\\/");
strenglish.replace(/w/gi, "\\/\\/");
strenglish.replace(/x/gi, "><");
strenglish.replace(/y/gi, "'/");
}
document.f.ff.value=strenglish;
}
function english() {
if (document.f.ff.value=="") { alert("Please Type Something In."); }
var strenglish=document.f.ff.value;
if (Char=="k3wl") Char="cool"
if (Char=="d00d") Char="dude"
if (Char=="l33t") Char="elite"
if (Char=="hax0r") Char="hacker"
if (Char=="hax0red") Char="hacked"
if (Char=="teh") Char="the"
if (Char=="pr0n") Char="porn"
if (Char=="quaek") Char="quake"
if (Char=="r0x0r") Char="rock"
if (Char=="j00") Char="you"
if (Char=="n00b") Char="newbie"
if (Char=="b0xx0rz") Char="boxers"
if (Char=="f00") Char="fool"
if (Char=="sux0r") Char="suck"
if (Char=="4") Char="a"
if (Char=="8") Char="b"
if (Char=="3") Char="e"
if (Char=="ph") Char="f"
if (Char=="6") Char="g"
if (Char=="|-|") Char="h"
if (Char=="1") Char="i"
if (Char=="|_") Char="l"
if (Char=="|\\/|") Char="m"
if (Char=="|\\|") Char="n"
if (Char=="0") Char="o"
if (Char=="|2") Char="r"
if (Char=="5") Char="s"
if (Char=="7") Char="t"
if (Char=="+") Char="t"
if (Char=="\\/") Char="v"
if (Char=="\\/\\/") Char="w"
if (Char=="><") Char="x"
if (Char=="'/") Char="y"
strenglish=strenglish+Char
}
document.f.ff.value=strenglish
}
</Script>
<img src="Get APicture"> v0.0 BETA
<form name="f">
Please Type In Text :<br>
<textarea name="ff" cols="50" rows="7"></textarea>
<br>
<br>
<input type="button" value=" Translate To Elite " name="go" onclick="elite(false)">
<input type="button" value=" Clear Text " name="clear" onclick="document.f.reset();">
<br>
<input type="button" value="Translate To Advance Elite" name="go" onclick="elite(true)">
<input type="button" value=" Select All " onclick="HighlightAll(this.form.ff);">
<br>
<input type="button" value=" Translate To English " name="go" onclick="english()">
<br>
</form>
</BODY>
</HTML>
if all you're doing is switching out letters for numbers, misspelling things, and just generally making what you write hard to read, then it's not another language, it's brain damage.
beetle
10-15-2002, 09:41 PM
Here's something I messed with...<html>
<head>
<title>L337 translator</title>
<script language="javascript">
var copytoclip=1
function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents Highlighted And Copied To Keyboard!"
setTimeout("window.status=''",0)
}
}
</script>
<script language="javascript">
function CheckIt(WElem,DLimit){
DWords=document.f["ff"+WElem].value;
if(DWords.length>=DLimit){
DWords=DWords.slice(0,DLimit);
document.f["ff"+WElem].value=DWords;
}
Mess=DWords.length+"/"+DLimit;
if (document.getElementById) {document.getElementById("B"+WElem).innerHTML = Mess}
else if (document.all) {document.all["B"+WElem].innerHTML = Mess}
else if (document.layers) {document.layers["B"+WElem].innerHTML = Mess}
else{}
}
</script>
<script language="javascript">
var eliteWords = [
['pheer','fear'],
['feer','fear'],
['skillz','skills'],
['suxorz','suck'],
['foo','fool'],
['boxxorz','boxers'],
['noob','newbie'],
['joor','your'],
['joo','you'],
['roxorez','rocks'],
['roxor','rock'],
['quaek','quake'],
['pron','porn'],
['owned','owned'],
['own','own'],
['mpez','mpes'],
['teh','the'],
['haxored','hacked'],
['haxor','hacker'],
['leet','elite'],
['doodz','dudes'],
['dood','dude'],
['kewl','cool'],
['cewl','cool']
];
var eliteChars = [
['4','a'],
['8','b'],
['k','c'],
['d','d'],
['3','e'],
['ph','f'],
['6','g'],
['h','h'],
['1','i'],
['j','j'],
['k','k'],
['L','l'],
['m','m'],
['n','n'],
['0','o'],
['p','p'],
['q','q'],
['r','r'],
['5','s'],
['7','t'],
['u','u'],
['v','v'],
['w','w'],
['x','x'],
['y','y'],
['z','z']
];
function translate(direction) {
var txta = document.f.ff1;
var a, b, _1, _2, i;
if (direction == 'to') {
a = 1;
b = 0;
_1 = eliteWords;
_2 = eliteChars;
}
else {
a = 0;
b = 1;
_1 = eliteChars;
_2 = eliteWords;
}
for (i=0; i<_1.length; i++) {
var r = new RegExp(_1[i][a],"gi");
txta.value = txta.value.replace(r,_1[i][b]);
}
for (i=0; i<_2.length; i++) {
var r = new RegExp(_2[i][a],"gi");
txta.value = txta.value.replace(r,_2[i][b]);
}
}
</script>
</head>
<body>
<form name="f">
Please Type In Text:
Characters:
<span id="B1">0/10000</span>
<br>
<textarea name="ff1" cols="68" rows="8" onkeydown="CheckIt(1,10000)" onkeyup="CheckIt(1,10000)" onblur="CheckIt(1,10000)">
fear my elite hacker skills
</textarea>
<br>
<input type="button" value="English to Elite" name="go" onclick="translate('to')"><br>
<input type="button" value="Elite to English" name="go" onclick="translate('from')"><br>
<br>
<input type="button" value=" Clear Text " name="clear" onclick="this.form.ff1.value='';">
<input type="button" value=" Copy To Keyboard " onclick="HighlightAll('f.ff1');">
<br>
<input type="reset" value="Reset">
</form>
</body>
</html>
landon11
10-15-2002, 10:18 PM
What is:
document.all&©toclip
I get invalid character
whammy
10-16-2002, 01:33 AM
All I have to say is that this is a useless endeavor, as you can't tell what kind of "leet speak" the user might use (unless you want to take it upon yourself to set a standard!)... and I wouldn't personally waste my time on it.
For instance here's my UT 2003 nickname:
¦ßÐDz¦«ï©ê9»
I wouldn't even try to match that using a regular expression.. it flies in the face of any matching technique, since you don't know from week to week or user to user what UNICODE characters people may decide to use to match "normal" characters, and that may change depending on the users' whim...
Since there are no "standards" for this, I'm sure you get the point. :D
Frog Man
10-10-2006, 05:17 PM
Is there a way to get an input language pack in l337 speak? It would make it easier to try to be cool. Actually, I have no idea how to code, I just found this thread on google while looking for a way to get a language pack for windows xp for l337 speak. There are packs in millions of other languages so there must be one for l33t speak. I have no idea where to ask so if this is out of topic/bumping ilegallness I hope the question gets answered quick before this thread gets closed. ;p
I've always dreamed as of last week to be able to press ctrl shift and swith to l33t speak like I do with portoguese and english.
Thanks for the help. Love you all... 0_o
_Aerospace_Eng_
10-10-2006, 08:35 PM
What browser are you using? Firefox has an extension you can use http://leetkey.mozdev.org/
Also pay attention to the dates of threads you reply to. This one was nearly 4 years old.
Frog Man
10-11-2006, 04:35 AM
Sorry about the extreme bumping but thank you very much.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.