MAX30 / killNoRightClick

// ==UserScript==
// @name killNoRightClick
// @description Kill event no right click
// @version 1.0
// @author Max Max
// @license MIT
// @include http://*
// @include https://*
// @match http://*
// @match https://*
// @icon http://pics.smotri.com/cskins/blue/smiles/ai.gif
// @run-at document-end
// @grant none
// ==/UserScript==

////
// global vars
var body, imgList, img, attr, evt = "oncontextmenu"; 

////
// kill event global
document.oncontextmenu = document.body.oncontextmenu = function() { return true }

////
// kill event for body
body = document.body;
attr = body.getAttribute(evt);
if (attr) body.removeAttribute(evt);

////
// kill event for img
imgList = document.getElementsByTagName("img");
for(var i = 0; i < imgList.length; i++) {
	img = imgList[i];
	attr = img.getAttribute(evt);
	if (attr) {
	    img.removeAttribute(evt);
        img.style.border = "1px solid #FF0000";
		img.style.backgroundColor = "yellow";
	} // end if
} // end loop