Skip to content

Commit

Permalink
Condensed browser flags init ↞ [auto-sync from adamlui/chatgpt-apps]
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 11, 2024
1 parent df1c3ea commit 1c840cc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions greasemonkey/bravegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.9.11.1
// @version 2024.9.11.2
// @license MIT
// @icon https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287
// @icon64 https://media.bravegpt.com/images/icons/bravegpt/icon64.png?0a9e287
Expand Down Expand Up @@ -238,12 +238,8 @@
.replace(/(\d+)-?([a-zA-Z-]*)$/, (_, id, name) => `${id}/${ !name ? 'script' : name }.meta.js`)

// Init BROWSER flags
const browser = {
isChrome: chatgpt.browser.isChrome(),
isFirefox: chatgpt.browser.isFirefox(),
isEdge: chatgpt.browser.isEdge(),
isBrave: chatgpt.browser.isBrave(),
isMobile: chatgpt.browser.isMobile() }
const browser = {} ; ['Chrome', 'Firefox', 'Edge', 'Brave', 'Mobile'].forEach(platform =>
browser['is' + platform] = chatgpt.browser['is' + platform]())
browser.isPortrait = browser.isMobile && (window.innerWidth < window.innerHeight)

// Init DEBUG mode
Expand Down

0 comments on commit 1c840cc

Please sign in to comment.