User:かにふとん/global.js

var meta_viewport = document.querySelector("meta[name=viewport]"); if (! meta_viewport) { meta_viewport = document.createElement("meta"); meta_viewport.setAttribute("name", "viewport"); } meta_viewport.setAttribute("content", "width=device-width, initial-scale=1.0, user-scalable=yes"); document.head.append(meta_viewport);