Mozilla Public License 2.0

项目介绍

ActivityWatch/aw-watcher-web 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 Mozilla Public License 2.0 许可证,目前获得 575 个 Star、96 次 Fork。

仓库全名
ActivityWatch/aw-watcher-web
开源许可证
Mozilla Public License 2.0
Star 数
575
Fork 数
96
未关闭 Issue
33

README 摘要

aw-watcher-web A cross-browser WebExtension that serves as a web browser watcher for [ActivityWatch][activitywatch]. It enables detailed browser tracking by recording the active tab's title, URL, audible state, and incognito state. Without it, ActivityWatch can usually only see the browser window title from desktop window watchers. On Chromium browsers, grouped tabs also include optional tabgroup (the group name,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

aw-watcher-web 用什么语言开发?

主要使用 TypeScript 编写,采用 Mozilla Public License 2.0 许可证,目前有 575 个 Star。

aw-watcher-web 可以免费商用吗?

仓库标注的许可证为 Mozilla Public License 2.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 aw-watcher-web 的源码?

可以直接克隆仓库:git clone https://github.com/ActivityWatch/aw-watcher-web.git,默认分支为 master;安装与运行步骤见仓库 README。

aw-watcher-web 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 33 个未关闭 Issue;Star 数为 575,可作为社区活跃度的参考。

关于

Browser watcher for ActivityWatch

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
776
价值分
373
活跃状态
活跃

语言占比

CSS
HTML
JavaScript
Makefile
TypeScript

Release

README

aw-watcher-web

Chrome Web Store Mozilla Add-on

A cross-browser WebExtension that serves as a web browser watcher for ActivityWatch.

It enables detailed browser tracking by recording the active tab’s title, URL, audible state, and incognito state. Without it, ActivityWatch can usually only see the browser window title from desktop window watchers.

On Chromium browsers, grouped tabs also include optional tab_group (the group name, including an empty name) and tab_group_color fields. This uses the tabGroups permission. Ungrouped tabs and browsers without that API omit both fields. Group names and colors are sampled with each heartbeat, so renaming a group appears by the next normal heartbeat; moving a tab between groups also triggers an update. As with tab titles and URLs, group names may contain sensitive information and are recorded in your local ActivityWatch data. These fields capture context only: they do not automatically create categories or task reports.

Learn more: Watchers • Architecture • Buckets and events

Installation

Official Releases

Install from official stores:

Development Build

Download the latest development build from our GitHub Actions:

  1. Click on the latest successful workflow run
  2. Scroll down to “Artifacts”
  3. Download either firefox.zip or chrome.zip
Note 注意
  • GitHub login is required to download artifacts
  • These builds are unsigned and require developer mode/settings

Firefox Enterprise Policy

Note 注意

Due to Mozilla Add-on Policy, this is not possible with the Mozilla-hosted versions of the extension. You will need to fork the extension and change a hardcoded value to make this work.

Due to the above issue, a privacy notice must be displayed to comply with the Mozilla Add-on Policy. This can be pre-accepted by setting the following Firefox Enterprise Policy (More about Firefox Policies):

{
    "policies": {
        "3rdparty": {
            "Extensions": {
                "{ef87d84c-2127-493f-b952-5b4e744245bc}": {
                    "consentOfflineDataCollection": true
                }
            }
        }
    }
}

Building from Source

Prerequisites

  • Node.js (23 or higher)
  • Git
  • Make

Build Steps

  1. Clone the repository with submodules:
git clone --recurse-submodules https://github.com/ActivityWatch/aw-watcher-web.git
cd aw-watcher-web
  1. Install dependencies:
make install
  1. Build the extension:
# For Firefox:
make build-firefox

# For Chrome:
make build-chrome

This will create zip files in the artifacts directory:

  • artifacts/firefox.zip for Firefox
  • artifacts/chrome.zip for Chrome

if you want to build safari version

  1. First follow the steps above to build the extension:
make install
make build-safari
  1. Convert the extension to Safari format:
xcrun safari-web-extension-converter ./build

after finished, xcode will open automatically.

  1. In Xcode:
  • Select build target of macOS
  • Build the project (⌘B)
  • Run the extension (⌘R)
  1. Enable the extension in Safari:
    • Open Safari
    • Go to Safari > Settings > Extensions
    • Enable “aw-watcher-web”
Note 注意
  • You need Xcode installed to build Safari extensions
  • The extension needs to be signed with your Apple Developer account
  • Safari extensions require macOS 11.0 or later

Installing the Development Build

Chrome
  1. Extract artifacts/chrome.zip to a folder
  2. Go to chrome://extensions
  3. Enable “Developer mode”
  4. Click “Load unpacked” and select the extracted folder
Firefox
  1. Go to about:addons
  2. Click the gear icon (⚙️) and select “Install Add-on From File…”
  3. Navigate to and select the artifacts/firefox.zip file

[!NOTE] For Firefox, installing unsigned extensions requires Firefox Developer Edition or Nightly. In Firefox Developer Edition, you need to set xpinstall.signatures.required to false in about:config.

评论

暂无评论