Twitter Location Flag is a sleek, privacy-first browser extension that displays country flag emojis next to Twitter (X) usernames based on their account location. Instantly identify where accounts are registered without leaving your timeline.
| Chrome | Firefox | Brave | Edge | Safari | Opera |
|---|---|---|---|---|---|
- Clone or download the repo.
- Open
chrome://extensions/. - Enable Developer mode.
- Click Load unpacked.
- Select this project folder.
- Clone or download the repo.
- Open
about:debugging#/runtime/this-firefox. - Click Load Temporary Add-on....
- Select
manifest.json.
- Instant Flag Detection: Automatically displays the corresponding country flag emoji next to usernames on Twitter (X).
- Infinite Scroll Support: Works seamlessly with dynamically loaded tweets and profiles.
- Smart Caching: Efficiently caches location data to minimize API calls and ensure performance.
- Native Integration: Designed to look and feel like a native part of the Twitter UI.
- Toggle Control: Easily enable or disable the flag display from the extension popup.
- Privacy First: No data is collected or sent to third-party servers; all queries are made directly to Twitter's API.
- Simply browse Twitter (X.com).
- Flags will automatically appear next to usernames in the timeline, search results, and profiles.
- Click the extension icon in the toolbar.
- Use the toggle switch to enable or disable the flag display.
- API Mapping: Uses Twitter's internal GraphQL API to fetch official account location data.
- Flag Mapping: Comprehensive mapping of country names to emojis in
countryFlags.js. - Injected Scripts: Uses memory-safe page script injection to handle secure API requests.
Created by AcrNischal.
Check out the code on GitHub.
Built with Vanilla JS, HTML & CSS. No frameworks needed.
