With recent launch of orkut’s country specific sites, all greasemonkey scripts stopped working. The reason is most greasemonkey scripts are domain specific and at the time of writing them, they were coded for url http://www.orkut.com which is now changing to http://www.orkut.co.in and so on depending on users country.

So all greasemonkey scripts for orkut needs to be changed now to reflect this domain change. Listed below are steps need to be followed by users and developers to make your favorite greasemonkey scripts work again on orkut…

For GreaseMonkey Script Users…

Just go through following steps for each greasemonkey scripts you want to modify…

1. Open Manage User Scripts option from Tools >> Greasemonkey menu or right-clicking on small greasemonkey logo in bottom-right corner of your firefox.

Greasemonkey - Manage User Scripts.jpg

2. A wizard will open like below. Then…

  • Click on a script you want to edit from left side menu.
  • Then Click on right-sides included pages list.
  • Then click on Add button.

Greasemonkey Scipt Managing-2.jpg

3. Clicking on Add button will open a pop-up. Put orkut’s domain name you have in your country their. Ex: http://www.orkut.co.in/* for Indian orkut users. Note /* at the end of domain name. You must not forget it!

Add Orkut Domain To Greasemonkey Scripts.jpg

4. Just click OK and the script will start working. :-)

For more detailed greasemonkey tutorial check this post!

For GreaseMonkey Script Developers…

If you are a newbie greasemonkey script developer then you may be wondering about long list of orkut’s country-level domains.

But with one small change in your scripts you can make them work with all orkut sites. Here are the steps…

  1. Open your greasemonkey script is editor.
  2. Go to @include line in ==UserScript== header.
  3. Change http://*.orkut.com/* to http://*.orkut.*/*

This will make script work with all orkut domains plus few more domain like http://www.orkut.pk. But rather than listing all countries and making mistake on the way, this way is full-proof. Its also simple as all you need is to replace com in orkut urls with a * (asterisk).

You can do try-catch type nesting around your domain sensitive codes so that they will not clutter javascript error console in firefox. But this part is optional so don’t bother much if I sound like alien… ;-)

I guess this answers all questions on the this issue. Sorry for delay in response as I was away from this workshop.

About our greasemonkey scripts go, you can just update them by installing again from respective locations. I have updated all of them and you can find them at one place, thats here! :-)

Related: Shortest Greasemonkey Tutorial