firefox

References

Summary

Customization

You can customize the look of firefox (in ways that it won't let you otherwise) by editing

Storage

Firefox has 2 types of storage:

  1. browser.storage.sync
  2. browser.storage.local

Editing Stored Data

You can't edit stored data directly on your machine, but you can export it to, for example, a json file, and then edit it

Extensions

Firefox extensions have 2 pieces:

  1. manifest.json
  2. Content scripts

Manifest

Every extension has to include this file

The mandatory keys in this file are

permissions:

background: a list of any background scripts that are run by the app

"background": {
  "scripts": ["background.js"]
}

content_scripts: tells the browser to load specified content scripts

action: an action button that gets added to the toolbar

Gecko

The rendering engine of Firefox

Id

My Extensions

Resume Auto-fill

I wanted to make my own resume auto-filler extension. I tried SpeedyApply, but there were a few things I didn't like about it.

  1. Logic

    1. Search: Scan the DOM for appropriate tags
    2. Interpret: Use regex or keyword matching to figure out what a field wants
    3. Fill: Set the .value of those fields and trigger input or change events, so the site knows it's been updated
  2. Things to be aware of

    Shadow DOMS

    Dynamic Loading

  3. Changes from SpeedyApply

    I can set a custom keybinding to make the auto-fill trigger precisely when I want, instead of having the extension automatically fill every time

    I don't have to pay for multiple profiles

    If you manually fill out any part of an application, you can scrape it and save it as part of a profile