ChatGPT Boutons de copie du code de chat et d’exportation du code

exister chatgpt.com Ajoutez une animation dans le coin inférieur droit du bloc de code supérieur“Copier le code”bouton et un pour ChatGPT Le bloc de code en réponse ajoute un bouton d’exportation,Invite l’utilisateur à enregistrer le code dans un fichier basé sur le langage de programmation détecté par le nom de classe du bloc de code。

Auteur
人民的勤务员
Installations quotidiennes
1
Installations (total)
7
Notes
0 0 0
Version
1.2.0.0
Créé
21/09/2024
Mis à jour
23/09/2024
Compatibilité
Compatible avec Firefox Compatible avec Chrome Compatible avec Opera Compatible avec Safari Compatible avec Edge
Licence
MIT
S'applique à

ChatGPT Chat copy code button

「 exist chatgpt.com Add an animation with 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 for ChatGPTRelated scripts

🔍you may be looking for Web related scripts

🔍you may be looking for GitHubRelated scripts

  • GitHubSubmit information displayHTML: This script will GitHub The submission information on is converted into HTML view,to see submission details more clearly。It will automatically submit the information list、The commit header and latest commit information are converted to HTML Format,Provide better visual effects and user experience。
  • GitHub File list beautifier: GitHub File List Beautifier is a user script,used to enhance GitHub Display effect of files in warehouse。It can add colors to files and folders,and replace the file type icons with small images,Makes the code base easier to browse and manage。
  • Github List of code languages ​​show all: Expand Github List of languages ​​on the repository,Show each language,Instead of hiding small parts in “other” Down
  • GitHub Automatically confirm device authorization: existGitHubThe authorization page automatically enters the authorization code and automatically confirms it.。
  • GitHubfolder下载: Add a download button,Allows easy downloading of specific GitHub 文件夹。
  • GitHubDownload single files and copy filesURL: Add button at the end of each file line,to copy the original file URL and download files
  • githubShow warehouse size: existGithubShow warehouse size when viewing and searching warehouses
  • GitHub Sort by Date: Change the sorting method of warehouse list files to descending date order,Conveniently view the latest updated files。

🔍you may be looking for GoogleRelated 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,Enable 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 for GreasyForkRelated 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: 增强greasyfork导航栏,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 Related scripts

🔍you may be looking for adult script

🔍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 to 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