How to Copy a Picture That Won't Allow You to Right Click

Save

The Internet contains millions of pictures that you can copy for free. Browsers have context menus that allow you right-click image files and save them to your hard drive. To prevent this from happening, some Web developers use JavaScript functions to protect their images. When you right-click such a page, a message will tell you that the right-click is disabled. You can bypass that message and save any picture that you like by using your own JavaScript function.

  • Visit a website that prevents you from right-clicking a picture.

  • Copy the following JavaScript code:

    javascript:function $vrc$$() {

    document.onclick=null; document.oncontextmenu=null; document.onmousedown=null;document.onmouseup = null;

    }

    void ($vrc$$());

  • Click the URL in your browser's address bar. The browser will highlight the URL.

  • Right-click the highlighted URL and select "Paste." Windows will paste the text into the address bar.

  • Press "Enter." The browser will execute the JavaScript command.

  • Right-click any picture on the Web page and select "Save" to save the picture.

  • Press "F5" to refresh the page.

Tips & Warnings

  • The JavaScript code temporarily deactivates the Web page's mouse events. Pressing "F5" reloads the page and restores the page to normal. Save the JavaScript code so that you can paste it again when you need it. You can also store it in a browser bookmarklet. This will allow you to access it quickly.

References

  • Photo Credit Katrina Wittkamp/Stockbyte/Getty Images
Promoted By Zergnet

Comments

Resources

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!