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.