Page Monitor

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Page Monitor.zip436.2 KBLast Updated: November 27, 2026Vivaldi

Page Monitor watches a region of a web page you pick, such as a price, a stock notice or a table, and tells you when it actually changes: not when an ad rotates or a view counter ticks over. Checks run on a schedule inside your browser, so they work on pages you’re signed in to. It works in Vivaldi, Chrome, Edge, Brave and other Chromium browsers (116 or later).

The watch list: four watches with their last run, how each page is loaded, the schedule and the text each one is holding
On this page

Install

  1. Open vivaldi://extensions (or chrome://extensions) and turn on Developer mode.
  2. Click Load unpacked and pick this folder.
  3. Pin the icon to the toolbar, since the picker starts from it.

After changing a file in src/background/ or src/lib/, press the reload arrow on the extension’s card.
Changes to the popup or management page take effect the next time you open them.

Using it

Open a page you care about, click the Page Monitor button, then Watch a region of this page. The browser asks for permission to read that site, then the picker takes over the page.
Reopen the popup afterwards to name the watch and set how often it runs.
To watch a whole page without picking a region, use Add by URL on the management page (right-click the icon and choose Options, or Manage in the popup).

Nothing runs while the browser is closed. A check that fell due while it was shut runs at the next start. If that matters, a server-side watcher such as changedetection.io is the better tool.

Picking a region

  • Hover to highlight, click to lock a region in.
  • ↑ widens to the parent, ↓ narrows into a child, ← → move between siblings.
  • Backspace undoes the last move, however far you’ve wandered, and Home returns to where you clicked.
  • Enter confirms, Esc cancels.
  • Hold Alt (Option on a Mac) to click the page itself instead, for example to reopen a modal.

A click usually lands on a small nested element when you meant the card around it, so the arrow keys are the part that matters. The picker swallows ordinary clicks so choosing a region can’t navigate away. The bar can be moved to the top of the window with the ⇅ button.

Page Monitor stores up to six ranked selectors for each region (a stable id, a test hook such as data-testid, an aria-label, stable classes, an anchored path, then a full path) and tries them in order, so a small redesign doesn’t break the watch. It also stores a fingerprint of the region’s words. If a selector still matches but the words no longer overlap, the watch reports Region may have moved instead of a bogus change.

Several regions in one watch

A watch can read several regions of the same page, so a product’s price and stock notice cost one page load. Regions are joined under their labels ([Price], [Stock]) into one text and one diff, and a region that stops resolving names itself. Add, rename, reselect and remove regions from the watch’s own page.

How a page is loaded

Each watch has one load setting, cheapest first:

Mode What it does
Automatically (default) A background request, moving to a hidden tab if the region isn’t in the raw HTML. Remembers which worked, and the watch list says which one it settled on
Background request, no page Fetches the HTML. Can’t see anything drawn by JavaScript
Hidden tab A background tab, loaded plainly
Hidden tab, told it’s on screen As above, but the page is told it’s visible and gets animation frames, for sites that won’t render in the background
Foreground tab A real tab in your window, switched to and back. Takes focus for the check
Separate window An unfocused window, maximized by default. Never takes focus

