Wednesday, December 27, 2006

orkut hacks

You should download and install Firefox 2 and then use the fireBug extension to run these javaScripts. Trust me, it is MUCH better than pasting it all in the addressBar. Moreover, fireFox is a much better browser and you shouldn't be using internetExplorer anyway.

For those who aren't using fireBug, remove all the lineBreaks from the code and put "javascript:" before it. For example, the country hiding script should become something like this:

javascript:var alpha=document.createElement('option'); alpha.text="beta"; document.getElementById("country").add(alpha, null);



scrapBook flooding script

Run this script and then let your browser run for some time, like three minutes or so (in three minutes it will post 19 scraps. you wouldn't want orkut to recognise it as a script and temporarily block your account, would you? that's why it waits for 10 seconds before posting each scrap). It will keep posting scraps during that time.

var epsilon=1;
document.forms[0].target="omicron";
document.forms[1].target="omicron";
document.forms[2].target="omicron";
document.forms[3].target="omicron";
var beta=document.getElementById('scrapText');
var gamma=beta.value;
function chi()
{
        beta.value=gamma+epsilon;
        submitForm(document.getElementById('b2'), 'submit', '');
        epsilon++;
}
chi();
void(setInterval("chi()", 10000));


write each letter in different colours (dark colours only)

Write something in the message box and then run this script. Due to orkut's limitation of 1024 chars per scrap, you can only post 129 (though try to keep it at 128, to be safe) characters like this (the colour tags also count as characters). I also added a confirmation alert ;)

var darkcolours = [ "blue", "green", "maroon", "navy", "olive", "purple", "teal" ]
var beta=document.getElementById('scrapText');
var gamma=beta.value;
beta.value="";
var epsilon=0;
var chi=gamma.length;
var upsilon=1;
for ( ; epsilon < chi ; epsilon++ ) {
   if ( chi > 129 ) {
      alert('orkut limits the number of charachters in a scrap to 1024. \
Since the colour tags are also counted in the characters, \
the maximum characters that you can have in the original \
message is 128. orkut truncates rest of the characters, \
leaving with a broken message. Please shorten your message \
and try again.' );
      beta.value=gamma;
      upsilon=0;
      break; }
   var x = epsilon % 7;
   beta.value=beta.value+"["+darkcolours[x]+"]"+gamma[epsilon]; }
if ( upsilon == 1 ) { alert('Script completed successfully. Now click on "submit".'); }


write each letter in different colours (all colours)

Similar to the previous one, but has all colours. Note that some of the colours are difficult to see on the background that orkut uses

var colours = [ "aqua", "blue", "fuchsia", "gold", "gray", "green",
                "lime", "maroon", "navy", "olive", "orange", "pink",
                "purple", "red", "silver", "teal", "violet", "yellow" ]
var beta=document.getElementById('scrapText');
var gamma=beta.value;
beta.value="";
var epsilon=0;
var chi=gamma.length;
var upsilon=1;
for ( ; epsilon < chi ; epsilon++ ) {
   if ( chi > 129 ) {
      alert('orkut limits the number of charachters in a scrap to 1024. \
Since the colour tags are also counted in the characters, \
the maximum characters that you can have in the original \
message is 128. orkut truncates rest of the characters, \
leaving with a broken message. Please shorten your message \
and try again.' );
      beta.value=gamma;
      upsilon=0;
      break; }
   var x = epsilon % 18;
   beta.value=beta.value+"["+colours[x]+"]"+gamma[epsilon]; }
if ( upsilon == 1 ) { alert('Script completed successfully. Now click on "submit".'); }


hide country

orkut forces its users to choose a country. But using this small hack, you can hide the country. Note that it still isn't possible (rather I haven't been able to figure out a way ;) ) to set the country to something other than what orkut allows you to. You can only hide it. Run this script in the "edit profile" page and then select "beta" as the country

var alpha=document.createElement('option');
alpha.text="beta";
document.getElementById("country").add(alpha, null);

Update (December 28, 2006):

Due to some changes in orkut, the scrapBook flooding script DOES NOT WORK. I'm working on a fix

Update (January 1, 2006):

I was finally able to fix the scrapBook flooding script! YAY!!!