Delete context menu items from code

Hi, is there a way to delete a default item (e.g. the “Open in a new tab” when right-clicking on a anchor element) in the context-menu of a specific html page?

if this is not possible, can you tell me how to show a custom menu, after it has inhibited the displaying of the default by means of “contextmenu” event and “preventDefault”?

It is possible to hide/move context menu items like you would any other element.
There are a few addons that already do that eg: Menu Filter

1 Like

Thanks for the reference