Skip to content

Instantly share code, notes, and snippets.

@redyoshi49q
Last active June 27, 2023 05:00
Show Gist options
  • Save redyoshi49q/f1b2d1da0a8f7536aba1f8c3110d2dd8 to your computer and use it in GitHub Desktop.
Save redyoshi49q/f1b2d1da0a8f7536aba1f8c3110d2dd8 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 @redyoshi49q@furry.engineer and @yote_zip@pawb.social
==/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