StackOverflow Code Language Switcher

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

目前为 2023-01-08 提交的版本。查看 最新版本

作者
Christopher-Hayes
评分
0 0 0
版本
1.0
创建于
2023-01-08
更新于
2023-01-08
大小
6.8 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.