Skip to content

Commit

Permalink
Moved siteAlert() def to feedback funcs section
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jun 25, 2024
1 parent 9c1407a commit 7094e68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
return true
})

function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )}

// Selectively DISABLE content or user script
if (!/chat(?:gpt|\.openai)\.com/.test(window.location.hostname)) return
document.documentElement.setAttribute('cif-extension-installed', true) // for userscript auto-disable
Expand Down Expand Up @@ -114,6 +111,9 @@
shadow || chatgpt.isDarkMode() ? '' : 'shadow' )
}

function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )}

// Define UI functions

async function insertToggle() {
Expand Down
6 changes: 3 additions & 3 deletions edge/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
return true
})

function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )}

// Selectively DISABLE content or user script
if (!/chat(?:gpt|\.openai)\.com/.test(window.location.hostname)) return
document.documentElement.setAttribute('cif-extension-installed', true) // for userscript auto-disable
Expand Down Expand Up @@ -114,6 +111,9 @@
shadow || chatgpt.isDarkMode() ? '' : 'shadow' )
}

function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )}

// Define UI functions

async function insertToggle() {
Expand Down
6 changes: 3 additions & 3 deletions opera/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
return true
})

function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )}

// Selectively DISABLE content or user script
if (!/chat(?:gpt|\.openai)\.com/.test(window.location.hostname)) return
document.documentElement.setAttribute('cif-extension-installed', true) // for userscript auto-disable
Expand Down Expand Up @@ -114,6 +111,9 @@
shadow || chatgpt.isDarkMode() ? '' : 'shadow' )
}

function siteAlert(title = '', msg = '', btns = '', checkbox = '', width = '') {
return chatgpt.alert(`${ config.appSymbol } ${ title }`, msg, btns, checkbox, width )}

// Define UI functions

async function insertToggle() {
Expand Down

0 comments on commit 7094e68

Please sign in to comment.