NEW Smiles FOr Orkut(T5) BY SANJAY

By b4sanjay Last update Sep 16, 2008 — Installed 544 times.

There are 1 previous version of this script.

// ==UserScript==
// @name        NEW Smiles FOr Orkut(T5) BY SANJAY
// @namespace    donno :p
// @author	 SANJAY....
// @description    Use extraordinary SANJAY(T5)Smilies for Orkut. And no need 2 fill nd works with reply boxes.Click on "INSTALL THIS SCRIPT"
// @include        http://*.orkut.*/Scrapbook.aspx*
// @include        http://*.orkut.*/CommMsgs.aspx?*
// @include        http://*.orkut.*/CommMsgPost.aspx?*
// ==/UserScript==

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();	
	smileyarr["A1"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx2KXHPTlI/AAAAAAAAAgU/qOq86LIzt2s/s400/1.png";
	smileyarr["A2"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx3DtI-O1I/AAAAAAAAAg0/UkSV3-8Z-EU/s400/3.png";
	smileyarr["A3"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx3Pdcrp3I/AAAAAAAAAhE/YalI5alzyVs/s400/4.png";
	smileyarr["A4"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx3X1u8OGI/AAAAAAAAAhU/DLyxN2ap0iI/s400/5.png";
	smileyarr["A5"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx3o2E3oSI/AAAAAAAAAhk/oSRIPZ4nCWY/s400/6.png";
	smileyarr["A5"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx3uYCItVI/AAAAAAAAAh0/DE5MetU8M-c/s400/7.png";
	smileyarr["A6"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx30JyhZqI/AAAAAAAAAiE/KEpCzwEQaqU/s400/8.png";
	smileyarr["A7"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx36YfliLI/AAAAAAAAAiU/_Fo0ty7qFNo/s400/9.png";
	smileyarr["A8"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx4AibUq9I/AAAAAAAAAik/6uqGOmBVJfk/s400/10.png";
	smileyarr["A9"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx4F2XZaSI/AAAAAAAAAi0/A3J8H1NZkYs/s400/11.png";
	smileyarr["A10"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx4LqV8JLI/AAAAAAAAAjE/XCos1lqjBT0/s400/12.png";
	smileyarr["A11"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx4Wxq1LaI/AAAAAAAAAjk/yB_lOy2KS7w/s400/13.png";
	smileyarr["A12"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx4btpu4tI/AAAAAAAAAj0/t2mTfmNrZ0o/s400/14.png";
	smileyarr["A13"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx4hJwLnwI/AAAAAAAAAkE/Kv6CahRezxE/s400/15.png";
	smileyarr["A14"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx4mqUQvbI/AAAAAAAAAkU/jN6W-FmiCt4/s400/16.png";
	smileyarr["A15"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx4sLM1H1I/AAAAAAAAAkk/DfqxUfqIemA/s400/17.png";
	smileyarr["A16"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx4wXVyuGI/AAAAAAAAAk0/W2SWiiDaK5Q/s400/18.png";
	smileyarr["A17"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx42lianXI/AAAAAAAAAlE/Ha3AeHh-dz0/s400/19.png";
	smileyarr["A18"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx49vAdkYI/AAAAAAAAAlU/ksopw143d3s/s400/20.png";
	smileyarr["A19"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx5E6yXkII/AAAAAAAAAlk/Vuo3GfYf6_s/s400/21.png";
	smileyarr["A20"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx5PgqYEhI/AAAAAAAAAl0/xEvDbY2l_tM/s400/22.png";
	smileyarr["A21"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx5aSWbOeI/AAAAAAAAAmE/1tQLtn0Ui1s/s400/a.png";
	smileyarr["A22"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx5jrTRoDI/AAAAAAAAAmU/G1Fnc6ymtPQ/s400/b.png";
	smileyarr["A23"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx5o6Sq29I/AAAAAAAAAmk/vozGwnpW7_g/s400/c.png";
	smileyarr["A24"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx5vWEkaEI/AAAAAAAAAnE/b_kSnquuNkY/s400/d.png";
	smileyarr["A25"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx8L30wdcI/AAAAAAAAAs0/xyrrTCKqYS0/s400/z.png";
	smileyarr["A26"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx57s921wI/AAAAAAAAAnk/N1IqEADOc1U/s400/f.png";	
        smileyarr["A27"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx6VwyMWQI/AAAAAAAAAn0/PCKvFBIvOrM/s400/g.png";
        smileyarr["A28"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx6dySbFLI/AAAAAAAAAoU/DNnLjhl1x14/s400/h.png";
        smileyarr["A29"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx6i7Byz1I/AAAAAAAAAok/mFRhiwnavDM/s400/i.png";
        smileyarr["A30"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx6nz7DE9I/AAAAAAAAAo0/rewfv4mLK58/s400/j.png";
        smileyarr["A31"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJyAtlkVNnI/AAAAAAAAAtE/7XDmxvq5mxg/s400/k.png";
        smileyarr["A32"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx6xgNt1NI/AAAAAAAAApU/GtDGCPZyZtI/s400/l.png";
        smileyarr["A33"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx62bd3TVI/AAAAAAAAApk/s_nwTBBZJM0/s400/m.png";
        smileyarr["A34"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx67EKqg9I/AAAAAAAAAp0/UpookVj-ams/s400/n.png";
        smileyarr["A35"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx7Ar6ysJI/AAAAAAAAAqE/GfV_swNx8bc/s400/o.png";
        smileyarr["A36"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx7EQFb7JI/AAAAAAAAAqU/b96ZLVHd6uE/s400/p.png";
        smileyarr["A37"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx7JmPqqiI/AAAAAAAAAqk/JXiSHMtGjWE/s400/q.png";
        smileyarr["A38"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx7NwZ5FQI/AAAAAAAAAq0/3qvRrWGqsBw/s400/r.png";
        smileyarr["A39"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx7UnedIQI/AAAAAAAAArE/yOXf4E3JwE0/s400/s.png";
        smileyarr["A40"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx7aclqTzI/AAAAAAAAArU/PA0qgnnYE_s/s400/t.png";
        smileyarr["A41"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx7e77NuUI/AAAAAAAAArk/pRiEBw2Mpqs/s400/u.png";
        smileyarr["A42"]="http://lh3.ggpht.com/_WKUlnDUHMkw/SJx7klEYF-I/AAAAAAAAAr0/PvOg5DCW3I0/s400/v.png";
        smileyarr["A43"]="http://lh5.ggpht.com/_WKUlnDUHMkw/SJx7rEIA5OI/AAAAAAAAAsE/NS3Gh4bc3L8/s400/w.png";
        smileyarr["A44"]="http://lh6.ggpht.com/_WKUlnDUHMkw/SJx8B2eGLwI/AAAAAAAAAsU/3DOvRVGE-94/s400/x.png";
        smileyarr["A45"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx8Gv8tS7I/AAAAAAAAAsk/Ukenox-1T7s/s400/y.png";
        smileyarr["A46"]="http://lh4.ggpht.com/_WKUlnDUHMkw/SJx8L30wdcI/AAAAAAAAAs0/xyrrTCKqYS0/s400/z.png";

	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);
		}
	}
ad=document.createElement("a");
	ad.href="http://www.orkut.co.in/Profile.aspx?uid=9728967700758501271";
	ad.innerHTML="<b><span style='color:red;'>..>>SANJAY's</span><span style='color:black;'> Profile<<..</b></span>";
	
}
dip();
}, false);