For the project I’m currently working on, I need to know if it is possible to invoke a Chrome extension.
I.e., clicking on a button (or a link) on my page would call the “Read It” extension, something like that.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can inject your
content-scriptto every page (register it in extension manifest) and alter the page html to add yourbuttonorawith your custom id.The execution environment example explains it pretty good how you will trigger an event from the page to your content script. After you manage the trigger you can do anything you want as the extension logic.
Also keep in mind that this will require your extension’s
content-scriptto be injected to every page the user visits. It is not possible to actually trigger the execution of yourcontent-scriptfrom the page if thats what you were asking.