Download JS

Downloads the available code from Greasy Fork镜像's code page in .js format

Author
OHAS
Daily installs
0
Total installs
6
Ratings
0 0 0
Version
1.1.2
Created
2025-08-13
Updated
2025-08-15
Size
5.98 KB
License
MIT
Applies to

This script adds a simple but very useful feature to the Greasy Fork镜像 website: a Download button directly on the code view page.

When you navigate to the Code tab of any script, this UserScript inserts a new button on the toolbar, right next to the "Wrap lines" option. Clicking this button will download the source code displayed on the screen as a .js file.

Key Features

  • One-Click Download: Downloads the complete source code directly from your browser, eliminating the need to manually copy and paste.
  • Smart File Naming: The script reads the // @name tag within the code and uses the specified name to title the file (e.g., Script Name.js). If the @name tag is not found, the file will be named script.js by default.
  • Seamless Integration: The download button is added to Greasy Fork镜像's existing interface, making it look and feel like a native feature of the site.

How to Use

  1. Navigate to a script's page on Greasy Fork镜像.
  2. Click on the Code tab to view the source code.
  3. Look for the new Download button on the toolbar located above the code box.
  4. Click the Download button to save the .js file to your computer.
长期地址
遇到问题?请前往 GitHub 提 Issues。