# Architecture ## Request flow 1. The content script observes X's timeline and extracts an author from each canonical `/user/status/id` link. 2. The service worker checks the local cache and coalesces concurrent lookups for the same username. 3. On a cache miss, the extension first parses `https://x.com//about`, then asks the current X page to run the authenticated `AboutAccountQuery` and reads `about_profile.account_based_in`. 4. If both direct methods fail, an invisible same-origin frame renders the `/about` URL. A static network rule removes CSP and `X-Frame-Options` only from matching `/about` subframe responses. The content script reads the location row and immediately destroys the frame. This does not create a browser tab or window. 5. The worker caches the result and compares the country with the configured blacklist. 6. The content script hides the post when the country matches. Followed accounts are exempt by default; the user can disable that exemption. Failed or ambiguous lookups fail open: the post remains visible. Empty results are never cached. Successful local and cloud lookups expire after 30 days. The user can clear the entire cache from the settings page at any time. ## Browser components - `background.js`: networking, throttling, cache, and decisions. - `content.js`: timeline observation and post visibility. - `offscreen/`: isolated HTML parsing with `DOMParser`. - `lib/parser.js`: DOM and embedded-data extraction. - `lib/config.js`: defaults and country normalization. - `options/` and `popup/`: user controls. ## Compatibility The Chromium package requires Chrome 109 or newer. Firefox 113 or newer uses a browser-specific background-page manifest and does not require the Chromium offscreen-document API.