I'm trying to impersonate user clicks and mouse movements using a Chrome extension.
For example:
In my content script there is a button click.
document.querySelector("SOME_SELECTOR").click();
This line triggers a click event with the following property:
MouseEvent {isTrusted: false}
How to trigger a MouseEvent where the isTrusted property will be true?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…