orkut one click scrap

By alex laier Last update Dec 23, 2005 — Installed 6,332 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
V-i-k-a-s P-... Scriptwright

I have modified the above script as the following. It now adds an [F] before [S][A]. That [F] takes you directly to the "add as friend" page of the person. It also saves unnecessary clicking to go first to profile and then to click "add as friend".

Hope you would test and this as the modified final link if you find it useful.

Interested visitors may save the following text as text file 2427.user.js
then open this file in your browser and click tools-install (in firefox).

Hope it helps. If so, please scrap me at
http://www.orkut.com/Profile.aspx?uid=976080314...

// ==UserScript==
// @name orkut one click scrap
// @namespace http://www.mat.puc-rio.br/~alexlaier/greasemonk...
// @description just one click to view your friends scrapbook.
// @include http://www.orkut.com*
// ==/UserScript==

(function() {
var i=document.getElementsByTagName('a');
for (var j=i.length-1; j>1; j--) {
var linkdata = i[j].getAttribute("href");
var linkparts = linkdata.split("?");
if (linkdata.match("Profile.") == "Profile." ) {
var addfriendlink = document.createElement("a");
addfriendlink.href="http://www.orkut.com/FriendAdd.aspx"+"?"+linkparts[1];
addfriendlink.appendChild(document.createTextNode("[F]"));

var scrapviewlink = document.createElement("a");
scrapviewlink.href="http://www.orkut.com/ScrapBook.aspx"+"?"+linkparts[1];
scrapviewlink.appendChild(document.createTextNode("[S]"));

var albumlink = document.createElement("a");
albumlink.href="http://www.orkut.com/AlbumView.aspx"+"?"+linkparts[1];
albumlink.appendChild(document.createTextNode("[A]"));

i[j].parentNode.insertBefore( albumlink ,i[j].nextSibling);
i[j].parentNode.insertBefore( scrapviewlink ,i[j].nextSibling);
i[j].parentNode.insertBefore( addfriendlink ,i[j].nextSibling);
}
}

var foot=document.getElementById("myFooter_linkContactUs");
foot.href="http://www.orkut.com/ScrapView.aspx?uid=7971467171394877835"

})();

 
V-i-k-a-s P-... Scriptwright

Excellent script.

So simple, so convenient, so useful.

Some suggestions:

1. please add an [F] to directly add the person as you friend. This will also avoid going through profile to click the "add as a friend" link.

2. please open these pages in new window/ tab because it currently opens the pages in the current window/ page, thus we have to get back from that page to current page.

 
yash gupta User

cool! adds a nifty [S][A] below the link to the profile so you can directly go to the scrapbook!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel