Skip to content

Instantly share code, notes, and snippets.

@matijs
Created November 16, 2013 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matijs/7499573 to your computer and use it in GitHub Desktop.
Save matijs/7499573 to your computer and use it in GitHub Desktop.
set the viewPort to 1024 if it was
javascript:void(function() {
var metaViewport = document.querySelector("meta[name=viewport]");
if (metaViewport) {
var content = metaViewport.getAttribute("content").replace("device-width","1024");
metaViewport.setAttribute("content", content);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment