imdb-rightclick-hack

Was going through the image gallery present in IMDB. Noticed that I could not save the image I was viewing because right-click wasnt working.

There are two ways to save the image in Mozilla Firefox

  1. Click Tools -> PageInfo and in the Media Tab you can find the images and click on the image and click “Save As..”
  2. View the source of the page. Get the image location , copy the url and save the image.

Once one sees the source, one will findout that the contextmenu is being replaced. It looks something like

<img src="imagelocation.jpg" oncontextmenu="return false" />

If its possible for you to change this value in the contextmenu, you can directly get the right-click option enabled. Thinking about the post title, I should have named the title as “How to disable rightclick in Mozilla Firefox ?” . By the way, the code that works removing rightclick in imdb is

javascript:for(i=0;i<document.images.length;i++) if(document.images[i].oncontextmenu)document.images[i].oncontextmenu="";void(0)
 Continue reading 

flickr-hack

Was browsing thru flickr and suddenly thought of saving an image. When I right-click and do ‘Save Image As’, I get the image some spaceball.gif . This was one of the hack which I saw sometime ago for preventing users to directly download the image. I was struck with this idea, how to save the original image ? I got only one option

  • Grease Monkey Script

I started out writing the greasemonkey script and then it suddenly struck to my mind

  • Adblock Plus

Adblock Plus will do something related to my requirement . I just need to block the image from my view.As it is a gif , a transparent one, it wont  effect anything . Just right-click and block the image spaceball.gif and tadaaa.. you are done. From next time on, when ever you load a flickr page, you can directly save it with right-click and ‘Save Image As’ and you are done.

Assuming you are using Mozilla Firefox  and installed the plugin Adblock Plus 

DYK [Did You Know] ? Firefox Campus Edition