For this lab you will build two Chrome extensions.
- Part A: An extension that uses content scripts to modify the content of a web page in some way.
- Part B: An extension that enables users to quickly look up information on Wikipedia. This extension should add a new right-click menu option that appears when the user highlights some text (similar to the "Search on Google" option that appears now). When they select this option, the extension should launch a new tab in Chrome and load the matching wikipedia page.
- Chrome Extension samples, http://developer.chrome.com/extensions/samples.html
- Copy the files in this repository to your computer. Note that the 'googlebig' and 'gifcubby' examples are only included for your reference.
- For both Part A and B:
- Finish the
manifest.json
file for the extension. - Edit
script.js
. Further instructions are inside this file.
- Finish the
- When you are ready to test your extension, add it to Chrome with these steps:
- Open the Chrome menu, click Tools > Extensions.
- Click Load Unpacked Extension.
- Navigate to the location where you have stored this lab and select the folder for PartA or PartB.