StackOverflow Code Language Switcher

Adds a dropdown to code blocks in StackOverflow to switch the code language. Powered by GPT-3 AI.

Από την 08/01/2023. Δείτε την τελευταία έκδοση.

Δημιουργός
Christopher-Hayes
Βαθμολογίες
0 0 0
Έκδοση
1.0
Δημιουργήθηκε την
08/01/2023
Ενημερώθηκε την
08/01/2023
Μέγεθος
7 KB
Άδεια
GPL3
Εφαρμόζεται σε

stackoverflow-code-language-switcher

Adds a dropdown to code blocks in StackOverflow to switch the code language. Powered by GPT-3 AI.

Requirements

  1. Install Violentmonkey, Tampermonkey, or Greasemonkey.

  2. OpenAI API Key

Installation

  1. Manually install the userscript.js.

  2. Once installed, open the script editor/settings, and under "values", set the openai_key to your OpenAI API key.

Usage

  1. Go to a StackOverflow question with code blocks.

  2. Click on the language dropdown to switch the code language.

The lanuage list can be customized by editing the supported_languages array in the script "values" config.