Adding Slideshows In Orkut Scraps And Profile  

Posted by *ΜΘŠŤ ŴÃŇŦ€Ď ĦÃČКЄŘ*

Orkut had added the support for adding your picasa album feeds to orkut profile page,..but lets admit, its very minimal.You go to a friends page and then click on picasa feed link which displays picasa albums inside orkut and if you still want to browse you have to click on album link which takes you to the picasa page,..can these steps be minimized ?? how can i have a quick look on my friends picasa photos just by going on his/her profile page ?? Can something be done ??

Oh ya !! with a little help of javascript this feature can be easily added to orkut :) and so i have written this greasemonkey script which does exactly same.It checks whether the profile page you are visiting has added picasa photo feed to his profile and if he/she had ..then it adds a slideshow to show all the public photos of the user whose profile you are visiting. with captions :)

Here is the screenshot :


So, again how to install this ?? here is the step by step guide to do so :

Thats it …now browse orkut.com and Picasa slideshow will appear on user profile page if user has submitted this information to orkut.

Here is the code of the script, for those who care :

1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// ==UserScript==

// @name Picasa SlideShow inside Orkut
// @namespace http://gverma.blogspot.com
// @description Shows the slideshow of users Picasa album
// @include http://www.orkut.com/Profile.aspx*
// @include http://orkut.com/Profile.aspx*
// ==/UserScript==

(function() {
try {
var rightbox = document.getElementById("rbox");
if(!rightbox)
return;
var allImgs = document.evaluate(
"//img[@class='favicon']",
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
if(!allImgs)
return;
var thisImg,picasauser;
for(var i=0;isnapshotlength;i++){>
snapshotlength;i++){> thisImg = allImgs.snapshotItem(i);
if(thisImg.src == "http://picasaweb.google.com/favicon.ico")
picasauser = thisImg.parentNode.href;
}
if(!picasauser)
return;
picasauser = picasauser.substring(picasauser.lastIndexOf('%2F')+3,picasauser.indexOf('%40'));
rightbox.innerHTML = '













His Photos

'
+ rightbox.innerHTML;
var span = document.getElementById('photospan');
if(!span)
return;
span.innerHTML = '+picasauser+'%2F%3Fkind%3Dphoto%26alt%3Drss%26access%3Dpublic" pluginspage="http://www.macromedia.com/go/getflashplayer" height="200" width="270">';
} catch (e) {
GM_log( 'Picasa Slideshow exception: ' + e );
alert(e);
}

})();


Happy Orkuting :)

This entry was posted on 6:19:00 PM . You can leave a response and follow any responses to this entry through the Subscribe to: Post Comments (Atom) .

0 comments