Hide orkut friends add request in opera

Status
Not open for further replies.

anilmail17

Journeyman
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:

*anilsoni.wordpress.com/files/2007/02/normal-view.JPG
Normal view of orkut when a person request you to add as a friend


*anilsoni.wordpress.com/files/2007/02/hide-request-screenshot.JPG
View after adding orkut request hider


*anilsoni.wordpress.com/files/2007/02/hide-request-screenshot2.JPG
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).
Code:
// ==UserScript==
// @include *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”
*anilsoni.wordpress.com/files/2007/02/oper-scripting-settings.JPG

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

anilmail17

Journeyman
@siddharth_2463107
well i dont think that there is method for adding user javascript in IE so i will prefer u to use opera instead of IE bcz opera is many times better than IE.
 
Status
Not open for further replies.
Top Bottom