I want to modify the contents of event
objects in a userscript.
Specifically, I want to do this simple operation:
if (event.metaKey) event.ctrlKey = true;
i.e., If my script is running on a page that uses jQuery, events that are used by that instance of jQuery will register a cmd key press as a ctrl key press.
Is what I'm thinking of even possible? If so, how can I redefine how jQuery creates event objects?