feat: add location picker and persistent cache

This commit is contained in:
Darío Sevilla committed 2026-10-15 07:33:43 +00:00
1 parent fcea6cf7b7
commit 3811ae9cfc
16 files changed
+163 -39

No files matched your search

+4 -4
View File
@@ -6,10 +6,10 @@ X GeoBlock is a Manifest V3 browser extension for Chromium and Firefox. While yo
- Processes posts already on the page and posts loaded by infinite scrolling.
- Performs authenticated About-page requests in the extension service worker.
- Caches account results locally for a configurable period (seven days by default).
- Caches account results locally without expiration until you clear the cache.
- Coalesces duplicate lookups and spaces network requests to reduce load on X.
- Skips followed accounts.
- Provides a configurable country blacklist, an enable switch, and optional hidden-post placeholders.
- Provides a searchable country and region checklist with flags, an enable switch, and optional hidden-post placeholders.
- Stores all settings and lookup results in browser extension storage. No data is sent to third parties.
## Install from source in Chromium
@@ -18,7 +18,7 @@ X GeoBlock is a Manifest V3 browser extension for Chromium and Firefox. While yo
2. Enable **Developer mode**.
3. Select **Load unpacked** and choose this repository directory.
4. Sign in to `https://x.com` and browse normally.
5. Open the extension settings to review the default blacklist.
5. Open the extension settings and select the countries you want to block. No country is selected by default.
No build step or dependency installation is required.
@@ -47,7 +47,7 @@ After editing a file, reload the extension and refresh the X tab. See [Architect
X does not publish a stable API for the country shown on the About page. The extension parses X's HTML and embedded page data, so a markup change can temporarily prevent detection. An unknown country leaves the post visible. Requests use your existing X session and are subject to X's rate limits.
The default blacklist is an editable starting point: Belarus, China, Iran, North Korea, and Russia. Inclusion is a local user preference and does not assert anything about individual account holders.
The location picker contains the ISO 3166-1 countries, plus Kosovo, using English CLDR display names. It also includes the broader English region labels exposed by X, such as `West Asia`, alongside country labels such as `United Kingdom`. Inclusion is a local user preference and does not assert anything about individual account holders.
## Permissions