Wordings by Dhawal

By dhawal.agarwal2009 Last update Mar 23, 2009 — Installed 214 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, 0
// ==UserScript==
// @name	Wordings by Dhawal
// @version	1.00
// @author	Dhawal
// @namespace	TEAM BLAKUT
// @description	Use Animated smileys in your ScrapBook and HTML community Forums. Just click on a smiley to insert. Enjoy
// @include        http://*.orkut.*/*Scrapbook.aspx*
// @include        http://*.orkut.*/*CommMsgs.aspx*
// @include        http://*.orkut.*/*CommMsgPost.aspx*
// ==/UserScript==

/**********************************************************************************************************************************************************
//Script Template by Swashata [Team Blakut]
//Original Base script by Fenil
***********************************************************************************************************************************************************/

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


function insertSmiley(){
	var image = this.getElementsByTagName('img')[0].getAttribute("src");
	getTextArea(this.getAttribute("gult")).focus();
	getTextArea(this.getAttribute("gult")).value += "<img src="+image+">";
}

function dip() {
	var smileyarr = new Array();	
//COPY PASTE THE CODES GENERATED BY THE SCRIPT HELPER BELOW THIS LINE	

smileyarr["you_suck"]="http://lh3.ggpht.com/_Nhh98Ix90W8/ScdVA3V8bNI/AAAAAAAAArM/82d2s8eg5Js/you_suck.gif";
smileyarr["you_rock"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVBT2_FwI/AAAAAAAAArQ/Y3y2bgKSAzA/you_rock.gif";
smileyarr["yes"]="http://lh3.ggpht.com/_Nhh98Ix90W8/ScdVB1cAR-I/AAAAAAAAArU/zGRKg88UxZM/yes.gif";
smileyarr["yeah_baby"]="http://lh3.ggpht.com/_Nhh98Ix90W8/ScdVC4ykrHI/AAAAAAAAArY/sj9IFZbzotY/yeah_baby.gif";
smileyarr["woo_hoo"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVDlRPp4I/AAAAAAAAArc/4LCWC_G5Cv8/woo_hoo.gif";
smileyarr["why"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVEJXRYuI/AAAAAAAAArg/m6KQpKK12x0/why.gif";
smileyarr["whatever"]="http://lh3.ggpht.com/_Nhh98Ix90W8/ScdVE_QUoWI/AAAAAAAAArk/En-BXtLcqu0/whatever.gif";
smileyarr["well_done2"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVFaCxySI/AAAAAAAAAro/1janyQIjjK4/well_done2.gif";
smileyarr["well_done1"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVF8mPYjI/AAAAAAAAArs/JPi9iutAZm8/well_done1.gif";
smileyarr["welcome"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVGCbM1_I/AAAAAAAAArw/iKHtaPqLmqQ/welcome.gif";
smileyarr["thanks"]="http://lh3.ggpht.com/_Nhh98Ix90W8/ScdVGjixD-I/AAAAAAAAAr0/78RjvuMlE9c/thanks.gif";
smileyarr["please"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVHLClJyI/AAAAAAAAAr4/zf4gFAETyro/please.gif";
smileyarr["opps"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVIPz-_gI/AAAAAAAAAr8/5TgJycx_vw4/opps.gif";
smileyarr["no_problem"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVIeGrojI/AAAAAAAAAsA/URpDhvLPssA/no_problem.gif";
smileyarr["need_hug"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVJJCh7tI/AAAAAAAAAsE/B5JXAQFsI9c/need_hug.gif";
smileyarr["love_you"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVJkhc--I/AAAAAAAAAsI/44jRaO10FgM/love_you.gif";
smileyarr["loser"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVKjeSmBI/AAAAAAAAAsM/vzDtlesMQ_A/loser.gif";
smileyarr["lol"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVLU2LScI/AAAAAAAAAsQ/0yxuGy1jqq4/lol.gif";
smileyarr["like_you"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVL8CZZLI/AAAAAAAAAsU/sWm7o4IPiFo/like_you.gif";
smileyarr["huh"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVMmG4TNI/AAAAAAAAAsY/rrpNl13E8Hs/huh.gif";
smileyarr["how_are_you"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVNOXMvMI/AAAAAAAAAsc/vwv1PaTY0d0/how_are_you.gif";
smileyarr["hiya"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVNrbyxpI/AAAAAAAAAsg/V9R4-Gt3ZX8/hiya.gif";
smileyarr["hey_sexy"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVOAgB1TI/AAAAAAAAAsk/ltPiqSb2qrg/hey_sexy.gif";
smileyarr["hate_you"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVOxxjdJI/AAAAAAAAAso/PtARW_9CPjA/hate_you.gif";
smileyarr["ha"]="http://lh3.ggpht.com/_Nhh98Ix90W8/ScdVPJKLHvI/AAAAAAAAAss/RBBs986XLg0/ha.gif";
smileyarr["greetings"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVP-5PJhI/AAAAAAAAAsw/Q7hfbvnJzvM/greetings.gif";
smileyarr["dont_know"]="http://lh6.ggpht.com/_Nhh98Ix90W8/ScdVQb3JHLI/AAAAAAAAAs0/AiQ8LibHoaI/dont_know.gif";
smileyarr["damn"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVQxbJBpI/AAAAAAAAAs4/QXdO6GcJXGg/damn.gif";
smileyarr["bravo"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVRWw4pCI/AAAAAAAAAs8/DdWjBPkGxyg/bravo.gif";
smileyarr["back"]="http://lh4.ggpht.com/_Nhh98Ix90W8/ScdVSIBECYI/AAAAAAAAAtA/xg9XviIh_Tw/back.gif";
smileyarr["are_you_there"]="http://lh5.ggpht.com/_Nhh98Ix90W8/ScdVSh4nNaI/AAAAAAAAAtE/_ioEMKYlpAo/are_you_there.gif";
	

//DO NOT CHANGE ANY THING BELOW THIS LINE
	var tb = document.getElementsByTagName('textarea');
	for(i=0;i<tb.length;i++){
		text=tb[i];
		if (!text) return;
		c=text.parentNode;
		d=document.createElement("div");
		d.className="T";
		d.style.fontSize="11px";
		d.align="left";
		
	        
	    d.style.marginTop="10px";
		c.appendChild(d);
		
		for(title in smileyarr){
			mm=document.createElement("a");
			mm.href="javascript:;";
			mm.setAttribute("gult",i);
			mm.innerHTML="<img src='"+smileyarr[title]+"' title='"+title+"'>";
			mm.addEventListener("click", insertSmiley, true);
			d.appendChild(mm);
		}
	}	
}
dip();
}, false);

//More Smileys could be found on http://www.blakut.com/2008/12/use-animated-smileys-to-make-orkutting.html
// Visit our official website www.blakut.com for regualr update on smileys and other orkut related stuffs.
//~~Happy Orkutting~~
// Regards--- Swashata