Adds a dropdown to code blocks in StackOverflow to switch the code language. Powered by GPT-3 AI.
当前为
Adds a dropdown to code blocks in StackOverflow to switch the code language. Powered by GPT-3 AI.
Install Violentmonkey, Tampermonkey, or Greasemonkey.
Manually install the userscript.js.
Once installed, open the script editor/settings, and under "values", set the openai_key to your OpenAI API key.
Go to a StackOverflow question with code blocks.
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.