Answer the question
In order to leave comments, you need to log in
How to change the isTrusted property of an event to true?
Is it possible to programmatically simulate a user click
using the API from Google Chrome extensions ?
Task: click on the button with a script from the extension so that the target site sees a positive event.isTrusted .
If a solution exists and you read about it at least out of the corner of your eye, please give me a lead to search.
Answer the question
In order to leave comments, you need to log in
It is forbidden. Mouse and keyboard input - clear signals from specific HID devices connected to the PC. And JS .. well, this is trying to deceive the browser with its own methods.
Put the focus on the click / input component, make a request to the out-of-browser software "press the mouse button", "enter text", and it's not a fact that it will work. I don't know how the browser removes mouse / keyboard interaction, maybe different from the regular way of all other applications.
Google Chrome extensions have access to the DOM, can't you just click? like document.getElementById('amazing id').click();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question