Skip to content

Commit

Permalink
Bumped JS resources ↞ [auto-sync from https://github.com/adamlui/ai-w…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 6, 2024
1 parent c842bec commit ed3ef72
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions greasemonkey/chatgpt-widescreen-mode.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -242,9 +242,9 @@
// @connect cdn.jsdelivr.net
// @connect update.greasyfork.org
// @require https://cdn.jsdelivr.net/npm/@kudoai/[email protected]/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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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))
}
Expand Down

0 comments on commit ed3ef72

Please sign in to comment.