Where do I put my main code, in background.html,or popup.html,or eventPage.js or other?
Some info on my Extension : My extension works to calculate the percentage of marks for our college semester results. We have our college results site and it doesn't display the percentage of total marks obtained.I'd like to build an extension for that.
1)I used 'Page Action' in my manifest.json file, since it is only on a specific site, my extension works. 2)The popup.html has the UI to display the percentage.
But what about background.html, eventPage.js and other pages. I think I also need contentScript.js since I'm accessing the result's page's html.
Where do I put my JavaScript code( I wrote JS code to obtain values from the table and calculate % ) ??
Any brief Idea or outline about which pages I need and what code should I put into them would we highly useful to me. I'm dumbstruck on this work and can't find any way out.
Looking for some help and guidance. Thanks in advance!