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
- Click Tools -> PageInfo and in the Media Tab you can find the images and click on the image and click “Save As..”
- 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