Skip to content

Site Rules & Auto-Capture

Site Rules control which websites Context Bro auto-captures and how it captures them. Each rule defines a group of domains with its own template, endpoints, capture mode, and dedup settings.

Manual sharing (popup, shortcut, context menu) works on any domain regardless of Site Rules.

  1. Go to Settings → Sites
  2. Enter a name (e.g. “SNS”, “Dev”, “News”) and click Add
  3. Add domain patterns, select a template, and choose endpoints

Each rule contains one or more domain patterns (one per line):

PatternMatches
github.comExact domain
*.github.comAll subdomains (gist.github.com, docs.github.com, etc.)
news.ycombinator.comExact subdomain

Click a preset button to quickly create a rule with a curated group of domains:

PresetDomains
Devgithub.com, stackoverflow.com, developer.mozilla.org, etc.
Newsreuters.com, bbc.com, cnn.com, nytimes.com, etc.
Socialreddit.com, twitter.com, mastodon.social, etc.
Streamingtwitch.tv, youtube.com

Each rule can bind to a specific template and one or more endpoints. When auto-capture triggers for that rule, it uses the bound template and sends to the selected endpoints.

Enable the Auto-capture toggle on a rule to have Context Bro automatically extract and send page content. Choose between two capture modes:

Best for pages you’re actively reading — articles, feeds, dashboards.

BehaviorDescription
TriggerYou navigate to or focus a tab matching the rule
DwellWaits 10 seconds to ensure the page has loaded
CaptureExtracts content once after dwell
RefetchOptionally re-extracts at a configurable interval (see below)
StopsWhen you switch away from the tab or close it

This mode is event-driven — it only runs while you’re actively viewing a matching page.

Best for background monitoring — keeping tabs open that you want periodically captured.

BehaviorDescription
TriggerChrome Alarm fires at the configured interval
ScopeAll open tabs matching the rule’s patterns
IntervalConfigurable (minutes or hours)
CaptureExtracts content from every matching tab each cycle

This mode uses the Chrome Alarms API and runs even when the tabs are in the background.

Refetch extends focused mode for slowly-changing pages — feeds (HN, Reddit, Twitter), dashboards, monitoring pages, or any content that updates over minutes or hours.

Without refetch, focused mode captures once after the 10-second dwell and stops. With refetch enabled, it continues re-extracting at your configured interval while you stay on the page.

Refetch controls appear when a rule has Auto-capture enabled and When focused mode selected:

⊙ Auto-capture [When focused ▾]
☑ Refetch [30] [sec ▾]
☑ Dedup [15] [min ▾]
SettingRangeDefault
Refetch interval10 seconds – 1 hour60 seconds
  1. You focus a tab matching a focused-mode rule
  2. After 10s dwell, initial content is extracted and sent
  3. A setInterval timer starts at your configured refetch interval
  4. Each tick re-extracts the page content
  5. Dedup checks if content has actually changed before sending
  6. Timer stops when you switch away, navigate, or close the tab

Refetch and dedup work together to minimize unnecessary API calls:

ScenarioResult
Page unchanged, within dedup windowSkip — no API call
Page content changedSend — new content detected
Dedup window expired (even if same content)Send — acts as a periodic heartbeat

Each rule has its own dedup toggle and configurable window. When enabled, Context Bro computes a SHA-256 hash of the extracted content. If the content hasn’t changed since the last send within the dedup window, it skips the send.

SettingRangeDefault
Dedup windowSeconds, minutes, or hours15 minutes

Hashes are stored locally in chrome.storage.local. They are cleared when you clear extension data or uninstall.