Skip to main content

60 in 3 Minutes , Random Quotes

Note: The tip in this blog, no longer works.

Few weeks back, one of my friend, known as "The Immortal" has requested all his friend to fill his Orkut scrap book to 10K. To say it from heart, it is illegal. But this keeps Orkut right.

Orkut has got lots of well defined process for preventing a user from automate scrapping in the scrap box.

For Example,
1, It prevents the advertising in the name of URL by checking the URL entered by user with the CAPTCHA..( I will write about it sometime future )
2. It prevents the user from scrapping the same text again and again.
3. Blank Scraps not possible.(may be)

These functionalities are important to note as they are the stepping stone above which we have to lay our feet to reach the goal. The Goal i reached is the 60 scrap in Three minutes..

To precisely summarize the requirement, a process is required to automate entering the text in the scrapbox and clicking the submit button.

Orkut uses Text area for Scrap Box and a table cell for submit button(?-*#_;)..

thankfully, both these elements have id as 'scraptext' and 'b1', else it would be some more complicated.

Automation Script that I have used is not a programmer's favourite languages like perl, python ..(I do think that programmers will say "sea tastes like honey").. I choose javascript and it would be running on Greasemonkey,an add on for Mozilla Firefox...

Why I have choosen this?
1. I have some idea on Grease monkey, Firefox and Javascript
2. I just know that it is going to be two lines of codes in this environment.

So what is the algorithm for these two lines of Code?
Algorithm is a best practise for writing a program. But it is needed for the place where it is needed. Algorithm is like dream and coding is like action. For some big achievements, there has a dream behind it. hey.. sorry.. i am cutting there.. its getting more philosophical..

Lets Come back to code...

[code lang='js'] document.getElementByID().value = random text;
document.getElementByID().click();[/code]

that's all the code... But the second line of code doesn't work for me..

I suspect that it is because of table cell instead of button.(Orkuttan is bright)

There are hundreds of ways to create a random text. I have used a way, there by, three strings from two different arrays are joined in random fashion, it will yield the random string every time it is created.

for three minutes, i have clicked the submit button.. each time a random text filled up in the text area.. sixty scraps were made...

But the learning from this is not just clogging orkut, a new way of writing the scrap..
Now I have found a way of scrapping a message with randomly generated quote using this script as it was already populated..

so whats the future plan for this..
I would be writing a script for thunderbird so that a randomly generated quote can be added to all sent mails...

Deadline... Its always in future...

Reference:
http://diveintogreasemonkey.org/

Popular posts from this blog

Sultan, The Warrior

Kannu, Ithu Puthusu, Sultan. What ever Rajni Does... that makes a huge talk in Tamil Nadu... and Now, the fire was spreading all over the country and unto the world. Thats shows how his charisma wins the heart of crores of people. While Sivaji running great across theatres, homes, internet... there was large amount of hype and hoopla around his next movie... and yes, Sultan, The warrior would definitely make history in World Cinema. Being a fan..Here goes what I thought negative about the Trailer: - * Rajini - doesn't Appear as Rajni... When you take a close look at him... he appears as Slim Vijayakanth.. * Even in animation, they have used Doop for Rajni. It was clearly visible when he hides his face while swinging the sword. :) * I don’t know why he jumps so unusual to take that sword. Style?? * Soundarya Rajnikanth - is directing the movie... Remember chandramukhi graphics... which was widely appreciated (?*&#&) * Only the name of the movie was ready, other casts were n...

Firefox, Revisitied

Last couple of years, Microsoft was kicked back in web arena by Google and Firefox. Anyway this blog is not about firefox vs ie cold war and its all about sharing what i have seen in web today. The First one is the following Cover picture of the book (See Right), where Firefox was eating the blue e!. Its an intuitive thinking with the double meaning. ie = e! and the word Blue E matching ie icon.. When I see this cover, the thing that immediately pops in my mind is that. Mr. Project , a perfect opensource competitor of Ms Project . Microsoft Project or Miss Project. I have seen many instances where Microsoft Often refferred as Miss (Ms). I think she is planning to marry Yahoo to stand against mighty Google.. Lets wait and see.. The next one, is about Firefox 3 which is available in alpha 4. Firefox 3 has heightened my expectation because of its new functionality called FUEL ( Firefox User Extension Language) which seems to reduce the amount of time in developing addon. Already, there ...

New Seven Wonders & Taj Mahal

Oh my god! Save me from mails.. Nowadays, I was recieving umpteen fwds a week which was motivating an Indian to vote for Taj Mahal which is currently in 14 th rank. Couple of weeks before, when I received the first mail, i thought of voting for Taj Mahal, went to new7wonders website. The website asks me to register before voting. I was bored and left the website without voting. Later, I realised this is absolutely dump to select wonder by voting like this and it does not reflect the true wonder of the world. One, The person who visited all the listed wonders, was only capable of selecting the wonder. Other people, 99% support their favorite wonder, basically its by geography/culture. Two, SMS/register to vote. This is completely stupid. As there is all possibility for one to make multiple votes. Three, Voting for Taj Mahal, Wait.. Are you sure of the history of Taj Mahal? do you know, Taj mahal is a vedic temple and its not built by Shah Jahan.(try Google search). Even the history ...