Anils blog

Hide orkut friends request in opera

Posted by anil soni on February 12, 2007

I have created a user javascript which can be used to hide friend request and can be showned on demand. Here are some screenshots which shows how this script works:

Normal friend add request view
Normal view of orkut when a person request you to add as a friend
View after adding orkut request hider
Screenshot showing the add friend request with option to hide requests

Here i am giving you the script or you can download this script from here(right click and click on save target as).

// ==UserScript==
// @include http://www.orkut.com/home.aspx
// @description Hide request panel on orkut profile homepage
// ==/UserScript==

document.onload=Hide_Requests;
var new_con;
function Hide_Requests()
{
var tables=document.getElementsByTagName(“table”);
var con_str=tables[3].cells[0].innerHTML;
if (con_str.substr(0,3)==”new”)
{
new_con =con_str.substr(con_str.indexOf(“(“)+1,con_str.indexOf(“)”)-con_str.indexOf(“(“)-1);
tables[3].cells[0].innerHTML=”<a href=’Show_Requests()’>Show all requests.</a> Total “+new_con+” requests” ;
tables[3].rows[1].style.display=”none”;
}
}

function Show_Requests()
{
var tables=document.getElementsByTagName(“table”);
tables[3].cells[0].innerHTML=”new connections <span>(“+new_con+”)</span> – <a href=’Hide_Requests()’>Hide</a>”;
tables[3].rows[1].style.display=”block”;
}

Save this script as “orkut request hider.js”. Now open orkut site in opera and goto Tools>Quick Preferences>Edit Site Preferences
from here select scripting tab and now check “Enable Javascript” option and at the bottom of this you will find “User Javascript files”. Click on choose and select the folder in which you have saved “orkut request hider.js”

Click Ok and login into your orkut account. maaza aaa gaya ho gaya hooray

Advertisement

3 Responses to “Hide orkut friends request in opera”

  1. [...] Hide orkut friends request in opera [...]

  2. vivekojha said

    hey please help me out to find how can i flood my friend’s scrapbook using java script
    in opera 9
    and i acess internet using mobile office of AIRTEl

  3. Nightspot said

    Somehow i missed the point. Probably lost in translation :) Anyway … nice blog to visit.

    cheers, Nightspot

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.