From 56e7500835b8d1253026a4214d19ebf8815190e8 Mon Sep 17 00:00:00 2001 From: adamlui Date: Thu, 9 May 2024 13:27:13 +0000 Subject: [PATCH] =?UTF-8?q?Added=20`chatgpt.hideHeader()`=20=E2=86=9E=20[a?= =?UTF-8?q?uto-sync=20from=20`KudoAI/chatgpt.js`]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- starters/chrome/extension/lib/chatgpt.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/starters/chrome/extension/lib/chatgpt.js b/starters/chrome/extension/lib/chatgpt.js index d20e959a9..1cf2484dd 100644 --- a/starters/chrome/extension/lib/chatgpt.js +++ b/starters/chrome/extension/lib/chatgpt.js @@ -901,6 +901,8 @@ const chatgpt = { // eslint-disable-line no-redeclare return navigator.languages[0] || navigator.language || navigator.browserLanguage || navigator.systemLanguage || navigator.userLanguage || ''; }, + hideHeader: function() { chatgpt.getHeaderDiv().style.display = 'none'; }, + history: { isLoaded: function() { return new Promise(resolve => {