The Roots Search Chrome Extension connects popular genealogy websites by providing search links when viewing records or people. For example, when viewing a person in your tree on FamilySearch, this extension will add links to the page for searching for that same person on Ancestry, WeRelate, FamilySearch itself, and more. This removes the need to copy and paste lots of information when searching on multiple websites.
Install the latest release in the Chrome Web Store.
To install the latest development from source:
- Download the zip file from github and unzip it.
- Open the Extensions window in Chrome (chrome://chrome/extensions/).
- Check the box labeled "Developer mode".
- Click the button labeled "Load unpacked extension...".
- Select the folder where you unzipped the files.
There are two ways a site can be supported: a widget or a search link.
Widgets pull information off of a web page and populate the search form.
- Create a copy of
widgets/widget-example.js
and rename it to something that is appropriate for your widget. Names usually include the name of the site which it operates on as well as the context. For example:werelate-person-search.js
. - Follow instructions in
widget-example.js
to gather data (through scraping or an API) and create a person data object which matches the gen-search schema which is sent to the background page - Add your widget's js file and optional css file to
manifest.json
- Add an object to the
content_scripts
array for your widget (you might start by copying the object for another widget) - Add your js file to the js array
- Configure the matches string so that the js file is only injected on sites where it operate
- Add the same match strings from the previous step to the
permissions
array near the top of the manifest as well as thematches
array for the firstcontent_scripts
object that injects the roots search controller - Read more about configuring content scripts
- Reload the widget from the
chrome://extensions
page and test it - Submit a pull request to share your new widget
- Submit a pull request to gen-search.
- When the pull request has been accepted, add the site to the site list in background.js or create an issue to request that we update gensearch.
Additional search links will not be added until we implement an options page