Skip to content

Hide Twitter view counts including mobile by diaganon

Screenshot of Hide Twitter view counts including mobile

Details

Authordiaganon

LicenseNo License

Categorytwitter.com

Created

Updated

Code size390 B

Code checksum4b8c04c0

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes the view counts from tweets, including on mobile where accidentally clicking on it opens up a page that is hard to navigate away from

Notes

This solution is a one-line fix using the new :has() css selector. All major browsers should support this feature as of 2023 but check your compatibility to be sure
https://caniuse.com/css-has

Source code

/* ==UserStyle==
@name         Hide Twitter view counts including mobile
@version      1.0.0
@namespace    userstyles.world/user/diaganon
@description  Removes the view counter from tweets including on mobile
@author       diag
@license      No License
==/UserStyle== */

@-moz-document domain("twitter.com") {
    div:has(> a[aria-label*=" post analytics"]) { display: none; }
}

Reviews

No reviews yet.