Wanna Code?…Updated.Done.



Requirement: As I had mentioned in one of my earlier posts - Url Shortners and redirectors are in rage these days. However they can easily be used for malicious reasons. i.e. Masking the end site and fooling you to believe that you are going to a good site while it takes you to a bad site and does bad things to your litle PC.

Solution: Enable Previews on Tinyurl. So this takes you to an intermediate page where it shows the url where it is redirecting you to and then on a mouse click takes you further.

Problem: Most of the links that you click on, usually are from your immediate friends’ circle and can be trusted. So ideally you dont want to be taken to a middle preview page for these good sites.

Solution: Tinyurl.com should ideally have a white-list of domain names, specified by you, which are deemed safe and no preview should be needed for these domains. For e.g. when a request for redirection comes to http://kaisertalk.in you might want to let tinyurl know that Sathya is a good guy and I can trust my browser on his domain. Disable previews only for http://kaisertalk.in/*

Implementation: In the absence of such a feature at tinyurl.com, I want you to write a simple Grease Monkey script which examine the intermediate page and upon finding that it redirects to a list of good urls - Allow you to visit that site without a new click being made.

Your time starts now…

Update: Done…Have created a simple greasemonkey script. You can install it from http://userscripts.org/scripts/show/44283

How do you customize it? Edit the user.js file and add lines for every site that you want to bypass… e.g. whiteList[9]=”ibnlive.com”

Comments

Good job!
Maga.. if you install twitterfox, it shows the actual url in the form of a hover text over the tinyurl link. try it.

Posted by Praveen | March 15th, 2009 à 3:14 pm



@Praveen http://naan.net/svn/trunk/twitternotifier/content/twitternotifier.js check this file … it has the code which does it…check the createanchor… function

Sathya

Posted by Sathya | March 15th, 2009 à 5:08 pm



you may find the following firefox extension handy:

http://www.longurlplease.com/

Posted by Arup | March 30th, 2009 à 10:28 am



Good post.

I remember you asking me during one of our int.

Posted by Gin | November 19th, 2009 à 6:50 pm



Post your comment
Username *
Website
Comment

Please Note: Your comment will be under moderation. Don't resubmit please. Thank you.