User:Modestginger/vector-2022.js

/* window.wpDarkModeAutoToggle = true; */

(function {

function updateViewport { const viewportMeta = document.querySelector('meta[name="viewport"]'); if (viewportMeta) { console.log(viewportMeta.getAttribute('content')); viewportMeta.setAttribute('content','width=device-width,initial-scale=1.0'); document.documentElement.classList.add('fixedViewport'); window.scrollBy(-1000, 0); } }  updateViewport; });