It lives in its own little world and can only interact with other pages and scripts using the chrome.* apis. In it you can set up various event listeners and such depending on what you want it to do. It isn't required, but in order to do most extension things, you need one. The background script is where your extension lives. I will start with making the purpose of each kind of page/script more clear.įirst is the background page/script. Search.js content page injected > popup.htmlĪnd maybe a short bit about how injection works in chrome extensions(IE, do I only need to specify that it is content page in manifest.json to have it injected or is there more work to it)/expected behavior?Īpologies for the jumbled thoughts/question/possibly missing the things relevant to my questions while reading the manual. I don't need a walk through or full answer, just a little help visualizing how Chrome extensions work, or at minimum how I should set mine up in relation to page interaction IE: HOW TO SEARCH A PAGE FOR A WORD IN CHROME HOW TOI know I need to know how to use the messaging API, is it going to be required for page search and highlighting? Summary: I need to read up on the messaging API for Chrome Extensions. I know how to search for text on a page, and replace it or change its style etc. I know one is constantly running vs injected, but that's as much as I got from the chrome extension manual, I still don't quite understand if the content script/page is seperate from the popup.html for example and what the difference between a script in the popup.html vs content page/script is. What I still don't understand after reading:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |