hack

Country of origin displayed as flags on X - a chrome plugin.

Over the weekend, X's head of product Nikita Bier dropped a nuclear bomb - it showed country of origin if a user looked at another users "about" section. The amount of "tradwife", pro-MAGA, pro-Euronationalism etc accounts that turned out to be from India, Saudi, Thailand or Nigeria was staggering.
Dabitch 2 min read
Country of origin displayed as flags on X - a chrome plugin.

But what we really really want, is flags next to usernames - so I wrote a plugin for chrome that shows just that.

At first Nikita showed only users their own about page, where everyone could double-check that things were correct. This was even open for a full hour for anyone to see anyone else, but I think I was asleep when that happened. My profile stated correctly how old the account is, and where it was created in the "Date joined" part. Like so:

Account created in Sweden. True.

This is accurate, and not a secret, so I had no problem with that - but a lot of people did. People who bought accounts would obviously want to hide if that account was created in a country they've never been to, for example.
Nikita claimed in a Xeet that this field showed inaccurate data for a lot of users, so they simply removed it.

Now I'm verified with ID too!

But what we all really wanted was a simpler way to identify where people are Xeeting from - like a flag by their usernames. So I made one, and this is what it looks like on my account. The US flag before my name. Now when I scroll X using my Chrome browser, I see flags next almost everyones user name.

If you want to use this, simply download these files, X-flag-verified.zip and open it somewhere on your computer.

Then load up chrome://extensions/ in your browser and toggle on "developer mode". Then "Load unpacked" and select the directory x-flag-verified and Bob's your uncle.

Optionally you can remove all the other annoying flags that people put in their profiles, if you simply uncomment the line in content.js below :

Optional: prevent double flags if user already has one in their name

I'm still working on this to see if there are any other fun things that I can add, since the government ID verification doesn't quite work yet, but I'm just too impatient not to share this right now. A lot of caching issues on the X "about page" currently is slowing down my bugtesting. Check back in a day or so and there might be more features.

If you find this useful, I like ko-fi and I like subscribers!

Share
Comments
More from Everything is so random there must be a pattern.
Moving off S3 with Drupal 7
hack

Moving off S3 with Drupal 7

It seemed a great idea to use S3, but after receiving a DMCA takedown request from them regarding a film I stored there, I knew that I needed to move.
Dabitch 3 min read

Everything is so random there must be a pattern.

Hi, I'm Åsk, I'm a geeky art director working in advertising and industrial design. Here I share whatever is on my mind and the occasional script.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Everything is so random there must be a pattern. .

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.