From ed3ef72201b9f9a44ae30e5396d5039e90e4bef2 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Fri, 6 Dec 2024 09:27:12 -0800 Subject: [PATCH] =?UTF-8?q?Bumped=20JS=20resources=20=E2=86=9E=20[auto-syn?= =?UTF-8?q?c=20from=20https://github.com/adamlui/ai-web-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- greasemonkey/chatgpt-widescreen-mode.user.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/greasemonkey/chatgpt-widescreen-mode.user.js b/greasemonkey/chatgpt-widescreen-mode.user.js index 6fc965a5..e92f591c 100644 --- a/greasemonkey/chatgpt-widescreen-mode.user.js +++ b/greasemonkey/chatgpt-widescreen-mode.user.js @@ -222,7 +222,7 @@ // @description:zu Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola // @author Adam Lui // @namespace https://github.com/adamlui -// @version 2024.12.5.7 +// @version 2024.12.6 // @license MIT // @icon https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?9a393be // @icon64 https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?9a393be @@ -242,9 +242,9 @@ // @connect cdn.jsdelivr.net // @connect update.greasyfork.org // @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.3.5/dist/chatgpt.min.js#sha256-rfC4kk8q0byrafp7X0Qf9vaa3JNvkHRwNnUt6uL2hUE= -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@e8e5abeaf1edf0a6d4d1210473b97e9b613fad69/chrome/extension/components/modals.js#sha256-ptE1ZKKArrt9EZLRyT9NFG8tana5YPdyNqKgXuS8ZZs= -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@dfc031d9f4160c847829188b0b5b53ffc7f63970/chrome/extension/lib/dom.js#sha256-78Sl2iVpwThKJ5+zif7VwNehwMWU36I4mDflaksSdqg= -// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@e8e5abeaf1edf0a6d4d1210473b97e9b613fad69/chrome/extension/lib/settings.js#sha256-RPI49qE4FK9jMQ50AW0PkqTp25sT60HhFzn5rjt4TQ4= +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@c842bec140915cab46cfa0645283e183c62cc276/chrome/extension/components/modals.js#sha256-2ERkN4twKlbUPjSr9AoY4pt3CKk6ZP6wY1T6ALkI0/E= +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@c842bec140915cab46cfa0645283e183c62cc276/chrome/extension/lib/dom.js#sha256-78Sl2iVpwThKJ5+zif7VwNehwMWU36I4mDflaksSdqg= +// @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@c842bec140915cab46cfa0645283e183c62cc276/chrome/extension/lib/settings.js#sha256-Dspb85b2Nyy1+z4YvFAUelmh31KzMUsjOwpdCOrvHy4= // @resource brsCSS https://assets.aiwebextensions.com/styles/css/black-rising-stars.min.css?v=542104c#sha256-GQLnVMub4cpV5A59pvnDe8peGrW1v49u1UbDHHTGBBI= // @resource wrsCSS https://assets.aiwebextensions.com/styles/css/white-rising-stars.min.css?v=542104c#sha256-UCMygYN1+KOj8pQJonn7CRZ2b+npvyrXJlnarlJGIh4= // @grant GM_setValue @@ -394,7 +394,7 @@ sites.openai = { ...sites.chatgpt } // shallow copy to cover old domain // Init MODALS dependencies - modals.dependencies.import({ app, browserLang: env.browser.language, siteAlert, updateCheck }) + modals.dependencies.import({ app, browserLang: env.browser.language, updateCheck }) // Init SETTINGS settings.dependencies.import({ app }) // for app.msgs + app.configKeyPrefix refs @@ -495,11 +495,6 @@ } } - function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') { - const alertID = chatgpt.alert(title, msg, btns, checkbox, width) - return document.getElementById(alertID).firstChild - } - // Define CHATBAR functions const chatbar = { @@ -815,7 +810,7 @@ if (sidebarToggle) sidebarToggle.click() else { fullWinStyle.remove() ; sync.mode('fullWindow') } } else if (mode == 'fullScreen') { - if (config.f11) siteAlert(app.msgs.alert_pressF11, `${app.msgs.alert_f11reason}.`) + if (config.f11) modals.alert(app.msgs.alert_pressF11, `${app.msgs.alert_f11reason}.`) else document.exitFullscreen().catch( err => console.error(app.symbol + ' ยป Failed to exit fullscreen', err)) }