Πρόσθετα προγράμματος περιήγησης Firefox
  • Επεκτάσεις
  • Θέματα
    • για το Firefox
    • Λεξικά και πακέτα γλωσσών
    • Άλλα προγράμματα περιήγησης
    • Πρόσθετα για Android
Σύνδεση
Προεπισκόπηση του ChatGPT Execute Code button

ChatGPT Execute Code button από TinkerTank

In ChatGPT, js code-blocks get a 'Execute Code' button, which allows js-code to be executed immediately in the context of the browser.

0 (0 reviews)0 (0 reviews)
6 χρήστες6 χρήστες
Θα χρειαστείτε το Firefox για να χρησιμοποιήσετε αυτήν την επέκταση
Λήψη Firefox και απόκτηση επέκτασης
Λήψη αρχείου

Μεταδεδομένα επέκτασης

Σχετικά με την επέκταση
This Firefox plugin adds an "Execute Code" button to the JavaScript code blocks generated by ChatGPT. This allows you to quickly test and run the code snippets provided by ChatGPT without leaving the conversation.

See: https://github.com/tijszwinkels/chatgpt-execute-js-firefox.git for more information.

Usage

Go to chat.openai.com, and ask it to generate some js code.

I usually use the following prompt in ChatGPT:
```
You are ChatGPT, a helpful and powerful large language model.

Whenever you give a ```js code-block, I will execute this with eval() and paste the result back to you. Use javascript that can run inside the browser. Make sure to not use console.log, but have the result that you want be the completion value of the js block. Remember that if the final result is a promise, assign it to the already existing `ASYNC_EVAL` variable.

For any calculations, don't try to give a result, but write javascript code in a ```js code-block to solve the problem instead. Using this, you can fetch external data. If doing so, use fetch and not axios. Prefer public api's that do not require an api key. The result of a fetch is a promise, so assign these to the `ASYNC_EVAL` variable. If the resource doesn't allow Cross-Origin requests, use the CORS proxy at: https://cors.tinkertankai.eu/<url>

User:
```

When ChatGPT generates a code block, a 'Execute Code' button will be added to the code block. Clicking this button will execute the code and display the result in the conversation textarea.

Some interesting questions:

What's todays date?
Can you show me the notes of Fur Elise? Can you write me some js code that plays this song?
Can you write me a zooming mandelbrot fractal in webgl?
Can you write a simulation of a tic-tac-toe board, and play a few moves?
Can you write a poem generator and generate a poem with it?

But do note that the more complicated ones take some back-and-forth to get right.

Now, please treat this technology with respect, and make sure you understand the js code you're running. Especially since it can do external api-calls, don't just run code unseen.
Βαθμολογήθηκε με 0 από 0 αξιολογητές
Συνδεθείτε για βαθμολόγηση της επέκτασης
Δεν υπάρχουν ακόμη βαθμολογίες

Η βαθμολογία αστεριών αποθηκεύτηκε

5
0
4
0
3
0
2
0
1
0
Καμία κριτική ακόμα
Δικαιώματα και δεδομέναΜάθετε περισσότερα

Απαιτούμενα δικαιώματα:

  • Πρόσβαση στα δεδομένα σας για chat.openai.com
Περισσότερες πληροφορίες
Έκδοση
1.0.0
Μέγεθος
34,99 KB
Τελευταία ενημέρωση
2 χρόνια πριν (28 Μαρ 2023)
Σχετικές κατηγορίες
  • Άλλα
Άδεια
Άδεια MIT
Ιστορικό εκδόσεων
  • Προβολή όλων των εκδόσεων
Προσθήκη σε συλλογή
Αναφορά προσθέτου
Περισσότερες επεκτάσεις από TinkerTank
  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

Μετάβαση στην αρχική σελίδα της Mozilla

Πρόσθετα

  • Σχετικά
  • Blog προσθέτων Firefox
  • Εργαστήριο επεκτάσεων
  • Κέντρο προγραμματιστών
  • Πολιτικές προγραμματιστών
  • Blog κοινότητας
  • Φόρουμ
  • Αναφορά σφάλματος
  • Οδηγίες κριτικής

Προγράμματα περιήγησης

  • Desktop
  • Mobile
  • Enterprise

Προϊόντα

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Απόρρητο
  • Cookie
  • Νομικά

Εκτός από τα μέρη όπου αναφέρεται διαφορετικά, το περιεχόμενο του ιστοτόπου υπόκειται στην άδεια Creative Commons Attribution Share-Alike License v3.0 ή τυχόν νεότερες εκδόσεις.