Skip to content

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

License

Notifications You must be signed in to change notification settings

Christopher-Hayes/stackoverflow-code-language-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stackoverflow-code-language-switcher

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

Screenshot 1

Demo

Requirements

  1. Install Violentmonkey, Tampermonkey, or Greasemonkey.

  2. OpenAI API Key

Installation

  1. Install from GreasyFork: https://greasyfork.org/en/scripts/457875-stackoverflow-code-language-switcher or 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.

About

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

Topics

Resources

License

Stars

Watchers

Forks