Skip to content

Instantly share code, notes, and snippets.

@eai04191
Created December 25, 2023 05:47
Show Gist options
  • Save eai04191/111aa1777110da8be05447fec204efc6 to your computer and use it in GitHub Desktop.
Save eai04191/111aa1777110da8be05447fec204efc6 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Do not zoom when focus to input
// @namespace net.mizle
// @version 1.0
// @description Continuously update viewport settings every second
// @author Eai
// @match https://chat.openai.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function() {
var viewportMeta = document.querySelector('meta[name="viewport"]');
if (viewportMeta) {
viewportMeta.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1');
}
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment