Skip to content

Instantly share code, notes, and snippets.

@ramxcodes
Created October 14, 2026 14:12
Show Gist options
  • Select an option

  • Save ramxcodes/959758926e3b60c6e4090bb81ad5abd3 to your computer and use it in GitHub Desktop.

Select an option

Save ramxcodes/959758926e3b60c6e4090bb81ad5abd3 to your computer and use it in GitHub Desktop.
Paste in Tampermonkey
// ==UserScript==
// @name Fair Twitter
// @namespace https://x.com/
// @version 1.0.0
// @description Hide engagement counts and blur usernames, avatars, badges, and timestamps on X.
// @match https://x.com/*
// @match https://twitter.com/*
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
(function () {
'use strict';
GM_addStyle(`
/* Hide reply, repost, like, and bookmark counts */
article [data-testid="app-text-transition-container"],
/* Hide impressions (views) */
article a[href$="/analytics"],
/* Hide engagement links on opened posts */
article a[href$="/retweets"],
article a[href$="/quotes"],
article a[href$="/likes"],
/* Hide view counts next to timestamps */
article a[href*="/status/"]:has(> time) ~ *,
article div:has(> a[href*="/status/"] > time) ~ * {
display: none !important;
}
/* Blur names, handles, badges, and timestamps */
article [data-testid="User-Name"],
article [data-testid="icon-verified"],
article [data-testid="socialContext"],
/* Blur profile pictures, including quoted posts */
article [data-testid^="UserAvatar-Container"],
/* Blur timestamps on opened posts */
article time {
filter: blur(6px) !important;
}
`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment