Click to install this script

Enable Context Menu

  • Added: May 11, 2008
  • Last Updated: May 11, 2008

File Name: enable_context.user.js

Click to hide sectionDescription

Copying images isn't cool. Stealing images and using them for personal gain — and that includes eBay — is bad. But you know what's even more uncool? Websites that use Javascript to disable the context menu. It's pointless, because there are so many ways around it. I keep an internal database (something like Mediaman and Libra, only not) of all my media, and I need pictures for that database. It's infurating when the publisher (yeah, Marvel, I'm lookin' at you) has a fancy picture, but tries to prevent me from getting it.

Since I'm not a big fan of scripts that include everything and use exclude (it makes me nervous), this script just "includes" nailgal.com and marvel.com. by default. However, you can easily add more. Just follow the tutorial here, but add to the "included" pages instead of "excluded".

Click to hide sectionScript Source

// ==UserScript== // @name Enable Context Menu // @description Restore context menus on specific sites that try to disable them // @namespace http://www.orbona.com/greasemonkey/ // @include http://nailgal.com/* // @include http://www.nailgal.com/* // @include http://marvel.com/* // @include http://www.marvel.com/* // ==/UserScript== function doIt() { unsafeWindow.document.onmousedown = null; unsafeWindow.onmousedown = null; unsafeWindow.document.oncontextmenu = null; unsafeWindow.oncontextmenu = null; if (document.all) { allElemsCount = document.all.length; for (var i = 0;i < allElemsCount;i++) { document.all[i].setAttribute("oncontextmenu", "return true;"); document.all[i].setAttribute("onmousedown", "return true;"); document.all[i].setAttribute("onmouseup", "return true;"); } } else { allElems = document.getElementsByTagName('*'); allElemsCount = allElems.length; for (var i = 0;i < allElemsCount;i++) { allElems[i].setAttribute("oncontextmenu", "return true;"); allElems[i].setAttribute("onmousedown", "return true;"); allElems[i].setAttribute("onmouseup", "return true;"); } } } window.addEventListener("load", function() { doIt(); }, false);