Components adizionâi par Firefox
  • Estensions
  • Temis
    • par Firefox
    • Dizionaris e pachets di lenghis
    • Altris sĂŽts
    • Components adizionâi par Android
Jentre
Anteprime di ChatGPT Execute Code button

ChatGPT Execute Code button di 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 utents6 utents
Ti covente Firefox par doprâ cheste estension
Discjame Firefox e instale la estension
Discjame il file

Metadâts de estension

Informazions su la estension
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.
Valutât 0 di 0 recensôrs
Jentre par dâ un vôt a cheste estension
No son ancjemò valutazions

Valutazion in stelis salvade

5
0
4
0
3
0
2
0
1
0
Ancjemò nissune recension
Permès e dâtsPlui informazions

Permès obligatoris:

  • Acedi ai dâts utent di chat.openai.com
Altris informazions
Version
1.0.0
Dimension
34,99 kB
Ultin inzornament
2 jierren lyn (28 mrt. 2023)
Categoriis coreladis
  • Altri
Licence
Licence MIT
Cronologjie versions
  • ViĂ´t dutis lis versions
Zonte ae racuelte
Segnale chest component adizionâl
Altris estensions di TinkerTank
  • No son ancjemò valutazions

  • No son ancjemò valutazions

  • No son ancjemò valutazions

  • No son ancjemò valutazions

  • No son ancjemò valutazions

  • No son ancjemò valutazions

Va ae pagjine principâl dal sÎt Mozilla

Components adizionâi

  • Informazions
  • Blog dai components adizionâi di Firefox
  • Laboratori estensions
  • Centri di svilup
  • Politichis pal svilupadĂ´r
  • Blog de comunitât
  • Forum
  • Segnale un erĂ´r
  • Vuide pes recensions

NavigadĂ´rs

  • Desktop
  • Mobile
  • Enterprise

Prodots

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Riservatece
  • Cookies
  • Notis legâls

Gjavant dulà che al è indict in mÝt diviers, i contignÝts su chest sÎt a son distribuÎts cun licence Creative Commons Atribuzion CondivÎt te stesse maniere v3.0 o versions sucessivis.