News for hackers. Stuff that matters.
Re:Scrollbar Blindness by scaryclam on Thursday August 27, 2020 @10:54AM (#24294271)
Here's a link for something I use on such news and blog sites: https://alisdair.mcdiarmid.org/kill-sticky-headers/

I works a surprising amount of the time!

Re:Scrollbar Blindness by jemorya on Thursday August 27, 2020 @11:03AM (#24294369)
I use this every single day on my locked-down work laptop. It fixes so many sites! I recommend it as often as I can, and I'm surprised that its use is not more widespread.
Re:Scrollbar Blindness by jonpurdy on Thursday August 27, 2020 @03:14PM (#24297479)
Very happy to have seen this! I like that Alisdair uses a sticky header on the page to verify that it works.
Re:Scrollbar Blindness by laksdjfkasljdf on Thursday August 27, 2020 @01:56PM (#24296489)
So, in the end, we wish gopher would have won the hypertext formats war(just made that up)?

I can't live without firefox's reader mode, which is pretty much Gopher-for-html.

Re:Scrollbar Blindness by dahauns on Thursday August 27, 2020 @12:35PM (#24295418)
Very nice!

And for Nuke Overdrive mode, add a check for position: sticky, i.e.

  (function () {
    var elpos,i, elements = document.querySelectorAll('body *');
    for (i = 0; i < elements.length; i++) {
      elpos = getComputedStyle(elements[i]).position;
      if (elpos === 'fixed' || elpos === 'sticky') {
        elements[i].parentNode.removeChild(elements[i]);
      }
    }
  }
  )();
Re:Scrollbar Blindness by hombre_fatal on Thursday August 27, 2020 @06:30PM (#24299427)
Here's that code written by someone who has used Javascript in the last 10 years:

    (function () {
        for (const node of document.querySelectorAll('body *')) {
            if (['fixed', 'sticky'].includes(getComputedStyle(node).position)) {
                node.style.display = 'none'
                // node.remove()
            }
        }
    })()
I found tree mutation too aggressive in the first site I tested it on (the site's JS code expected the navbar to exist, so it just blew up with runtime errors). Simply changing the display property is sufficient.
Re:Scrollbar Blindness by dahauns on Friday August 28, 2020 @09:36AM (#24304643)
Ah, thanks, looks much better! Yeah, I just took the original and quick'n'dirty-added the second condition, all the while thinking "hmm..." - and quickly losing interest again. :)

Regarding tree mutation - I have to admit, it gives me some petty satisfaction looking at the errors thinking "Where is your sticky NOW!"

Re:Scrollbar Blindness by BruiseLee on Thursday August 27, 2020 @12:04PM (#24295022)
Wow, thanks! I've been using "nuke anything" extension to manually remove this crap, but this solution looks much more convenient.
Re:Scrollbar Blindness by dnr on Thursday August 27, 2020 @03:36PM (#24297712)
I use this probably a hundred times a day :( It makes me so sad.

I've considered writing an extension to kill them all by default, but I'm afraid I'll break some site in a way that really confuses me and end up wasting more time figuring out what happened than I save with the extension.

Re:Scrollbar Blindness by Voliokis on Thursday August 27, 2020 @12:22PM (#24295234)
This is great, but to use it I need to sticky the bookmarks bar to the top of my screen when vertical space is already precious. Does anybody know something else that does the same thing without this issue?
Re:Scrollbar Blindness by DreadY2K on Friday August 28, 2020 @12:39AM (#24301409)
Firefox has a bookmarks sidebar that pops up if you press Ctrl+B (or buried inside the hamburger menu, but Ctrl+B is the easiest way to access it). You can put the bookmark in there, and then only open the bookmarks menu when you want to access it.
Re:Scrollbar Blindness by JadeNB on Friday August 28, 2020 @10:21AM (#24305180)
At least in Safari, your favourite bookmarks are accessible by ⌘⌥#. I've got Kill Sticky Headers on ⌘⌥1, so it takes no screen space but is just a keypress (or three) away at any time.