Browser Extension
You'll write a small extension that fixes one thing that annoys you on a site you use every day, then hand it to one other person and watch it run in their browser.
About
An extension is a web page that runs inside other people's pages: the same HTML, CSS and JavaScript you already know, plus a manifest that says which sites it may touch. The honest first one does one job on one site, like hiding a sidebar, widening a column, adding a keyboard shortcut or turning a plain tracking number into a link. You load it from a folder on your own disk, so there's nothing to pay and no store review until you want one. Ask for the narrowest permissions you can and collect nothing, because an extension sees everything on the pages it runs on, and the person who installs yours is trusting you with that.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- Three weeks
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- With other people
Requirements
-
1
Write a manifest and a content script that changes one site. Make a folder with a manifest.json (manifest version 3, a name, a version and a content_scripts entry) and a script that changes something you can see, like hiding an element or restyling the main column. Match the script to one site pattern, not every URL. Load it unpacked from the extensions page in Chrome or the debugging page in Firefox. Take a screenshot of the site with your change showing and the extensions page with yours loaded. Photo
-
2
Ask for the narrowest permissions you can explain. Match one host, never all URLs, and add no permission you can't justify in one sentence. If you only change the page, you don't need storage, tabs or network access yet. Open the install dialog or the details page and read what it says the extension can do, because that's what the person installing it will read. Take a screenshot of the permissions block in the manifest with a one-line comment beside each entry. Photo
-
3
Add a popup with one setting that survives a restart. An action popup is an ordinary HTML page with a checkbox or a text field in it. Save the value with the storage API, read it in the content script before you change anything, and make the setting do something visible on the page. Film toggling the setting, restarting the browser and seeing it hold. Video
-
4
Cope with a page that fills in after it loads. Most sites render the part you care about after the first paint, so the element your script looks for often isn't there yet. Watch for it with a MutationObserver and stop observing once the job is done, rather than guessing with a timer. Test it on content that arrives late, like a feed that loads more as you scroll. Take a screenshot of the observer code next to your change applied to late-loaded content. Photo
-
5
Make it run in a second browser. Chrome and Firefox read nearly the same manifest, and the differences are small: an id under browser_specific_settings for Firefox, and the background script key if you use one. Install it in whichever browser you didn't start with and fix whatever breaks. Take a screenshot of the extension running in both browsers. Photo
-
6
Give it to one person and watch them install it. Zip the folder with a three-step README, or publish it (Firefox Add-ons is free, and the Chrome Web Store charges a one-time 5 dollar developer fee). Sit with them while they install it and use it on the site it's for, and write down the first thing they ask, because that's your next fix. Take a screenshot of it running in their browser, or film the install. Photo or video