Hacker News new | ask | show | jobs
by Dah00n 935 days ago
Well that was a fun read until it forces you to log in :(
3 comments

I rebelled. On the console I set the display property of the #glass-container element to "none", hiding the popover window:

document.querySelector("#glass-container").style.display = "none";

Then since scrolling was disabled, I just used the window.scroll() function to scroll down and see the small parts of the article that I wasn't able to read before the popup appeared.

This works because Tumblr doesn't actually remove the parts of the article it doesn't want you to see from the HTML output, so it's still perfectly viewable if you can get past the popup. This is not generally the case though, for example most news sites actually remove the text you're not supposed to see if you don't log in.

If I could figure out how to re-enable scrolling, I'd have a recipe for a pretty delicious Greasemonkey script.

Dear tumblr -- Sincerely fuck off with this bullshit, thanks.

Disabled scrolling is almost always implemented by setting the `overflow` CSS property to `hidden` or `none`. You can add a UBlock filter for a specific site, as the sibling comment suggests, but on the fly you can also just use the console to filter for elements with that property and disable it or set it to `auto`.
Use ublock:

  www.tumblr.com###glass-container
  www.tumblr.com##body:style(overflow:auto !important)
Oh no

I logged in