News for hackers. Stuff that matters.
Re:Ask HN: Projects that don't make you money but you're doi... by hbosch on Friday August 11, 2017 @01:26AM (#14986787)
This is great. I wonder though, how much could you achieve just by creating 1 blanket rule: change every instance on a page of "position: fixed" to "position: absolute" - layout and nav should be more or less the same, across the board, but nothing will follow you down the page!

Kryptonite would be sticky footers, but if you're on a site that uses those you should just close the tab anyway. :)

Re:Ask HN: Projects that don't make you money but you're doi... by yourduskquibble on Friday August 11, 2017 @10:11AM (#14989803)
Unfortunately, cosmetic filters that don't target a specific domain have performance implications[1] so I try to make every filter specific to a domain.

That being said I do have a few generic cosmetic filters as part of the list (you can see them near the top of the list) that don't target any specific domain but I don't use the "position: absolute" rule on any of them.

[1] https://github.com/gorhill/uBlock/issues/1892

Re:Ask HN: Projects that don't make you money but you're doi... by kdamken on Friday August 11, 2017 @09:27AM (#14989407)
This could mess up a lot of modals pretty badly.
Re:Ask HN: Projects that don't make you money but you're doi... by lugg on Friday August 11, 2017 @10:28AM (#14989964)
I'd be ok with all modals going away to be honest.
Re:Ask HN: Projects that don't make you money but you're doi... by kdamken on Wednesday August 16, 2017 @01:22AM (#15025132)
I don't like a lot of them but sometimes they're needed for the site.

For example I'm working on one site now where a modal lets you sign in (which involves selecting from or searching through a long list of third parties) and if it wasn't a modal it would have to take you to a new page which would be a poor UX.

So long as they're not used for those awful "sign up for our mailing list" purposes, have been set up to work well on all browsers and viewport sizes, and are accessible, I think they can be okay.

Re:Ask HN: Projects that don't make you money but you're doi... by lugg on Wednesday August 16, 2017 @08:58AM (#15027068)
My argument to that would be simply that you are wrong.

A new page is the correct UX design choice and with HTML5 features can make the experience seamless and far less jarring than a modal that needs heaps of testing to get right across all browsers and screen forms.

But that was essentially my original point. Modals, when used by sign up to spam are annoying. When used to do anything else they're essentially trying to replicate a desktop experience that quite frankly isn't required of a website - even on "web 2.0" or full on web applications.

Also, please link an example of a modal done well across all browsers / screen sizes. I simply have never seen one in the wild that works better than an inline page element would have.

Re:Ask HN: Projects that don't make you money but you're doi... by tripzilch on Friday August 11, 2017 @12:48PM (#14991750)
You also need to nuke "position: sticky" but otherwise, yeah. I never miss these elements.