Orkut Fonts in Pocket

By sahil2068 Last update Apr 14, 2009 — Installed 24 times.
// ==UserScript==
// @name           Orkut Fonts in Pocket
// @description    Writes text with different styles
// @namespace      http://www.orkut.co.in/Main#Profile.aspx?rl=ls&uid=16056994119329215449
// @include        http://www.orkut.com/CommMsgPost*
// @include        http://www.orkut.com/Scrapbook*
// @author         Sahil
// ==/UserScript==

function font(){
var txt=document.getElementsByTagName("textarea").item(0);
var obj2 = document.getElementById("google0");
var pto = obj2.options[obj2.selectedIndex].value;

if (pto==1){
txt.value=txt.value.replace(/A/gi,"Ã…");
txt.value=txt.value.replace(/B/gi,"ß");
txt.value=txt.value.replace(/C/gi,"©");
txt.value=txt.value.replace(/D/gi,"Ð");
txt.value=txt.value.replace(/E/gi,"Ë");
txt.value=txt.value.replace(/F/gi,"Æ’");
txt.value=txt.value.replace(/i/gi,"î");
txt.value=txt.value.replace(/s/gi,"§");
txt.value=txt.value.replace(/o/gi,"ø");
txt.value=txt.value.replace(/u/gi,"µ");
txt.value=txt.value.replace(/r/gi,"®");
}
if (pto==2){
txt.value=txt.value.replace(/a/gi,"ค");
txt.value=txt.value.replace(/b/gi,"ß");
txt.value=txt.value.replace(/N/gi,"и");
txt.value=txt.value.replace(/t/gi,"Ñ‚");
txt.value=txt.value.replace(/E/gi,"Ñ”");
txt.value=txt.value.replace(/f/gi,"Æ’");
txt.value=txt.value.replace(/p/gi,"þ");
txt.value=txt.value.replace(/s/gi,"ร");
txt.value=txt.value.replace(/o/gi,"σ");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/r/gi,"я");
}

if (pto==3){
txt.value=txt.value.replace(/a/gi,"ẩ");
txt.value=txt.value.replace(/b/gi,"β");
txt.value=txt.value.replace(/N/gi,"й");
txt.value=txt.value.replace(/t/gi,"Ñ‚");
txt.value=txt.value.replace(/E/gi,"Ä“");
txt.value=txt.value.replace(/f/gi,"Æ’");
txt.value=txt.value.replace(/p/gi,"Þ");
txt.value=txt.value.replace(/s/gi,"ÅŸ");
txt.value=txt.value.replace(/o/gi,"â—Š");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/r/gi,"Å™");
}
if (pto==4){
txt.value=txt.value.replace(/a/gi,"α");
txt.value=txt.value.replace(/b/gi,"в");
txt.value=txt.value.replace(/c/gi,"c");
txt.value=txt.value.replace(/d/gi,"∂");
txt.value=txt.value.replace(/E/gi,"ε");
txt.value=txt.value.replace(/f/gi,"Æ’");
txt.value=txt.value.replace(/h/gi,"н");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/N/gi,"Ï€");
txt.value=txt.value.replace(/o/gi,"Θ");
txt.value=txt.value.replace(/s/gi,"Å¡");
txt.value=txt.value.replace(/t/gi,"Ï„");
txt.value=txt.value.replace(/u/gi,"μ");
txt.value=txt.value.replace(/w/gi,"ш");
}
if (pto==5){
cor=new Array('aqua','blue','fuchsia','gold','gray','green','lime','maroon','navy','olive','orange','pink','purple','red','silver','teal','violet', 'yellow' );
var z=0;
txt.value=txt.value.replace(/(.)/gi,"§$1");
txt.value=txt.value.replace(/\§ /gi," ");
for(y=0;y<txt.value.length;y++){
txt.value=txt.value.replace(/\§/,'['+cor[z]+']');
z++;
if(z==cor.length){
z=0
}
}
}
if (pto==6){
cor=new Array('u','b','i','u');
var z=1;
txt.value=txt.value.replace(/(.)/gi,"§$1");
txt.value=txt.value.replace(/\§ /gi," ");
for(y=0;y<txt.value.length;y++)
{
txt.value=txt.value.replace(/\§/,'[/'+cor[z-1]+']'+'['+cor[z]+']');
z++;
if(z==cor.length){
z=1;
}
}
}
if (pto==7){
txt.value=txt.value.replace(/a/gi,"α");
txt.value=txt.value.replace(/p/gi,"ρ");
txt.value=txt.value.replace(/N/gi,"и");
txt.value=txt.value.replace(/t/gi,"ŧ");
txt.value=txt.value.replace(/E/gi,"Ñ”");
txt.value=txt.value.replace(/u/gi,"Ï‹");
txt.value=txt.value.replace(/h/gi,"Ħ");
txt.value=txt.value.replace(/s/gi,"§");
txt.value=txt.value.replace(/x/gi,"✗");
txt.value=txt.value.replace(/g/gi,"ÄŸ");
txt.value=txt.value.replace(/c/gi,"¢");
txt.value=txt.value.replace(/f/gi,"Æ’");
txt.value=txt.value.replace(/b/gi,"β");
txt.value=txt.value.replace(/w/gi,"ÏŽ");
txt.value=txt.value.replace(/d/gi,"Đ");
txt.value=txt.value.replace(/L/gi,"Ł");
txt.value=txt.value.replace(/y/gi,"Ò±");
txt.value=txt.value.replace(/k/gi,"ҝ");
txt.value=txt.value.replace(/j/gi,"ĵ");
txt.value=txt.value.replace(/z/gi,"ż");
txt.value=txt.value.replace(/o/gi,"ø");
txt.value=txt.value.replace(/m/gi,"м");
txt.value=txt.value.replace(/r/gi,"я");}}

