Skip to content

Commit

Permalink
Enabled Widescreen mode by default (adamlui/chatgpt-widescreen#30 (co…
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 12, 2025
1 parent 9013ee4 commit f9839b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions chatgpt-widescreen/chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
settings.imports.import({ env }) // to load/save active tab's settings using env.site

// Init SETTINGS
const firstRunKey = `${env.site}_isFirstRun`
if ((await chrome.storage.sync.get(firstRunKey))[firstRunKey] == undefined) { // activate widescreen on install
settings.save('wideScreen', true) ; settings.save('isFirstRun', false) }
await settings.load('extensionDisabled', ...sites[env.site].availFeatures)

// Add CHROME MSG listener for background/popup requests to sync modes/settings
Expand Down
3 changes: 3 additions & 0 deletions chatgpt-widescreen/firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
settings.imports.import({ env }) // to load/save active tab's settings using env.site

// Init SETTINGS
const firstRunKey = `${env.site}_isFirstRun`
if ((await chrome.storage.sync.get(firstRunKey))[firstRunKey] == undefined) { // activate widescreen on install
settings.save('wideScreen', true) ; settings.save('isFirstRun', false) }
await settings.load('extensionDisabled', ...sites[env.site].availFeatures)

// Add CHROME MSG listener for background/popup requests to sync modes/settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
// @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-perplexity.ai + poe.com!
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2025.1.11.2
// @version 2025.1.11.3
// @license MIT
// @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e
// @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e
Expand Down Expand Up @@ -423,6 +423,8 @@
settings.imports.import({ app }) // for app.msgs + app.configKeyPrefix refs

// Init SETTINGS
if (GM_getValue(`${app.configKeyPrefix}_isFirstRun`) == undefined) { // activate widescreen on install
settings.save('wideScreen', true) ; settings.save('isFirstRun', false) }
settings.load(sites[env.site].availFeatures)

// Define FUNCTIONS
Expand Down

0 comments on commit f9839b9

Please sign in to comment.