Implement sidebar action and make CSS responsive
|1 year ago|
|.github/ISSUE_TEMPLATE||2 years ago|
|dist||1 year ago|
|icons||2 years ago|
|src||1 year ago|
|static||1 year ago|
|.babelrc||2 years ago|
|.eslintrc.js||2 years ago|
|.gitattributes||3 years ago|
|.gitignore||3 years ago|
|LICENSE||3 years ago|
|NOTES.md||2 years ago|
|README.md||2 years ago|
|package-lock.json||2 years ago|
|package.json||2 years ago|
|webpack.common.js||2 years ago|
|webpack.dev.js||2 years ago|
|webpack.prod.js||2 years ago|
|webpack.test.js||2 years ago|
For general usage information, see https://omnibear.com.
After cloning the repository, run
npm install to install dependencies.
npm run build: build into the
npm start: build and automatically watch for changes and rebuild.
npm test: run tests.
npm test -- --watchwill watch for changes and re-run tests every time. If you have issues, make sure you are using node 8.x (the LTS version).
To install in Chrome from the repository:
/distdirectory of the repository
To install in Firefox from the repository:
/distdirectory and select the
Theoretically, this should work in MS Edge, too, but I don’t run Windows so I haven’t tested that out.
Omnibear is run by three scripts:
src/background.js— Runs in a background page. This keeps track of which tab currently has the user’s focus and handles communication between the page script and omnibear popup script.
src/page.js— A content script that runs in all pages (tabs). This highlights selected entries when the user right-clicks them. It alerts the background script whenever its tab receives user focus. And it watches for when the browser navigates to the authentication successful page on omnibear.com.
src/index.js— The main script of the popup page. This is a small webapp built using Preact and MobX that includes the posting form and settings screen.
Authentication details, user settings, and the note draft are stored in Omnibear’s localStorage.