
window.oncontextmenu = function() {return false;};


/**
 * Disables context menus, including those initiated by a right click.
 */
function disableRightClick() {
  window.addEventListener('oncontextmenu', function() {
    return false;
  }, true);
}

disableRightClick();

Add JSDoc and use addEventListener
no_right_click: Add JSDoc and use addEventListener
