Omnifriend adds a suggestion-based search provider to Chrome's omnibox, allowing searches for friends' profiles on social networks.
This project requires the following libraries:
Batteries are not included - the CSS and JavaScript files need to be placed in a lib
folder with appropriate css
and js
subfolders (check the HTML file for where files are linked to).
Search queries are tested against each friend in the format <name> <username> <id> <network>
, and match if all the characters fit in the given order (e.g. initials, start of email address plus email
for network, first name plus network).
Any CSV export of contacts can be imported. Only name and email fields will be added.
Friends are gathered from the AJAX typeahead API (used to suggest friends' names when tagging), sorted by edge rank.
The current user ID is scraped from the profile link in the mobile menu, then circled users are gathered from the social graph API used when rendering the "your circles" page.
Usernames are pulled from the mates preference page.
Friends are read from /my/friends
, which redirects to the current user's friends list if logged in.
The current session username is scraped from the settings page, then follows are repeatedly read by following cursors to retrieve the next page.