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

3 x 9 = 3... Dyscalculia

If you think this blog is about new theory explaining how 3 x 9 equals 3, you are wrong. Bindaaz. If you really interested in learning how 3 x9 equals 3, watch the movie "Taare Zameen Par" and here goes a mixture of my learnings and the review of the movie. When I read the sub title of the movie "Every Child is Special", I thought why only the child is special, its everything in the world is special. Later I consoled myself that it was a movie about child, so it has to be like that. if Aamir Khan (or any well established person) is not there in this movie, I am sure that this would be a another documentary movie gone unnoticed. The presence of Aamir Khan in this movie makes it a commercial one. When I say "documentary movie", please dont imagine, that I am underrating the movie. Most of the documentary movies were master stroke, but its sad that they always fail to win in the commercial market. Another interesting point I have noticed is that, this movie...

The Cheat Sheet (TCS)

What is a Cheat Sheet? A cheat sheet is a single sheet of reference that gives details in very high level. It is often used as a programmer's quick reference of functions. Creating the cheat sheet is the best way of learning and it would be very helpful for preparing exams as well. For sample reference of Cheat Sheets.. Javascript CSS Where can i get cheat sheet in Net? There were around thousands of cheatsheets available in Internet in Techcheatsheets (TCS) and it was a really good compilation. In Vertrigo website, one can find cheat sheets for PHP, MySQL, Html Entities, apache mod_rewrite, RGB Hex and VBScript (asp) developed by Jack Daniels . What is the advantage of using a cheat Sheet? Time is saved. As a human, we ought to forget the some syntax of function (sometimes spelling). Now, I can realize.. how much amount of time would be saved if I have this cheat sheet in my hand (the wasted time includes googling). neway, Lets keep moving forward.. Imitating and Improving, ...

தீபாவளி நல்வாழ்த்துகள்

டம் டமால் .. டும் டுமில்.. சத்தம் கேட்டுச்சா... தீபாவளி கொண்டாடுங்க!! சும்மா வெடி வெடிங்க!! பட்.. பாதுகாப்பு.. ரொம்ப அவசியம்.. டேக் கெர்..