Skip to content

About

Auto-incrementing daily counter Chrome extension (MV3)

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Cycle Counter

A Chrome extension that automatically increments a counter each day based on a configurable daily rate and cycle length.

Version: 1.2.0 · Repository: github.com/B0on/cycle-counter

Default language: English. Japanese is available via the Language selector in the popup.

Chrome Web Store submission is in progress. Listing copy and privacy-tab fields are in docs/STORE_LISTING.md.

Use cases

  • Savings goal progress
  • Workout or study point tracking
  • Game stamina recovery tracking
  • Any counter that resets on a repeating cycle

Features

  • Current value shown on the toolbar badge
  • Popup with current value, elapsed days, and progress bar
  • Customizable daily increment, cycle length, and start date
  • Automatically resets to day 1 when a cycle completes
  • All data stored locally on your device (chrome.storage.local only)

How it works

elapsedDays = floor((now - startDate) / 86400000)
cycleDay    = elapsedDays % cycleLength
currentValue = (cycleDay + 1) × dailyIncrement

Example (daily increment 3.3, cycle length 30 days):

Day Value
Day 1 3.3
Day 2 6.6
Day 30 99.0
Day 31 3.3 (reset)

Install locally (developers)

  1. Open chrome://extensions in Chrome
  2. Enable Developer mode
  3. Click Load unpacked
  4. Select this folder

Build a ZIP for the Chrome Web Store

zip -r cycle-counter.zip . \
  -x "*.git*" \
  -x ".cursor/*" \
  -x "docs/*" \
  -x "README.md" \
  -x "LICENSE" \
  -x "store-screenshots/*" \
  -x "scripts/*" \
  -x "*.zip"

The ZIP must include:

  • manifest.json, _locales/
  • background.js, utils.js, i18n.js
  • popup.html, popup.css, popup.js
  • icons/

Privacy policy

Published at: https://b0on.github.io/cycle-counter/privacy-policy.html

Source: docs/privacy-policy.html

Permissions

Permission Purpose
storage Save settings (daily increment, cycle length, start date, locale)
alarms Refresh the badge hourly and at midnight

No host permissions. No remote code.

Store assets

Screenshots and promotional tiles for the Chrome Web Store live in store-screenshots/:

File Size Purpose
screenshot-en-1280x800.png 1280×800 Primary English listing screenshot
screenshot-en-640x400.png 640×400 English screenshot (small)
screenshot-ja-1280x800.png 1280×800 Japanese locale screenshot
screenshot-ja-640x400.png 640×400 Japanese screenshot (small)
promo-tile-small-440x280.png 440×280 Small promotional tile
promo-tile-marquee-1400x560.png 1400×560 Marquee promotional tile

Regenerate assets with Pillow installed:

python3 scripts/generate_store_screenshots.py

The script composites raw popup captures with branded frames and writes PNGs to store-screenshots/. Source captures live in assets/screenshots/ (popup-en.png, popup-ja.png).

License

MIT

About

Auto-incrementing daily counter Chrome extension (MV3)

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages