Skip to content

A Browser Extension and Userscript that displays country flags ๐Ÿ‡บ๐Ÿ‡ธ and device icons ๐Ÿ“ฑ next to every X (Twitter) username. Know who you're interacting withโ€”their location and platformโ€”at a glance. Bonus: optional geo-blocking to filter your feed by country.

Notifications You must be signed in to change notification settings

xaitax/x-account-location-device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

56 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ X-Posed

See where X users are really posting from.
Country flags, device info, VPN detection, and powerful filtering โ€” all in one extension.

Chrome Web Store Firefox Add-ons App Store

Support on Ko-fi

X-Posed showing country flags and device icons on X timeline


โœจ Key Features

๐Ÿณ๏ธ Country Flags & Device Detection

Every tweet shows the author's real location and device at a glance.

Indicator Meaning
๐Ÿ‡บ๐Ÿ‡ธ ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฏ๐Ÿ‡ต Country flag from X's location data
๐ŸŽ iOS (iPhone/iPad)
๐Ÿค– Android
๐ŸŒ Web browser
๐Ÿ”’ VPN/Proxy detected โ€” location may not be accurate
image

๐Ÿšซ Location & Tag Blocking

Filter your timeline by hiding or highlighting tweets based on location or display name patterns.

Countries โ€” Block individual countries with one-click selection
Regions โ€” Block entire geographic areas (Europe, South Asia, Africa, etc.)
Tags โ€” Block users with specific emojis, symbols, or text in their display names

Two blocking modes:

  • Hide (default) โ€” Blocked tweets vanish from your feed
  • Highlight โ€” Blocked tweets stay visible with a subtle amber border
image

๐Ÿ“ธ Evidence Screenshot

Capture any tweet with a forensic metadata overlay showing location, device, VPN status, and timestamp.

Perfect for researchers, journalists, and OSINT professionals who need to document social media evidence.

image

๐Ÿ“Š Statistics Dashboard

See your cached data at a glance:

  • ๐ŸŒ Top countries โ€” Most common locations in your cache
  • ๐Ÿ“ฑ Device breakdown โ€” iOS vs Android vs Web distribution
  • ๐Ÿ”’ VPN users โ€” Percentage of users detected with VPN/proxy
  • โ˜๏ธ Cloud stats โ€” Community cache contribution metrics
image

๐Ÿ’พ Export & Import

Full backup and restore of your configuration:

  • All settings and preferences
  • Blocked countries, regions, and tags
  • Cached user data

Move between browsers or share configurations across devices.


๐Ÿš€ Installation

Browser Link
Chrome / Edge / Brave Chrome Web Store
Firefox Firefox Add-ons
iOS / iPadOS App Store

Manual installation:

git clone https://github.com/xaitax/x-account-location-device.git
cd x-account-location-device/extension
npm install
npm run build

Load dist/chrome or dist/firefox as an unpacked extension.


โš™๏ธ Configuration

Quick Settings (Popup) โ€” Click the extension icon for instant toggles:

  • โœ… Enable/disable extension
  • ๐Ÿณ๏ธ Show/hide country flags
  • ๐Ÿ“ฑ Show/hide device icons
  • ๐Ÿ”’ Show/hide VPN indicator
  • ๐Ÿ‘๏ธ Filter VPN user tweets
  • ๐Ÿ—‘๏ธ Clear local cache

Full Options Page โ€” Right-click the extension icon โ†’ Options:

  • Statistics โ€” View cached data analytics
  • Cloud Cache โ€” Enable community sharing (opt-in)
  • Location Blocking โ€” Manage blocked countries and regions
  • Export/Import โ€” Backup and restore configuration

โ˜๏ธ Community Cloud Cache

Optional feature โ€” Share anonymous lookups with other users.

Benefit Description
โšก Faster lookups Instant responses from cached community data
๐Ÿ›ก๏ธ Avoid rate limits Reduce direct API calls to X
๐Ÿ‘ฅ Community powered One user's lookup helps everyone

Privacy: Only username โ†’ location/device mappings are shared. No personal data, no IP logging.

Enable in Options โ†’ Cloud Cache โ†’ Enable Community Cache.

image

๐Ÿ” Privacy

Mode What happens
Default All data stored locally. API calls go directly to X. No external servers.
With Cloud Cache Username โ†’ location mappings shared anonymously. Self-hostable.

Read the full Privacy Policy.


๐Ÿ”ง Development

cd extension
npm run dev:chrome    # Watch mode for Chrome
npm run dev:firefox   # Watch mode for Firefox
npm run build         # Production build
npm run package       # Create distribution zips

Project Structure:

extension/src/
โ”œโ”€โ”€ background/   # Service worker, API client
โ”œโ”€โ”€ content/      # DOM observer, badge injection
โ”œโ”€โ”€ popup/        # Quick settings popup
โ”œโ”€โ”€ options/      # Full settings page
โ””โ”€โ”€ shared/       # Constants, utilities, storage

๐Ÿ“ Changelog

v2.5.0 โ€” Latest

โœจ New

  • Toggle Capture Button โ€” Show/hide the camera button on badges

โšก Performance

  • Faster lookups โ€” 2x faster API with optimized throttling
  • Cloud cost savings โ€” Edge caching & deduplication (~80% reduction)

View full changelog โ†’


๐Ÿ‘ค Author

Alexander Hagenah

X LinkedIn Website


โญ Star this repo if X-Posed helps you!

X-Posed โ€” Know who you're talking to.

About

A Browser Extension and Userscript that displays country flags ๐Ÿ‡บ๐Ÿ‡ธ and device icons ๐Ÿ“ฑ next to every X (Twitter) username. Know who you're interacting withโ€”their location and platformโ€”at a glance. Bonus: optional geo-blocking to filter your feed by country.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •