16 votes

Tildes Focus: A Greasemonkey script to navigate to new comments on Tildes

17 comments

  1. [2]
    deing
    Link
    Added it to ~tech's Customizing Tildes wiki page. Thanks for putting in the work!

    Added it to ~tech's Customizing Tildes wiki page. Thanks for putting in the work!

    3 votes
    1. Wes
      Link Parent
      Thanks for adding it!

      Thanks for adding it!

      1 vote
  2. [15]
    Wes
    Link
    In the recent score hiding thread, I was finding it harder and harder to discover new comments as the thread grew. To solve this I wrote a script which lets you jump directly to new comments. It...

    In the recent score hiding thread, I was finding it harder and harder to discover new comments as the thread grew. To solve this I wrote a script which lets you jump directly to new comments.

    It can be installed via Greasemonkey (Firefox) or Tampermonkey (Chrome). Though I expect any other userscript engine will work. Let me know if that's not true.

    You can install just by loading the raw script file in a new tab. Navigation is by J/K hotkeys. It should work with any theme, but again let me know if something seems off.

    This will require the setting "mark new comments" be enabled in your Tildes settings.

    Licensed under MIT. Hope you enjoy!

    1 vote
    1. [11]
      Amarok
      Link Parent
      The link in the sidebar that says "Last comment posted" will automatically take you to the most recent comment as well.

      The link in the sidebar that says "Last comment posted" will automatically take you to the most recent comment as well.

      4 votes
      1. [10]
        Wes
        Link Parent
        Yep, I discovered that earlier this week! But it's only effective when there's one new comment. When there's more than that, you need to search to find them.

        Yep, I discovered that earlier this week! But it's only effective when there's one new comment. When there's more than that, you need to search to find them.

        1 vote
        1. [9]
          Deimos
          Link Parent
          Do you have the "Collapse old comments when I return to a topic" setting disabled? That makes it so everything except the new comments and their parents are collapsed, so they're all easy to see.

          Do you have the "Collapse old comments when I return to a topic" setting disabled? That makes it so everything except the new comments and their parents are collapsed, so they're all easy to see.

          7 votes
          1. [8]
            Wes
            Link Parent
            Hrmm, no I don't. It took me a while to actually find it on the settings page. I'm not sure yet if I'd like that feature to be always enabled, but I'll try it out and see.

            Hrmm, no I don't. It took me a while to actually find it on the settings page.

            I'm not sure yet if I'd like that feature to be always enabled, but I'll try it out and see.

            3 votes
            1. [7]
              cfabbro
              (edited )
              Link Parent
              Yeah, I like the "Collapse old comments" feature, but do find it a bit annoying sometimes. However, if you have it enabled and go back to a topic with new comments in it, but don't want to view...

              I'm not sure yet if I'd like that feature to be always enabled

              Yeah, I like the "Collapse old comments" feature, but do find it a bit annoying sometimes. However, if you have it enabled and go back to a topic with new comments in it, but don't want to view the collapsed state, you can thankfully just click the [Expand All] button at the top of the comment section. Easy peasy.

              4 votes
              1. [6]
                Wes
                Link Parent
                I wonder if a [Collapse Read] button makes sense. Sort of a compromise between the features. Probably invalidates the need for my script, but that's okay if it's built into the site.

                I wonder if a [Collapse Read] button makes sense. Sort of a compromise between the features. Probably invalidates the need for my script, but that's okay if it's built into the site.

                1 vote
                1. [5]
                  cfabbro
                  (edited )
                  Link Parent
                  Hmmm, that's a neat idea and would be nice for people that don't want the feature enabled at all times. It might be hard to implement, and I don't even know if it's really possible, but I made a...

                  Hmmm, that's a neat idea and would be nice for people that don't want the feature enabled at all times. It might be hard to implement, and I don't even know if it's really possible, but I made a gitlab issue for it anyways:
                  https://gitlab.com/tildes/tildes/issues/492

                  1. [4]
                    Wes
                    Link Parent
                    As long as Chad is okay with Javascript then it shouldn't be too difficult to implement. A server-side version already exists, so the logic just needs to be ported. It would probably look pretty...

                    As long as Chad is okay with Javascript then it shouldn't be too difficult to implement. A server-side version already exists, so the logic just needs to be ported. It would probably look pretty similar to my script's code. Make a list of all unread comments, and expand all parents by walking up the DOM tree from each.

                    If I get some time to play around with Vagrant I could probably implement it, if it's a desired feature.

                    1 vote
                    1. [3]
                      cfabbro
                      Link Parent
                      I was more speaking to whether or not it would be ethically possible rather than technical, because of the Privacy by Design section of the Technical Goals in Tildes Docs: So even if technically...

                      I was more speaking to whether or not it would be ethically possible rather than technical, because of the Privacy by Design section of the Technical Goals in Tildes Docs:

                      2‍. Privacy as the default setting: If a feature has a significant privacy impact, it should always be opt-in. A brand new account shouldn't need to comb through their settings to improve their privacy—ideally a new account already has the best privacy possible.

                      So even if technically possible and trivial to implement, it might also have to be opt-in similar to the "Collapse old comments" feature, which would reduce its utility a bit.

                      1. [2]
                        Wes
                        Link Parent
                        I think it would just inherit from the "marking new comments" toggle in settings already?

                        I think it would just inherit from the "marking new comments" toggle in settings already?

                        1 vote
                        1. cfabbro
                          Link Parent
                          Yeah, that's true, it could just be tied to that already existing setting.

                          Yeah, that's true, it could just be tied to that already existing setting.

    2. [3]
      Sybil_Fleming
      Link Parent
      Maybe it's something in my about:config settings, but Firefox isn't letting any userscript run on Tildes due to the strict CSP. Since it doesn't work for me, could you explain if there's any...

      Maybe it's something in my about:config settings, but Firefox isn't letting any userscript run on Tildes due to the strict CSP. Since it doesn't work for me, could you explain if there's any difference from the Tildes Extended "jump to new comments" feature? I see your userscript has the vim-like hotkeys for jumping, but I quite like the Tildes Extended feature since it is a button that works on both desktop and mobile.

      2 votes
      1. [2]
        Wes
        Link Parent
        I tested with a fresh version of Firefox and had no issues. It may be an about:config issue as you suggested. I haven't used Tildes Extended so I can't comment on the differences, but it wouldn't...

        I tested with a fresh version of Firefox and had no issues. It may be an about:config issue as you suggested.

        I haven't used Tildes Extended so I can't comment on the differences, but it wouldn't be difficult to add a physical button instead. I'd also be happy to add support for mobile, but are there any mobile browsers that support Greasemonkey scripts?

        2 votes