Greasy Fork - Copy Code Button

Adds a split Copier button on both the script Info page (next to the install button) and the Code page (above the code block). Copy to clipboard or download as .js / .txt / .md. Includes Ctrl+Shift+C shortcut and live line/char stats.

Ezek a szkript azon változatai, ahol a kód módosítva lett. Minden verzió mutatása

  • v3.0 2026.03.08.

    v3.0 — Dual-page support + smart fetch

    • New: Button now appears on the Info page (/scripts/*), placed immediately to the right of the ? install help link
    • New: On the Info page, clicking Copier silently fetches the raw source via GM_xmlhttpRequest from the install URL — no need to navigate to the Code tab
    • New: Loading spinner state (Fetching…) shown while source is being retrieved
    • New: Download items are disabled (greyed out) during an active fetch to prevent duplicate requests
    • Improved: Both pages now share the exact same button component — same styles, same dropdown, same keyboard shortcut
    • Improved: @grant GM_xmlhttpRequest + @connect update.greasyfork.org added to header for cross-origin fetch support
  • v2.0 2026.03.08.

    Here's v2.0. Here's what changed:
    Button design — matches the image exactly: a dark split button with Copier on the left and a ∨ chevron on the right, separated by a thin divider line. The chevron rotates 180° when the dropdown is open.
    Dropdown (on chevron click):

    .js — downloads raw source as a JavaScript file, named after the script
    .txt — plain text, same content
    .md — wraps the code in a fenced ```javascript ``` code block inside a Markdown file

  • v1.0 2026.03.08.
  • v1.0 2026.03.08.