var a=document.body.innerHTML.match(/return false;">scrap tips<\/a>/);
if (a=="return false;\">scrap tips</a>")
{
document.body.innerHTML=document.body.innerHTML.replace(/scrap tips<\/a>/gi," </a> "+"<span class=\"grabtn\">"+"<a href=\"javascript:void(0);\" class=\"btn\" id=\"submit\">change font</a>"+"</span>"+"<span class=\"btnboxr\">"+"<img src=\"http://img1.orkut.com/img/b.gif\" alt=\"\" height=\"1\" width=\"5\">"+"</span>"+"&nbsp;<select id=\"google0\" style=\"background-color:ffffff; height:15pt; width:150pt; font-family:Trebuchet MS; font-weight:bold;font-size:9pt\">"+"<option>Select a Font......</option>" + "<option value=\"1\">W®îtË LîkË Thî§</option>" + "<option value=\"2\">Wяiтє Likє тhiร</option>" + "<option value=\"7\">ώřitє Łiҝє TĦis</option>" + "<option value=\"4\">шгιτε lιkε τнιš</option>" + "<option value=\"3\">Wřiтē Likē тhiş</option>" + "<option value=\"5\" >(Colour Font)</option>"+ "<option value=\"6\" >(Bold, Italic, Underline...Font)</option>"+"</select>");
}else {
document.getElementsByTagName('div').item(34).innerHTML+="&nbsp;&nbsp;<select id=\"google0\" style=\"background-color:ffffff; height:14pt; font-family:Trebuchet MS; font-weight:bold;font-size:8pt\">"+"<option>Select a Font......</option>" + "<option value=\"1\">W®îtË LîkË Thî§</option>" + "<option value=\"2\">Wяiтє Likє тhiร</option>" + "<option value=\"7\">ώřitє Łiҝє TĦis</option>" + "<option value=\"4\">шгιτε lιkε τнιš</option>" + "<option value=\"3\">Wřiтē Likē тhiş</option>" + "<option value=\"5\" >(Colour Font)</option>"+ "<option value=\"6\" >(Bold, Italic,..Font)</option>"+"</select>"+"&nbsp;&nbsp;<span class=\"grabtn\">"+"<a href=\"javascript:void(0);\" class=\"btn\" id=\"submit\">&nbsp;change font&nbsp;</a>"+"</span>"+"<span class=\"btnboxr\">"+"<img src=\"http://img1.orkut.com/img/b.gif\" alt=\"\" height=\"1\" width=\"5\">"+"</span>";
}
document.getElementById('submit').addEventListener("click", font, true);