Signature Button in Orkut
By vipulsatya
—
Last update Jun 4, 2008
—
Installed
1 time.
// ==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('VIPUL was Here...');
var smily = new Array('8)');
var color = new Array('maroon');
/* 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 */