wakatime / browser-wakatime

Chrome extension for automatic time tracking and metrics generated from your browsing activity.
https://wakatime.com
BSD 3-Clause "New" or "Revised" License
401 stars 96 forks source link

Set project based on URL when browsing GitHub, Waffle.io, CircleCi, etc #47

Closed rummik closed 2 weeks ago

rummik commented 8 years ago

Sites like GitHub, BitBucket, Travis-CI, ~Waffle.io~, and CircleCI, can contain the project name in the URL. It would be nice to be able to use that info without exposing the full URL to the WakaTime API

Eeems commented 7 years ago

You can handle this via custom rules. It would be nice if the addon had some more powerful ways of determining what project things should go to.

rummik commented 7 years ago

Custom rules require exposing full URLs to the API, which could be considered a major security risk if the URLs contain session or personal information

alanhamlett commented 7 years ago

We could add the ability to call custom handlers to WakaTimeCore.sendHeartbeat.

Check if custom handler exists for given domain. If one exists, let that custom handler create the heartbeat payload data. Otherwise, use the default project and other heartbeat payload data.

Once custom handlers are working we can start adding custom handlers for any cloud IDE or websites we use.

alanhamlett commented 6 years ago

There's a related conversation in #28. Until project detection from websites improves, custom rules are the only way to set projects for browsing activity.

alanhamlett commented 5 months ago

For Mac, we're building this now into the desktop app. If anyone has a url they want supported please common on https://github.com/wakatime/macos-wakatime/issues/227.