Given how quickly Beehaw reacted to external users, it’s becoming more important for users to know “where” they are engaging with content, meaning “where the content was federate in from”.

Lemmy mostly has this handled in the UI but kbin still needs some time. Additionally, while the QOL plugin does show domain suffixes it’s not a super strong reminder that you are engaging with federated users/comments/articles. This script colorizes based on “threat level” or strictness of the moderators of the federated server.

compatible with the excellent QOL updates tampermonkey script by https://kbin.social/u/SirPsychoMantis, as well as the other 2 scripts I’ve previously written

  • Rhaedas@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Tried the code out. It’s working as far as the fed stuff like the original (that I can tell) but I don’t see the additional stuff anywhere that your header insert should be pulling up, if I understand the coding intent. Nothing is new on the sidebar with other script options. Best guess is like other issues I’ve run into it’s a Firefox thing.

      • Rhaedas@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Since I saw it in the screenshot, I installed the code highlighter as well, and I also don’t see it in the side bar. Maybe something in common? I have the compatibility on for the usability pack, even tried to turn it off and back on.

      • Rhaedas@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Found an error in the console when I run:

        Uncaught TypeError: GM_info.script.header is undefined
        createSettings moz-extension://5f0c0ea7-c5f6-4b77-b122-c07f6b739034/ kbin-federation-awareness.user.js#8:446
        VMjycqurhgb9 moz-extension://5f0c0ea7-c5f6-4b77-b122-c07f6b739034/ kbin-federation-awareness.user.js#8:556

        Just to be clear, originally I tried to install directly from your scripts page, but got thrown an error of invalid script. I couldn’t figure out what was the cause, so I tried to just take the installed original code and copied/pasted entirely with your source. Which worked for the main purpose, just didn’t show the sidebar stuff.

          • Rhaedas@kbin.social
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            ViolentMonkey

            Since uninstalling the fed script, I now get the same error, but it’s pointed to the code-highlighter. Clearly the problem, just don’t know why it’s not compatible with what I have. I have not tried turning all the scripts off, but I figured you run most of those too so I doubt it’s that.

              • Rhaedas@kbin.social
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                Nailed it. Perfect.

                Now I’ve got one more issue, since you’ve got your hands in it. I had asked before in this thread about how when infinite scrolling is on, the CSS doesn’t get reloaded so none of the new feeds get accented. It works fine with manual page flipping since the site reloads. And I have no idea how the infinite loading works to figure out where a trigger might be to recall the script.