ChatGPT Chat kódmásolás és kódexportálás gombok

létezik chatgpt.com Adjon hozzá animációt a felső kódblokk jobb alsó sarkába“Kód másolása”gombot és egy for ChatGPT A kódblokk válaszként hozzáadja az export gombot,Arra kéri a felhasználót, hogy a kódblokk osztályneve által észlelt programozási nyelv alapján mentse el a kódot egy fájlba。

Mint 2024.10.18.. Lásd a legutóbbi verzió

Fejlesztő
人民的勤务员
Értékelések
0 0 0
Verzió
1.2.0.0
Létrehozva
2024.09.21.
Frissítve
2024.10.18.
Size
40 KB
Kompatibilitás
Kompatibilis Firefox böngészővel Kompatibilis Chrome böngészővel Kompatibilis Opera böngészővel Kompatibilis Safari böngészővel Kompatibilis Edge böngészővel
Licensz
MIT
Érvényes

ChatGPT Chat copy code button

「 exist chatgpt.com Add an animation in the lower right corner of the upper code block“Copy code”button 」

Views

Download:Github | ⭐Greasy Fork

Update record

🛠️ ChatGPT Chat copy code button Change log

📅 2024-09-23 08:58:07- Ver 1.2.0.0

repair: • Newly sent content also incorrectly adds a button,Change to determine whether the element has the following sub-elements when addingquerySelector('div.flex.items-center.text-token-text-secondary') repair: •Problem with export code detection code type errorvar languageDiv = elem.parentElement.parentElement.querySelector('div.flex.items-center.text-token-text-secondary')var languageDiv = elem.querySelector('div.flex.items-center.text-token-text-secondary')


📅 2024-09-22 10:44:07- Ver 1.1.0.0

New: •Add a button to export code,The added code comes from the script →ChatGPT Code Export Button


📅 2024-09-22 07:06:07- Ver 1.0.0.0

New: •Compatible with new version ChatGPT Official website


ChatGPT Chat Copy Code Button user script

introduce

The user script is chatgpt.com and share.nezhagpt.cloud code block on the page add a“Copy code”button。The button is located in the lower right corner of the code block,With animation effects,Users can easily copy the code to the clipboard with the click of a button。

Function

  • In the lower right corner of the code block add a“Copy code”button
  • After clicking the button,The code will be copied to the clipboard
  • There is a feedback animation after clicking the button,button will show“Copied!”hint
  • Button color changes on mouseover

Usage scenarios

  • Developers can easily copy code snippets
  • It is more convenient for learners to view code
  • Automatically observe and add copy button for newly loaded code blocks

Installation steps

  1. Install a browser extension that supports userscripts,For example Tampermonkey or Violentmonkey
  2. Click the green button above to install。

compatibility

  • support Chrome、Firefox、Edge、Opera and Safari Wait for mainstream browsers

Project address

Feedback address

Contributors

Authorize

  • This script follows MIT License open source

Snipaste_2024-09-22_07-32-11.png

🔍you may be looking forChatGPTRelated scripts

Help

Recommended browsers and script managers:

  • Greasemonkey + Waterfox
  • Tampermonkey/Violentmonkey + Firefox
  • Tampermonkey/Violentmonkey + Chrome
  • Userscripts + ios Safari
  • Violentmonkey/KiWiBrowser + Android

If you need to know more about how to install userscripts,click meView graphic teaching!

More user scripts / back to top↑

View all publish scripts

🔍you may be looking forChatGPTRelated scripts

🔍You may be looking for web related scripts

🔍you may be looking forGitHubRelated scripts

🔍you may be looking forGoogleRelated scripts

  • Google Advanced search: This is a for Google Add user script for advanced search form。It adds a hideable advanced search form at the top of the page,Enables you to search for information more precisely。
  • Google Search and block specific sites: Block specific sites from search engine results,Help users filter out unwanted search results。 Custom input blocking site。Format-zhihu -baidu Used to block Google search content

🔍you may be looking forGreasyForkRelated scripts

  • GreasyForksuitable for enhancement: The script details page is added. It is suitable for links to be added. Click to open the web page.,Copy web page,tire search
  • GrreasyFork User-published script data visualization: useChart.jsObtaining and visualizing user script data,And generate a chart on the user’s personal homepage to display the detailed installation status below.
  • GreaysFork Enhance WebHookSync settings: This script can help you quickly enter script synchronization information,And add language codes for multiple countries in batches,Instead of clicking the selection boxes one by one and going to the corresponding URL。
  • GreasyFork Markdown toobar: Used by default in forums Markdown Format,Add format help link and Markdown Toolbar introduction
  • GreasyFork Show script ratings: Add evaluation scores to script list
  • GreasyFork Advanced search: Search using Google GreasyFork and SleazyFork superior script
  • GreasyFork Navigation barEnhance: EnhancegreasyforkNavigation bar,Add user list,User console, etc.
  • GreasyforkGlue craftsman: Enhancegreasyfork,Copy code,Script download,Precise time to seconds,Home page cleanup,Discuss one-click reporting,Script list jump code added download Beautify view code and display code reference files,show script icon,Jump to adult scripts and other operations
  • Greasyfork Notification assistant: When there’s a new reply to your script or to a discussion you’re participating in,The script will display the latest discussion content in a modal window on the web page。
  • Script FinderGrease Monkey Script Finder: Script Finder is a user script(userscript),It helps you find and manage userscripts on any website

🔍You may be looking for adult scripts

🔍You may be looking for automatic translation

  • foreign language terminator: Recognize non-Chinese characters,If the length is greater than 5 And the translated text does not contain Chinese,then replace it with Chinese,Need to be accessiblegooglenetwork
  • web page translation——Automatically translated into Chinese: Give the lower right corner of each non-Chinese web page(Can be adjusted to the lower left corner)add a google Translate icon,This version is a Chinese translation version,Only translate foreign languages ​​into Chinese,Add automatic translation