Automatically only ever chooses between the two invisible options; it never puts a page on screen without being asked. Watches with recorded steps and hash-routed addresses (#/orders/5) always use a tab.

Use a tab for anything signed in, location-specific or locale-specific. Cookie sessions work in background requests, but tokens kept in the page’s localStorage, headers set by its JavaScript and the Geolocation API only work in a tab. Background requests send your browser’s own Accept-Language and If-None-Match / If-Modified-Since, so an unchanged page costs a 304.

What counts as a change

Each watch chooses what to compare:

  • Visible text only (default). Markup is ignored, so a redeploy that only changes class names stays invisible.
  • Visible text and control state. Adds attributes like disabled, checked and aria-expanded, and state-like classes (out-of-stock, is-*), so a Buy button going disabled shows as Add to cart [button disabled].
  • Alt text only. Compares alt, aria-label, title and SVG names, for pages that say things with pictures: swatches, ratings, availability ticks.
  • The full HTML of the region. Catches anything, including a lot you won’t care about. Expect to add ignored attributes.
    HTML is shown rendered by default, in a sandboxed frame that runs no scripts and loads nothing, with a Markup / Rendered switch.

Class names that carry meaning lists classes a site uses for state (no-stock, oos). State mode counts them, the rendered view outlines them, and a change reads no-stock appeared. Only plain class names are accepted.

Also per watch: ignore patterns (regular expressions removed before comparing, for counters and timestamps), a minimum change size in characters, and whether link and image addresses count. Changes show as a line diff with the changed words highlighted. Changing any of these settings takes a fresh baseline instead of reporting the difference as a change.

Steps before reading

Some regions only appear after a choice: a size picked, a panel expanded, a tab opened. Press Need to click first? in the picker (or Record steps on an existing watch), use the page normally, then press Done and pick the region. Every step replays before every check.

  • A watch with steps always loads a tab.
  • Record only what reveals the region. Recording “Add to cart” means adding to cart on a schedule.
  • Typed text is recorded as the field’s final value. Passwords, card numbers, one-time codes and similar fields are never recorded. Other values you type are stored in the watch’s settings.
  • Steps can be removed one at a time from the watch’s page.
  • Watch the steps run replays the steps visibly, outlining each one, and stops where the recording breaks: a missing element, a dropdown option that’s gone, or a region that isn’t there after all.
  • A failed step is reported as itself (Step 2 of 4 failed: Click Blue) and never overwrites the last good snapshot.

The watch list, changes and run history

Each row shows how the last run ended, when, how the page was loaded, the schedule, the next run and the first line of the text it’s holding (Show text opens all of it). Watches can be tagged, searched, sorted and filtered. Duplicate on a watch’s page copies its settings, not its history.

The Changes page lists every change across watches, with an Open page link and the before and after side by side. Each watch’s page also keeps a run log of every check (capped at 50 by default), so a watch that stopped running can be told from one that found nothing. Runs started by hand are marked.

Checking a watch

  • Read the page now reads the page exactly as a scheduled check would but saves nothing, and shows which selector matched, how the page was loaded, and the text beside what’s stored.
  • Show me the region on the page opens the page with a box around exactly what the watch reads.

Politeness and limits

  • Checks are spaced out, and each site has its own minimum gap (8 seconds by default, in Settings). Retry-After on 429 and 503 is honored.
  • A 403 or 429 on a background request is reported as Refused by the site; switch that watch to a tab.
  • A check only reads the site it watches. If the page redirects to another host, the check fails instead of reading it.
  • Tab checks wait for the page to load plus a settle delay (2.5 seconds by default, per watch).

Backup and restore

Export and Import on the settings page save and load every global setting and every watch’s settings, but not snapshots, history or site access. Imported watches start fresh and need access to their site allowed again; watches with recorded steps come in paused, and the import message lists their steps so you can check them first.

The Scheduled backup card saves the same file into a folder inside Downloads every N days, as page-monitor-backup-<date>-<time>.json. The schedule is checked hourly. The latest backup is always kept; each earlier day keeps only its newest backup, for as many days as Earlier backups to keep allows. Only files Page Monitor saved are deleted. Back up now makes one at once.

Restore puts everything back the way a backup recorded it, after showing what the file holds: watches not in the backup are deleted, watches still here get the backup’s settings and keep their history, and new ones start fresh. Every file goes through the same checks as an import.

If backups land as download.json, another extension that renames downloads is overriding the name. Download Router puts suite backups back; for others, check their settings.

Files

File Purpose
manifest.json Manifest V3, module service worker
src/background/service-worker.js Service worker: lifecycle and the message router
src/background/scheduler.js Tick alarm and finding due watches
src/background/checker.js Loading pages, comparing, notifying
src/background/backup.js Scheduled backups, run by shared/backup.js’s scheduler
src/lib/extractor.js Selector building and resolving, text extraction. A plain script, run in the picker, the offscreen document and check tabs so all three read alike
src/lib/storage.js Watch settings, snapshots, history, export, import and restore (cleanMonitor, cleanSteps)
src/lib/url-utils.js Canonical addresses, fragments, hash-route detection
src/lib/actions.js Replaying recorded steps in a tab
src/lib/wake.js Makes a hidden tab render like a visible one
src/lib/diff.js Line and word diff, change size, hashing
src/lib/signals.js Class names that carry meaning
src/lib/render.js, render-view.js The sandboxed frame for rendered HTML and the Markup / Rendered switch
src/lib/list-view.js, modes.js, schedule.js List sorts and filters, mode labels, schedule arithmetic
src/lib/backup.js Backup prefix, folder and file shape (binds shared/backup.js)
src/offscreen/ Offscreen document that parses fetched HTML with the browser’s own DOMParser
src/content/ Picker, region highlight, step recorder and rehearsal overlays, and the shield that keeps overlay clicks from the page
src/popup/, src/options/ Toolbar popup; management, changes and settings page
shared/backup.js Shared backup helpers and scheduler, on globalThis.SharedBackup. Do not edit here
shared/sender.js Shared message-sender checks. Do not edit here
shared/suite.js Link to the Plugin Suite Backup Manager, on globalThis.SuiteLink. Do not edit here
shared/brand.js The “Made by infolific.com” footer on this plugin’s pages (logo, plugin page and hub links). Do not edit here
shared/infolific.png, shared/infolific-24.png The infolific.com logo, for the footer and (24px) the top of this README
test/ Node tests (see Tests)
icons/ Icons, and build-icons.py, which draws them (without the infolific.com badge: run tools/brand/badge-icons.py on the PNGs afterwards)
screenshot.png The screenshot above

Permissions

Permission Why
storage, unlimitedStorage Watch settings (synced), snapshots, history and run logs (local)
alarms The tick that runs due checks, and the hourly backup check
scripting, activeTab Running the picker on the page you clicked from, and reading regions in check tabs
notifications Telling you about a change
offscreen Parsing fetched HTML, which a service worker can’t do
downloads Saving scheduled backups and removing old ones
Optional host access Asked for one site at a time when you add a watch, so checks can read it. Revoking it marks that site’s watches as needing permission

Security notes

  • Every message is checked with shared/sender.js.
    Restore, delete, settings and everything else answer only the extension’s own pages; the picker and recorder’s five messages are accepted only from the top frame of a tab, and act only on that tab.
  • A check reads only the watched site: a redirect to another host fails the check, and no step runs in a tab until it’s confirmed to be on that site. Background requests stop reading at 5 MB.
  • Imported and restored files go through cleanMonitor: addresses must be http/https, recorded steps must be ones the recorder could have made, and unknown fields are dropped. Watches with new steps come in paused.
  • Watched HTML is shown in a frame with an empty sandbox and default-src 'none', so it runs nothing and fetches nothing. Fetched pages have their on* attributes renamed before the offscreen document parses them, so no inline handler is ever created. Links are built only from http/https addresses. Page text is written with textContent.
  • The recorder ignores events the page fakes (isTrusted), and password and payment fields are never recorded.
  • The link to the Plugin Suite Backup Manager (shared/suite.js) answers only the manager’s fixed extension id. It can report the backup schedule and last backup, start a backup, and open the restore page with a backup file. It never writes settings itself, so a file it hands over goes through the same checks and confirmation as one picked on that page.

Tests

cd test
npm install            # jsdom, for the integration suite; don't commit node_modules
node run-backup.mjs        # backup schedule, retention and file format
node run-integration.mjs   # checkMonitor against a mocked browser API and network, with a real DOMParser

Version history

2.7.0 — infolific.com branding: a “Made by infolific.com” footer on the options and popup pages, linking to this plugin’s page and the infolific.com hub for AI-created software (shared/brand.js); a small infolific.com badge on the icons; and the manifest’s homepage_url points to the plugin’s page, so the extensions page shows a Website link.

2.6.0 — Works with the new Plugin Suite Backup Manager, which shows this plugin’s backup schedule and last backup, can start a backup, and can hand a backup file to the restore page here.
Only the manager’s extension id is answered (shared/suite.js).

2.5.8 — No more “Executing inline event handler violates … Content Security Policy” errors from offscreen.html. Fetched pages have their on* attributes renamed before the offscreen document parses them, so the parser never creates an inline handler. HTML-mode watches read the same as before.

2.5.7 — Follows the plugin template: the worker checks message senders with shared/sender.js, and content-script messages are accepted only from a tab’s top frame. The README uses the template’s sections, with a screenshot.

2.5.6 — Scheduled backups run on the suite’s shared backup code (shared/backup.js). Backup files, and restoring old ones, are unchanged.

⬇️ Download Page Monitor.zip436.2 KBLast Updated: November 27, 2026Vivaldi

← All AI-created software