Tuesday, September 16, 2008

Quick Reply in Scrapbook (With signature)[source]


// ==UserScript==

// @name Quick Reply in Scrapbook (With signature)


// @author Gautam [Thanks to Mr Nobody]
// @description Reply in any orkut community with Shift+[Functional key No as the scrap number [like F3 for scrap #3]]

// @include http://www.orkut.*/Scrapbook.aspx
*
// @exclude *.js

// ==/UserScript==
var sig = "\n\n\n\n\nVisit: http:// www . gautamsofts . com \nhttp:// blog . gautamsofts .com \n(remove spaces)"; // Enter your signature here
// Do not edit anything below + don't steal credits!!
function reply2(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[3].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply3(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[5].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply4(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[7].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply5(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[9].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply6(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[11].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply7(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[13].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply8(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[15].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply9(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[17].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply20(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[19].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
function reply21(){
txt = prompt("Enter Your Reply: (Please Visit http://www.gautamsofts.com/ or http://blog.gautamsofts.com/ )", "");
txtcomp = encodeURIComponent(txt + sig);
a = document.forms[3];
var c=document.forms[3].elements[21].value;
var b=c.split("/");
a.action = "/Scrapbook.aspx?toUserId=" + b[2] + "&rawAddedDate=" + b[1] + "&scrapText=" + txtcomp + "&Action.submit=1";
a.submit();
}
var fnCheckShortcut2;
fnCheckShortcut2 = function (e) {if (e.shiftKey && e.keyCode == 112) {reply2();}};
document.addEventListener("keydown", fnCheckShortcut2, 0);
var fnCheckShortcut3;
fnCheckShortcut3 = function (e) {if (e.shiftKey && e.keyCode == 113) {reply3();}};
document.addEventListener("keydown", fnCheckShortcut3, 0);
var fnCheckShortcut4;
fnCheckShortcut4 = function (e) {if (e.shiftKey && e.keyCode == 114) {reply4();}};
document.addEventListener("keydown", fnCheckShortcut4, 0);
var fnCheckShortcut5;
fnCheckShortcut5 = function (e) {if (e.shiftKey && e.keyCode == 115) {reply5();}};
document.addEventListener("keydown", fnCheckShortcut5, 0);
var fnCheckShortcut6;
fnCheckShortcut6 = function (e) {if (e.shiftKey && e.keyCode == 116) {reply6();}};
document.addEventListener("keydown", fnCheckShortcut6, 0);
var fnCheckShortcut7;
fnCheckShortcut7 = function (e) {if (e.shiftKey && e.keyCode == 117) {reply7();}};
document.addEventListener("keydown", fnCheckShortcut7, 0);
var fnCheckShortcut8;
fnCheckShortcut8 = function (e) {if (e.shiftKey && e.keyCode == 118) {reply8();}};
document.addEventListener("keydown", fnCheckShortcut8, 0);
var fnCheckShortcut9;
fnCheckShortcut9 = function (e) {if (e.shiftKey && e.keyCode == 119) {reply9();}};
document.addEventListener("keydown", fnCheckShortcut9, 0);
var fnCheckShortcut20;
fnCheckShortcut20 = function (e) {if (e.shiftKey && e.keyCode == 120) {reply20();}};
document.addEventListener("keydown", fnCheckShortcut20, 0);
var fnCheckShortcut21;
fnCheckShortcut21 = function (e) {if (e.shiftKey && e.keyCode == 121) {reply21();}};
document.addEventListener("keydown", fnCheckShortcut21, 0);

No comments: