Skip to content

Youtube - visited by procyon-b

Details

Authorprocyon-b

LicenseNo License

Categorywww.youtube.com

Created

Updated

Size781 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Sets color for visited links (normal and dark modes)
If some elements are not colored, please let me know.

Notes

Color the visited links (text links, thumbnails with text, ...) differently that default color.
A color can be set for light mode and one for dark mode.

Currently marked as read:

  • links/thumbnails (in profiles/channels/...) to videos
  • video suggestions on the right
  • thumbnails in the video wall displayed once the video playback has ended (and autoplay is disabled)
  • "next video" button next to the play/pause button (if visited the button's color is changed)

Source code

/* ==UserStyle==
@name           Youtube - visited
@namespace      https://github.com/Procyon-b
@version        1.0.4
@description    Sets color for visited links (normal and dark modes)
@author         Achernar
@preprocessor stylus

@var color     color       'Color' blue
@var color     dark-color  'darkmode color' lightgreen
==/UserStyle== */
@-moz-document url-prefix("https://www.youtube.com/") {
:root {
  --vis: color;
}
:root[dark] {
  --vis: dark-color;
}

a[href^="/channel"]:visited,
a[href^="/watch"]:visited #video-title,
a[href^="/shorts/"]:visited #video-title,
a#video-title:visited,
a.ytp-videowall-still:visited .ytp-videowall-still-info-title {
  color: var(--vis) !important;
}
a.ytp-next-button:visited * {
  fill: var(--vis);
}
}

Reviews

No reviews yet.