// ==UserScript==
// @name Orkut Quick Links to Scrapbook, Videos and Albums
// @namespace http://chaosprophet.blogspot.com/
// @description Adds links to access the Scrapbook, Album List and list of favorite videos. Now updated to work with recent changes in Orkut.
// @include http://www.orkut.co*
// ==/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 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/AlbumList.aspx"+"?"+linkparts[1];
albumlink.appendChild(document.createTextNode("[A]"));
var videolink = document.createElement("a");
videolink.href="http://www.orkut.co.in/FavoriteVideos.aspx"+"?"+linkparts[1];
videolink.appendChild(document.createTextNode("[V]"));
i[j].parentNode.insertBefore( videolink ,i[j].nextSibling);
i[j].parentNode.insertBefore( albumlink ,i[j].nextSibling);
i[j].parentNode.insertBefore( scrapviewlink ,i[j].nextSibling);
}
}
})();