Skip to content

buggythepirate/browser-extension

 
 

Repository files navigation

Clockify extension for Chrome and Firefox

Add Clockify one-click time tracking button to popular web tools.

About Clockify → List of integrations →

Adding integration

Want to create an integration or improve an existing one? Awesome! Just fork the repo, make your changes, and send us a pull request.

Adding your tool is super easy and quick. You need basic web programming skills (HTML, Javascript, Git) and can be done in a couple of hours.

Something needs fixing?

Create an issue here on Github.

Our team will take a look once we get the chance, but that may take a few weeks or more (depending on our workload).

If you need the fix quicker, feel free to update the integration yourself and send us a pull request. We typically take care of them within a few days, meaning your fix can sometimes go live within the same week.

Setup

  1. Make sure you have Node, NPM, Ruby, and Compass installed on your system
  2. Clone the repository git clone [email protected]:clockify/browser-extension.git
  3. Run npm install

Loading and testing

Chrome extension

  1. Build Chrome extension by running npm run compile.dev.chrome
  2. Navigate to chrome://extensions/
  3. Enable "Developer mode" (located in the top right corner)
  4. Click "Load unpacked" and select the www/chrome.dev/ folder that you've built

Firefox extension

  1. Build Firefox add-on by running npm run compile.dev.firefox
  2. Navigate to about:debugging
  3. Click "Load Temporary Add-on"
  4. Select the www/firefox.dev/manifest.json file

Adding a new tool

Add the url of the new tool in /src/integrations/integrations.json. Then, create a /src/integrations/myapp.js file. It in, define where the button appears and from which element it needs to pick up the description field.

When the extension recognizes that you're on that url, it will load the necessary script.

If you need an example, you can see how Trello is implemented.

Use createButton() so both the icon and "Start timer" is displayed. If there's not enough space, you can use createSmallButton (so only the icon is displayed).

Before sending us a pull request, make sure you test it in both Chrome and Firefox.

About

Clockify Browser Extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.1%
  • CSS 15.1%
  • Other 0.8%