Hacker News new | ask | show | jobs
by Kilimanjaro 5681 days ago
Off topic, but I like to read blogs on my ipad while in bed and I hate it when authors fuck up with the meta viewport tag.

If I want to double tap to zoom in, because my eyes are not the same as 20 years ago, just let me do that, ok?

Sounded snob? maybe. Sounded reasonable? hell yes.

Btw, is there a bookmarklet to remove the meta viewport tag available somewhere?

1 comments

I was thinking about something like:

    meta=document.querySelector('meta[name=viewport]')
    meta.parentNode.removeChild(meta)
Thanks anyway for your quick response!
Obviously that's fine for your use-case where the querySelector function is available, but it wouldn't work e.g. on Internet Explorer. My version is also more robust when dealing with markup errors, i.e. when there's more than one viewport meta element.