Skip to content

Commit

Permalink
Moved function defs up for readability ↞ [auto-sync from `KudoAI/chat…
Browse files Browse the repository at this point in the history
…gpt.js-chrome-starter`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent cc23dbd commit 232755e
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions starters/chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,6 @@
// Init CONFIG
await settings.load(settings.availKeys)

// LOG chatgpt.js methods
await chatgpt.isLoaded()
chatgpt.printAllFunctions()
if (!config.skipAlert) {
chatgpt.alert('≫ ChatGPT extension loaded! 🚀', // title
'Success! Press Ctrl+Shift+J to view all chatgpt.js methods.', // msg
function getHelp() { // button
window.open(config.ghRepoURL + '/issues', '_blank', 'noopener') },
function dontShowAgain() { // checkbox
settings.save('skipAlert', !config.skipAlert) }
)}

// Your code here...
// Your code here...
// Your code here...
// Your code here...
// Your code here...
// Your code here...

// Define FEEDBACK functions

function notify(msg, position = '', notifDuration = '', shadow = '') {
Expand All @@ -60,4 +41,24 @@
// sync each potentially updated setting passed to settings.load()
}})}

// Run MAIN routine

await chatgpt.isLoaded()
chatgpt.printAllFunctions() // to console
if (!config.skipAlert) {
chatgpt.alert('≫ ChatGPT extension loaded! 🚀', // title
'Success! Press Ctrl+Shift+J to view all chatgpt.js methods.', // msg
function getHelp() { // button
window.open(config.ghRepoURL + '/issues', '_blank', 'noopener') },
function dontShowAgain() { // checkbox
settings.save('skipAlert', !config.skipAlert) }
)}

// Your code here...
// Your code here...
// Your code here...
// Your code here...
// Your code here...
// Your code here...

})()

0 comments on commit 232755e

Please sign in to comment.