Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cennik

Cennik (from Russian «ценник» — price tag) is a Firefox extension that tracks product prices across Wildberries, Ozon, and any online store. Honest price history, browser notifications, and optional Telegram alerts via your own bot. All data stays on your device.

Русская версия ниже

Features

  • Wildberries & Ozon — dedicated integrations with on-page «Track price» button
  • Any store — schema.org, microdata, meta tags, SPA state, DOM heuristics
  • Eyedropper — click the price on tricky sites; CSS selector is saved for background checks
  • Price history — charts, min/max/average, target price with progress bar
  • Notifications — browser + Telegram (your bot token, stored locally)
  • Product page — folders, favorites, search, sort, bulk actions, drag & drop
  • Privacy — no accounts, no cloud; export/import JSON

How checks work

Most stores are checked with plain background requests. Some SPA / anti-bot stores (e.g. AliExpress) can't be read that way — for them Cennik briefly opens a background tab, reads the rendered price, and closes the tab. Tabs open one at a time with pauses between requests to the same store; this is expected behavior, not a bug.

Install

Firefox: Cennik on addons.mozilla.org (link goes live after review)

Development

  1. Clone the repo
  2. Firefox → about:debuggingThis FirefoxLoad Temporary Add-on
  3. Select cennik/manifest.json

Build release zip

npx web-ext build --source-dir cennik --artifacts-dir dist --overwrite-dest

Chrome (MV3) — development build

Firefox stays in cennik/ (MV2). Chrome uses the same source plus a thin wrapper:

.\build-chrome.ps1

Then Chromechrome://extensionsLoad unpackeddist-chrome/.

background.js is shared. Chrome runs it as a service worker via sw.js; storage.session keeps pending checks and notification URLs across worker restarts. Web stores without DOMParser in the worker fall back to the background-tab path automatically.

Regenerate PNG icons after editing icons/icon.svg:

node scripts/gen-icons.mjs

Language

UI follows your Firefox language (Russian or English). Set Firefox to Settings → Language to switch.

Privacy

  • Product URLs, prices, history, and settings are stored in browser.storage.local only
  • Telegram: the extension calls api.telegram.org with your bot token when you enable it
  • Price checks fetch store pages/APIs from your browser (with your cookies where needed)

Project structure

cennik/
  manifest.json       Extension manifest
  background.js       Price checks, alarms, notifications
  _locales/           en + ru UI strings
  lib/i18n.js         i18n helpers
  popup/              Toolbar popup
  page/               Full product manager page
  content/            Per-site content scripts (WB, Ozon, generic)

License

GPL-3.0 — see LICENSE.


Cennik (RU) {#cennik-ru}

Cennik — расширение для Firefox: следит за ценами на Wildberries, Ozon и в любых магазинах. Честная история, уведомления в браузере и опционально в Telegram через твоего бота. Все данные только на устройстве.

Возможности

  • WB и Ozon — свои интеграции, кнопка «Следить за ценой» на странице
  • Любой магазин — schema.org, микроразметка, мета-теги, SPA, эвристики по DOM
  • Пипетка — клик по цене на сложных сайтах
  • История и графики — целевая цена, папки, избранное, мультивыбор
  • Приватность — без аккаунтов и облака; экспорт JSON

Как работают проверки

Большинство магазинов проверяются обычными фоновыми запросами. Некоторые SPA-магазины с антиботом (например, AliExpress) так не прочитать — для них Cennik ненадолго открывает фоновую вкладку, читает цену и закрывает её. Вкладки открываются по одной, с паузами между запросами к одному магазину — это нормальное поведение, а не баг.

Установка

Firefox: Cennik на addons.mozilla.org (ссылка заработает после ревью)

Для разработки: about:debuggingЭтот FirefoxЗагрузить временное дополнениеcennik/manifest.json.

Язык интерфейса

Зависит от языка Firefox (Настройки → Язык): русский или английский.

Лицензия

GPL-3.0 — см. LICENSE.

About

Price tracker for Wildberries, Ozon & any store. Local history, charts, browser & Telegram alerts. Firefox + Chrome. No cloud.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages