Skip to content

Twitter: hide trends and who to follow by rybak

Details

Authorrybak

LicenseCC Zero

Categorytwitter.com

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Notes

Changelog

  • v6: added support for https://x.com
  • v5: update for changed CSS class names (the HTML layout is relatively the same)
  • v4: overhaul for changed CSS class names
  • v3: ???
  • v2: Support for all color themes, including "Lights out" (dark), "Dim", and "Default" (light) modes
  • v1: Initial release

Source code

/* ==UserStyle==
@name           Twitter: hide trends and who to follow
@namespace      github.com/rybak
@version        6
@description    Hides most of the right sidebar on https://twitter.com
@license        https://creativecommons.org/choose/zero/
@author         Andrei Rybak
==/UserStyle== */
@-moz-document domain("twitter.com"), domain("x.com") {
	/*
	 * "Lights out" (dark) mode: hide "Trends for you" and "Who to follow"
	 */
	.css-175oi2r.r-kemksi.r-1kqtdi0.r-1867qdf.r-1phboty.r-rs99b7.r-1ifxtd0.r-1udh08x {
		border: 1px solid magenta;
		display: none;
	}
}
@-moz-document domain("twitter.com"), domain("x.com") {
	/*
	 * "Dim" mode: hide "Trends for you" and "Who to follow"
	 */
	.css-175oi2r.r-yfoy6g.r-18bvks7.r-1867qdf.r-1phboty.r-rs99b7.r-1ifxtd0.r-1udh08x {
		border: 1px solid magenta;
		display: none;
	}
}
@-moz-document domain("twitter.com"), domain("x.com") {
	/*
	 * "Default" (light) mode: hide "Trends for you" and "Who to follow"
	 */
	.css-175oi2r.r-14lw9ot.r-jxzhtn.r-1867qdf.r-1phboty.r-rs99b7.r-1ifxtd0.r-1udh08x {
		border: 1px solid magenta;
		display: none;
	}
}

Reviews

No reviews yet.