Greasy Fork镜像 is available in English.

Commppt Commport قورالى

كود پارچىلىرىنى ساقلاش ياكى كۆچۈرۈش تالونىنى ئۆز ئىچىگە ئالغان Cyngpt كود بۆلەكلىرىنى ئۆز ئىچىگە ئالغان Cyngpt كود بۆلەكلىرىنى ئۆز ئىچىگە ئالغان ئىقتىدارنى قوشۇڭ.

ئاپتورى
人民的勤务员
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
2
باھا نومۇرى
0 0 0
نەشرى
2025.6.2.1
قۇرۇلغان ۋاقتى
2025-05-29
يېڭىلانغان ۋاقتى
2025-06-02
Size
49.2 KB
ماسلىشىشچانلىقى
Firefox بىلەن ماسلىشىدۇ Chrome بىلەن ماسلىشىدۇ Opera بىلەن ماسلىشىدۇ Safari بىلەن ماسلىشىدۇ Edge بىلەن ماسلىشىدۇ
ئىجازەتنامىسى
MIT
قوللايدىغىنى

简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️access GitHub Readme file on for a better experience。

Recommended use:
Support
Support
Support
💡 Tip: The script manager and browser listed above do not represent all
The script runs normally in the following environment
Passed

ChatGPT Code Tool

「 Add functionality to ChatGPT code blocks, including the option to save or copy code snippets. 」

Views

Download:Github | ⭐Greasy Fork

Scripting functions and implementation

Code block addition“Save the code”and“Copy the code”Button,To quickly save or copy code snippets。

Functional Overview

1. Detect code blocks

  • Automatically add action buttons for each code block(Avoid repeated additions)。

2. Add action button

  • Save code button

    • Code block-based language(Infer file extensions by class name)。
    • Dynamically set according to extension MIME type。
    • Create a download link and trigger a download。
  • Copy code button

    • Copy code snippets to clipboard。
    • Provide status feedback(like“Copy successfully”or“Copy failed”)。

3. Dynamic adaptation

  • monitor DOM Changes,Automatically add buttons to the newly added code blocks。

4. Button style and interaction

  • Customize button styles(Background color、frame、Mouse hover effect)。

  • Status feedback mechanism:

    • Normal state:Blue Button。
    • At work:Green button displays status(like“Saving...”or“Copyed”)。
    • Error status:The red button displays error message。

💖 The script referenced or used the following script:

🧑‍💻 @CarpeNoctemXD ⇒ 📜 ChatGPT Code Tools

Help

Recommended browser and script manager:

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

If you need to learn more about how to install user scripts,Click meView the teaching of pictures and texts!

View all publish scripts

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联