for mp3 songs free download

indiafreemp3.blogspot.com

indiafreemp3.blogspot.com



Free Mp3 Songs Download

Sunday, April 11, 2010

Enable Right-Click On Any Website (Including Orkut)

There are many websites which prefer to disable right-clicking on web-pages specially images. To do this they normally use one of JavaScript ways.

The most popular way is to add following code to element tag on which you want to disable right-clicking.

oncontextmenu="return false;"

For example, say you have code for an image like below…

Change it to…

Now reason I am posting about this is, popular social networking site Orkut, which I use quite often, started using code like above and disabled right-clicking on album images.

So as usual, we got to do something to get back our right to “right-click”!

GreaseMonkey Script: If you use Firefox and GreaseMonkey, then easiest way to enable right click on any website is to install right to “right-click” script.

JavaScript: If you are not fond of GreaseMonkey, then you can try following JavaScript.

javascript: var items = document.evaluate('//*[@oncontextmenu="return false;"]', document, null, 7 , null); for ( i = 0; i <>

Bookmarklet: You can also use this bookmarklet in Firefox and other standard-compliant browser.

Internet Explorer: If you are an IE user, specially IE 6 then paste following code in address bar and hit enter whenever you stuck. Please note code below is for Orkut only and most likely to break anytime.
javascript: document.getElementById('m').oncontextmenu="";void(0);

Important Note:

From above all solutions, I am planning to take GreaseMonkey solution further. I will add more anti right-clicks hacks soon. As of now this script takes care of most famous way so it should work on many sites.

We can not blindly set “oncontextmenu” attribute to null or “return true” as some sites provides useful functions by overriding browser context-menu. Wordpress, Google docs are some popular examples.

If you find a site where right-click is disabled and this script is failing to work, please leave a comment below with page URL and element description where it failed to work. I will try to update this script ASAP.

Link: Install Right to “Right-Click” Script (How?)

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails