17 votes

Suggestion: Hide my logged-in username while browsing

I think an excellent addition to tildes would be hiding the username while browsing, this way we can use our account and don't worry about people looking and finding our username. This could be an option.

24 comments

  1. [9]
    Emerald_Knight
    (edited )
    Link
    Edit It looks like I was experiencing some kind of weird bug last night that went away sometime after I posted this. My statement that CSS-based extensions aren't working was just my extensions...

    Edit

    It looks like I was experiencing some kind of weird bug last night that went away sometime after I posted this. My statement that CSS-based extensions aren't working was just my extensions not working for whatever reason.

    With that in mind, a much better solution exists. By using an extension such as Stylus or Tildes Extended (see how to install styles), you can use the following CSS instead of the original JavaScript:

    /* Hide the username. */
    #site-header .logged-in-user-info {
        display: none;
    }
    
    /* Hide comment ownership indication. */
    body .is-comment-mine > .comment-itself {
        border-left-color: inherit;
        border-left: initial;
        margin-left: inherit;
    }
    

    This isn't really a feature that would be suitable as an inclusion to Tildes itself. That being said, you could absolutely use an extension for this. Unfortunately it doesn't look like Stylus or other CSS-based extensions are working right now, so JavaScript will have to be used instead. Tampermonkey is a fairly popular option that works for both Chrome and Firefox. A quick and dirty script that should work for this might look something like this:

    // ==UserScript==
    // @name         Hide Tildes Username
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  Hides the username from being displayed on Tildes.
    // @author       Emerald_Knight
    // @match        https://tildes.net/*
    // @grant        none
    // ==/UserScript==
    
    (function() {
        Array.prototype.slice.call(document.getElementsByClassName('logged-in-user-info')).forEach((elem) => {
            elem.style.display = 'none';
        });
    })();
    

    Do note that your username will still display while the page is loading, however.

    10 votes
    1. [7]
      Deimos
      Link Parent
      What's not working with Stylus? Does Tildes's Content Security Policy block it or something?

      What's not working with Stylus? Does Tildes's Content Security Policy block it or something?

      4 votes
      1. [6]
        Emerald_Knight
        Link Parent
        For me, yes, the CSP was an issue. Even using !important on styling wasn't allowing overrides to go through. Attempting inline styling changes via the DOM inspector wasn't working, either....

        For me, yes, the CSP was an issue. Even using !important on styling wasn't allowing overrides to go through. Attempting inline styling changes via the DOM inspector wasn't working, either.

        Possibly a regression?

        2 votes
        1. [5]
          Deimos
          Link Parent
          Hmm strange, because I think @Bauke's always been using and distributing his Dracula theme through Stylus, and that seems to be working: https://gitlab.com/Bauke/styles/wikis/Installing-Styles#stylus

          Hmm strange, because I think @Bauke's always been using and distributing his Dracula theme through Stylus, and that seems to be working: https://gitlab.com/Bauke/styles/wikis/Installing-Styles#stylus

          4 votes
          1. Emerald_Knight
            Link Parent
            I'll be sure to review again when I get home after my work day is over. I was definitely seeing CSP errors in the Firefox console, however.

            I'll be sure to review again when I get home after my work day is over. I was definitely seeing CSP errors in the Firefox console, however.

            4 votes
          2. [3]
            Emerald_Knight
            Link Parent
            Alright, I just took another look at this. Now it's suddenly working again. For some reason it wasn't working last night. Must've been a weird bug or something.

            Alright, I just took another look at this. Now it's suddenly working again. For some reason it wasn't working last night. Must've been a weird bug or something.

            3 votes
            1. [2]
              Deimos
              (edited )
              Link Parent
              There can definitely be some cases that the CSP will block depending exactly how you do things. For example, Firefox's dev tools will allow you to edit CSS inside any existing rules with a...

              There can definitely be some cases that the CSP will block depending exactly how you do things. For example, Firefox's dev tools will allow you to edit CSS inside any existing rules with a selector, but you can't use the "element" one at the top. That one adds an inline style, which gets blocked.

              4 votes
              1. Emerald_Knight
                Link Parent
                Interestingly enough, even trying to modify an existing rule wasn't working. I was expecting inline styles to fail, so I was sure to explicitly avoid them. I tried everything to no avail last...

                Interestingly enough, even trying to modify an existing rule wasn't working. I was expecting inline styles to fail, so I was sure to explicitly avoid them. I tried everything to no avail last night, so it seemed like it just wasn't working anymore. I'm not entirely sure what was causing the problem, but it's cleared up on my end now.

                Oh well. Now that I was able to work with the CSS again, @stickman can use the CSS-based solution instead of the JavaScript-based solution. Should be a lot nicer :)

                4 votes
    2. unknown user
      Link Parent
      Wow, @Deimos, you're really good at assigning these classes, making it so easy to write these customisations. Thanks a lot for that!

      Wow, @Deimos, you're really good at assigning these classes, making it so easy to write these customisations. Thanks a lot for that!

      4 votes
  2. [15]
    Comment deleted by author
    Link
    1. [14]
      Deimos
      Link Parent
      They don't want their username shown in the top right corner of the site. It's not really that straightforward though, as there are various other ways of noticing who the logged-in user is. For...

      They don't want their username shown in the top right corner of the site.

      It's not really that straightforward though, as there are various other ways of noticing who the logged-in user is. For example, the purple stripe down the side of all of your own comments and topics.

      10 votes
      1. [3]
        Comment deleted by author
        Link Parent
        1. SpineEyE
          Link Parent
          Yeah, I'm hiding my username with uBlock origin (just used the element picker). Whenever I need to click my user name, I just disable cosmetic filtering in uBlock's popup menu. No userscript...

          Yeah, I'm hiding my username with uBlock origin (just used the element picker). Whenever I need to click my user name, I just disable cosmetic filtering in uBlock's popup menu. No userscript required. Although that doesn't help for the purple comment highlighting.

          3 votes
        2. stickman
          Link Parent
          I guess it could be easily done, if the option is checked the var of the user would change

          I guess it could be easily done, if the option is checked the var of the user would change

          2 votes
      2. [8]
        NaraVara
        Link Parent
        In use-case OP is talking about it seems like they're just concerned about people seeing their username while shoulder-surfing. The purple stripe is still a give-away, but it's way more subtle and...

        In use-case OP is talking about it seems like they're just concerned about people seeing their username while shoulder-surfing. The purple stripe is still a give-away, but it's way more subtle and less likely to be an issue.

        But it does lead to a question of why show the username at all? It only seems like a pertinent bit of information if you juggle between multiple accounts, but since that's probably a rarer situation it would probably make more sense to leave the hidden version as default and allow it to be displayed by toggling a setting.

        The only legitimate use-cases I can think of for having multiple accounts would be for separation of duties between admin/user roles and for people to post potentially stigmatizing information under a throwaway. Are there any others? I guess people can create novelty accounts, (e.g. /r/ShittyWatercolor) but I'm not sure if that's something you want to encourage.

        3 votes
        1. [2]
          Deimos
          Link Parent
          Yeah, overall it's probably not important to show it. It's just a pretty standard interface convention to show that you're logged in and give you something to click on to go to your own profile...

          Yeah, overall it's probably not important to show it. It's just a pretty standard interface convention to show that you're logged in and give you something to click on to go to your own profile page.

          Like you said, I can't think of many reasons for people to need multiple Tildes accounts either, but it's allowed, as long as they're not used in manipulative ways.

          3 votes
          1. NaraVara
            Link Parent
            Maybe it could just go under a spoiler-mask? Haha

            Maybe it could just go under a spoiler-mask? Haha

            1 vote
        2. [5]
          Wes
          Link Parent
          I think people balancing multiple accounts is a more common need than somebody being afraid of their roommate knowing their username (if I understand OP's use case correctly). I use three separate...

          I think people balancing multiple accounts is a more common need than somebody being afraid of their roommate knowing their username (if I understand OP's use case correctly).

          I use three separate accounts on reddit, for instance, and find it useful to see which is logged in.

          1 vote
          1. [4]
            NaraVara
            Link Parent
            Arguably, the better way to address this use case would be to allow a single account to maintain multiple "display" names for however you use them. That way you won't have to play moderator...

            I use three separate accounts on reddit, for instance, and find it useful to see which is logged in.

            Arguably, the better way to address this use case would be to allow a single account to maintain multiple "display" names for however you use them. That way you won't have to play moderator whack-a-mole if someone feels like being a jerk.

            I suppose in some cases there might be single-accounts that have multiple users where this may not work, but that's another usage I'm not sure if Deimos wants to actually encourage beyond just letting them sign up twice.

            1 vote
            1. [3]
              Wes
              Link Parent
              Well I use multiple accounts for more than just a display name, although your suggestion is surprisingly close to how new modmail works. But I keep different subreddit subscriptions between each...

              Well I use multiple accounts for more than just a display name, although your suggestion is surprisingly close to how new modmail works.

              But I keep different subreddit subscriptions between each account. One account is a shared mod user with more limited moderator permissions set (for security reasons).

              1 vote
              1. [2]
                NaraVara
                Link Parent
                That's pretty useful. Wouldn't it be preferable to keep them as multi-reddits or do you find much value in carrying a different persona for types of activity? I can see wanting my political...

                But I keep different subreddit subscriptions between each account. One account is a shared mod user with more limited moderator permissions set (for security reasons).

                That's pretty useful. Wouldn't it be preferable to keep them as multi-reddits or do you find much value in carrying a different persona for types of activity? I can see wanting my political accounts to not mingle with my hobbyist activities, but then again I feel like even the innocuous hobbies seem to get worked up on occasion by partisans, gun fetishists, race "science," etc.

                One account is a shared mod user with more limited moderator permissions set (for security reasons).

                Honestly I've always though moderator powers should be enabled by flipping a switch that changes your interface and the look of your posts/handle so it keeps some separation from your regular persona. I don't moderate anything on Reddit, but when I did used to mod a forum I usually tried to separate stuff I'm saying as a mod from stuff I'm saying as myself. It's almost like a judge putting on robes to go to work. I sort of used it as a subtle psychological nudge to adopt a more objective and less personally invested stake in the situation.

                1 vote
                1. Wes
                  Link Parent
                  I'd say I use different accounts less for that reason, and more for separation of concerns. That's actually kind of the case. There is a mod mode toggle in new reddit. Comments can also be...

                  Wouldn't it be preferable to keep them as multi-reddits or do you find much value in carrying a different persona for types of activity?

                  I'd say I use different accounts less for that reason, and more for separation of concerns.

                  Honestly I've always though moderator powers should be enabled by flipping a switch that changes your interface and the look of your posts/handle so it keeps some separation from your regular persona.

                  That's actually kind of the case. There is a mod mode toggle in new reddit. Comments can also be distinguished as a mod action, which is usually done when posting in a "mod voice" as you described. I still post regularly without distinguishing.

                  Also just to point it out, the reason for the shared mod account is just for announcement posts or actions that may require editing by co-mods in the future. Say after I've gone to sleep.

                  3 votes
      3. stickman
        Link Parent
        Yea, exactly, thanks for clarify Well, I guess everything should say tildes_user (for example) instead of the name

        Yea, exactly, thanks for clarify
        Well, I guess everything should say tildes_user (for example) instead of the name

        2 votes
      4. [2]
        welly
        Link Parent
        I'm still confused. Who sees your username except for you when you're logged in?

        I'm still confused. Who sees your username except for you when you're logged in?

        1. Soptik
          Link Parent
          I think they want to share something with their friend IRL but are afraid that the friend could read their username? I’m not sure but that’s the only reason I came up with.

          I think they want to share something with their friend IRL but are afraid that the friend could read their username? I’m not sure but that’s the only reason I came up with.

          2 votes
  3. unknown user
    Link
    Userscript this sorta thing.

    Userscript this sorta thing.

    3 votes
  4. Removed by admin: 2 comments by 1 users
    Link