Signature Button in Orkut

By Malious Last update Apr 1, 2008 — Installed 473 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
// ==UserScript==
// @name Signature Button in Orkut
// @author Black Panther [http://www.orkut.com/Profile.aspx?uid=10481463303105852858]
// @namespace OUG[http://www.orkut.com/Community.aspx?cmm=43558952]
// @description Signature Button in scrapbook, testimonial writing, community post.
// @include http://www.orkut.com/Scrapbook.aspx
// @include http://www.orkut.com/Scrapbook.aspx?*
// @include http://www.orkut.com/TestimonialWrite.aspx?*
// @include http://www.orkut.com/CommMsgPost.aspx?*
// ==/UserScript==


/* SCRIPT START */


/* edit The value of txt, smily, color Below for ur Own Signature.*/
var txt = new Array('i am here','i am there','i am where','who is here','who is there','who is where','no one is here','no one is there','you are here','you are there','you are nowhere','i am nowhere','i am everywhere','no one is everywhere','who is nowhere','she is here','she is there','she is nowhere');
var smily = new Array('8)',':(',':x',':)',';)',':D',':o',':P','/)');
var color = new Array('maroon','navy','teal','purple');



/* giving space between message and signature.*/
var lnbrk = '\n\n\n\n\n\n';

/* generating random sign data.*/
var txtrand = txt[Math.floor(Math.random()*txt.length)];
var smilyrand = smily[Math.floor(Math.random()*smily.length)];
var colorrand = color[Math.floor(Math.random()*color.length)];

/* creating final sign.*/
var sign = "["+colorrand+"][b]"+txtrand+"  ["+smilyrand+"][/b][/"+colorrand+"]";
var signature = lnbrk+sign;



/* Dont Edit Anything Below this line*/
/* main code */


addEventListener('load', function(event) {
function getTextArea() {
	return document.getElementsByTagName('textarea')[0];
}


	function sign(){
	var sig=getTextArea(0);
	sig.value+=signature;
	}

	function sg() {
	var text=getTextArea(0);
	if (!text) return;
	var c=text.parentNode;
	var d=document.createElement("a");
	d.className="T";
	d.style.marginTop="10px";
	d.style.fontSize="13px";
	d.style.fontWeight="bold";
	d.style.fontFamily="palatino linotype";
	d.align="right";
	d.innerHTML=<br/>+<br/>+"Signature";
	d.href="javascript: void(0);";
	d.addEventListener("click", sign, true);
	c.appendChild(d);
	}
sg();
}, false);

/* SCRIPT END */