Add-ons für den Firefox-Browser
  • Erweiterungen
  • Themes
    • für Firefox
    • Wörterbücher & Sprachpakete
    • Andere Browser-Seiten
    • Add-ons für Android
Anmelden
Vorschau von ChatGPT Execute Code button

ChatGPT Execute Code button von 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)
8 Benutzer8 Benutzer
Melden Sie sich an, um diese Erweiterung zu verwenden
Laden Sie Firefox herunter und holen Sie sich die Erweiterung
Datei herunterladen

Metadaten zur Erweiterung

Über diese Erweiterung
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.
Bewertet mit 0 von 0 Bewertern
Melden Sie sich an, um diese Erweiterung zu bewerten
Es liegen noch keine Bewertungen vor

Stern-Bewertung gespeichert

5
0
4
0
3
0
2
0
1
0
Noch keine Bewertungen
Berechtigungen und DatenWeitere Informationen

Benötigte Berechtigungen:

  • Auf Ihre Daten für chat.openai.com zugreifen
Weitere Informationen
Version
1.0.0
Größe
34,99 KB
Zuletzt aktualisiert
vor 2 Jahren (28. März 2023)
Verwandte Kategorien
  • Sonstiges
Lizenz
MIT-Lizenz
Versionsgeschichte
  • Alle Versionen anzeigen
Zur Sammlung hinzufügen
Dieses Add-on melden
Mehr Erweiterungen von TinkerTank
  • Es liegen noch keine Bewertungen vor

  • Es liegen noch keine Bewertungen vor

  • Es liegen noch keine Bewertungen vor

  • Es liegen noch keine Bewertungen vor

  • Es liegen noch keine Bewertungen vor

  • Es liegen noch keine Bewertungen vor

Zur Mozilla-Startseite gehen

Add-ons

  • Über
  • Firefox-Add-ons-Blog
  • Erweiterungs-Workshop
  • Entwickler-Zentrum
  • Regeln für Entwickler
  • Blog der Gemeinschaft
  • Forum
  • Einen Fehler melden
  • Bewertungsleitfaden

Browser

  • Desktop
  • Mobile
  • Enterprise

Produkte

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Datenschutz
  • Cookies
  • Rechtliches

Sofern nicht anders vermerkt, steht der Inhalt dieser Seite unter der Creative Commons Attribution Share-Alike License v3.0 oder einer späteren Version.