public
Created

Remove any viewport meta elements

  • Download Gist
bookmarklet
1
javascript:(function(){var b=document.getElementsByTagName('meta'),c=b.length,a;while(c--){a=b[c];if(a.name.toLowerCase()=='viewport'){a.parentNode.removeChild(a)}}})();
kill_viewport.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12
(function() {
var metaElements = document.getElementsByTagName('meta'),
i = metaElements.length,
el;
while (i--) {
el = metaElements[i];
if (el.name.toLowerCase() == 'viewport') {
el.parentNode.removeChild(el);
}
}
})();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.