Hacker News new | ask | show | jobs
by persnickety 718 days ago
I've been longing for the ability to disable media queries. Just serve me the default.

It's not only useful against fingerprinting, but also when the creator's idea of what layout is appropriate on my setup differs from mine.

3 comments

Modern responsive design can do away with almost 100% of media queries. I used one single media query for one element after spending several days trying to write formulas to handle a weird edge case. I dislike media queries.
Did not try it out, but an idea: write a user script that changes the <meta viewport>.

See https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_m... what this meta tag does.

You might be pretty disappointed by the defaults in many cases: it’s extremely common to start with styles for the smallest viewports (“mobile”) and use media queries to add larger viewport variants. I don’t know if you’re among the same people who complain about the overuse of mobile UI techniques on larger screens/devices, but that’s almost certainly what you’d get more of in general.
One way around it is to do what the Tor Browser does: report an arbitrary value.