LIMITATIONS/WARNINGS:
-I have tested this for literally 20 minutes on one PC. Via con dios, mofos.
-If a user name is in the plain text, the flair will show. A more sophisticated script or a CSS solution could handle that better, but I am not that guy. Sir, this is a Wendy’s… errr… English major.
-This will NOT be scalable. Is what it is. Make something better, please.
-Flairs will show on non-cfb posts on Lemmy instances (and likely other sites), but your main feed will be free of them. Kbin’s URL format is somewhat better suited to this sort of thing. Kbin users might consider omitting the third “include” line mentioned below.
-Identical user names from different instances will create false positives, but that’s a problem for later, maybe we’ll be dead then.

Step 1: Get a script engine like Greasemonkey or Violentmonkey for your browser.

Step 2: Install a script called “Replace Text On Webpages”.

Step 3: Go into the extension interface and start to edit the script.

Step 4: Replace the three “include” lines with the below (or edit to taste).

// @include https://*/m/cfb*
// @include https://*/c/cfb*
// @include https://*/post/*

Step 5: Replace the lines with the changes (samples are lines 33-36 in the default script) to replace usernames with the usernames+flair. The script is not super smart, but it does know not to mess with links. Here are a handful of posters who’ve not been shy about who they support. Happy to remove, edit, or add as requested. Remember to turn off the script if you come back later to harvest additional personal information!

‘wjrii’ : ‘wjrii {TCU/UF}’,
‘Manibusan’ : ‘Manibusan {Clem}’,
‘simplelifelfk’ : ‘simplelifelfk {KU}’,
‘g0d0fm15ch13f’ : ‘g0d0fm15ch13f {Tenn}’,
‘Andjhostet’ : ‘Andjhostet {ISU}’,
‘DRx’ : ‘DRx {OKST}’,
‘QHC’ : ‘QHC {NU}’,

  • g0d0fm15ch13f
    link
    21 year ago

    I’ll be trying this out until we get flairs. Ive thought about looking into the lemmy/activitypub and trying to make a pr. I do have some time coming up…

    • wjriiOP
      link
      fedilink
      11 year ago

      Let me know how it goes. If it’s absolute garbage, I’ll delete the post. Not trying to break anybody’s computer here.

  • wjriiOP
    link
    fedilink
    11 year ago

    Anyone who’d like their flair edited into the original post, let me know. Same goes for any of the five mentioned who’d like to be deleted.

    • g0d0fm15ch13f
      link
      11 year ago

      Will you be updating this as people ask or as people make their affiliation known?

      • wjriiOP
        link
        fedilink
        11 year ago

        That list is a handful of people who had declared in the posts, generally more than once. I’ll definitely add if anybody asks, and I’ll change or delete if anybody asks, but I was leaning towards not publicly adding anyone else based solely on a stray comment.

        I also secretly really hope somebody comes up with something better. This has been working surprisingly well for me, but it’s opt-in, client-side, and completely un-scaleable.

        • QHC
          link
          fedilink
          1
          edit-2
          1 year ago

          Thanks for putting this together!

          As far as I know, this is fundamentally the same thing that Reddit flair did, but eventually that got automated. Same thing can be done here, although I don’t think Lemmy (or Kbin, my preferred Federated instance) support community-specific themes yet so people will need a client-side solution for awhile.

          Edit: forgot to say that my flair would be Nebraska (NU, preferably, until some pesky Northwestern fan shows up). Go Big Red!

          • wjriiOP
            link
            fedilink
            11 year ago

            Done. Of course, there’s literally nothing stopping someone from making it say “Bug Eaters” on their computer, but if they just grab this list you should be good.

            • QHC
              link
              fedilink
              11 year ago

              Hey, that’s a fun feature! Now I’m looking forward to add my first flair for “Iowa = Mediocre Corn”.

              Also, appreciate the Bug Eaters reference. I wish I knew your flair’s lore enough to say something similarly clever, but alas, I do not.