Skip to content

Instantly share code, notes, and snippets.

@tcgm
Forked from redyoshi49q/frend_detector.user.css
Created June 16, 2023 14:49
Show Gist options
  • Save tcgm/ae9ef6bf2e44140b5a64d449a7d3394a to your computer and use it in GitHub Desktop.
Save tcgm/ae9ef6bf2e44140b5a64d449a7d3394a to your computer and use it in GitHub Desktop.
Puts a heart next to friends from your Lemmy homeserver and any manually-defined friend Lemmy servers
/* ==UserStyle==
@name Frend Detector
@namespace redyoshi49q/frendDetector
@version 1.6
@description Puts a heart next to frends from your homeserver and any manually-defined frend servers
@author @[email protected] and @[email protected]
==/UserStyle== */
/* Add your home server and any other frend servers that you want highlighted here */
a.text-info[href*="/u/"][href$="@pawb.social"] span::before,
a.text-info[href*="/u/"][href$="@pawb.fun"] span::before,
a.text-info[href*="/u/"][href$="@furry.engineer"] span::before {
content: "❤ ";
color: red;
}
/* Add your home server here */
@-moz-document domain("pawb.social") {
a.text-info[href*="/u/"]:not([href*="@"]) span::before {
content: "❤ ";
color: red;
}
}
/* uncomment to add a house before accounts native to the server you're viewing;
*cut/paste to the very end to make this override stars */
/*
a.text-info[href*="/u/"]:not([href*="@"]) span::before {
content: "🏠 ";
color: blue;
}
*/
/* uncomment and change pawb.social in the two spots below in order to make home server users have a yellow star instead */
/*
a.text-info[href*="/u/"][href$="@pawb.social"] span::before {
content: "★ ";
color: yellow;
}
@-moz-document domain("pawb.social") {
a.text-info[href*="/u/"]:not([href*="@"]) span::before {
content: "★ ";
color: yellow;
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment