Skip to content

Commit 40d1052

Browse files
committed
Removed unneeded symbols
1 parent 6d5fbd3 commit 40d1052

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description A Greasemonkey template to start using chatgpt.js like a boss
44
// @author chatgpt.js
55
// @namespace https://chatgpt.js.org
6-
// @version 2024.12.6
6+
// @version 2024.12.12
77
// @license MIT
88
// @icon https://cdn.jsdelivr.net/gh/KudoAI/[email protected]/starters/greasemonkey/media/images/icons/robot/icon48.png
99
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/[email protected]/starters/greasemonkey/media/images/icons/robot/icon64.png
@@ -22,22 +22,22 @@
2222
(async () => {
2323

2424
// Init config
25-
const config = { prefix: 'chatgptScript' }; loadSetting('skipAlert');
25+
const config = { prefix: 'chatgptScript' } ; loadSetting('skipAlert')
2626

2727
// Print chatgpt.js methods
28-
await chatgpt.isLoaded(); chatgpt.printAllFunctions(); // to console
28+
await chatgpt.isLoaded() ; chatgpt.printAllFunctions() // to console
2929

3030
// Show alert
31-
if (!config.skipAlert) {
31+
if (!config.skipAlert)
3232
chatgpt.alert('≫ ChatGPT script loaded! 🚀', // title
3333
'Success! Press Ctrl+Shift+' // msg
3434
+ ( navigator.userAgent.indexOf('Firefox') > -1 ? 'K' : 'J' )
3535
+ ' to view all chatgpt.js functions.',
3636
function getHelp() { // button
37-
window.open('https://github.kudoai.com/chatgpt.js-greasemonkey-starter/issues', '_blank', 'noopener'); },
37+
window.open('https://github.kudoai.com/chatgpt.js-greasemonkey-starter/issues', '_blank', 'noopener') },
3838
function dontShowAgain() { // checkbox
39-
saveSetting('skipAlert', !config.skipAlert); });
40-
}
39+
saveSetting('skipAlert', !config.skipAlert) }
40+
)
4141

4242
// Your code here...
4343
// Your code here...
@@ -47,7 +47,7 @@
4747
// Your code here...
4848

4949
// Define HELPER functions
50-
function loadSetting(...keys) { keys.forEach(key => { config[key] = GM_getValue(config.prefix + '_' + key, false); });}
51-
function saveSetting(key, value) { GM_setValue(config.prefix + '_' + key, value); config[key] = value; }
50+
function loadSetting(...keys) { keys.forEach(key => config[key] = GM_getValue(config.prefix + '_' + key, false)) }
51+
function saveSetting(key, value) { GM_setValue(config.prefix + '_' + key, value) ; config[key] = value }
5252

5353
})();

0 commit comments

Comments
 (0)