GF Auto Add to My Set

在脚本详情页一键把脚本加入自定义集合并保存

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
Aria Chase
Dnevne instalacije
0
Ukupnih instalacija
2
Ocjene
0 0 0
Verzija
1.0
Stvoreno
27.06.2025.
Ažurirano
27.06.2025.
Size
2,73 KB
Licenza
MIT
Primjenjuje se

Greasy Fork 自定义收藏脚本 — 附加信息

用途:在脚本详情页插入一颗 按钮,一键把当前脚本加入 我的脚本集 并自动保存,省去 “复制 ID → 包含 → 保存” 的手动流程。


安装要求

项目 版本要求
浏览器 任意支持 Userscript 插件的现代浏览器
Userscript 管理器 Tampermonkey ≥ 4.18 / Violentmonkey ≥ 2.14
Greasy Fork 账户 必须先 登录,并提前创建好目标脚本集

快速安装

  1. 在 Tampermonkey 面板点击 “新建脚本”
  2. 复制以下 RAW 源码覆盖默认模板,SET_EDIT_URL 改成你的脚本集编辑页地址
// ==UserScript==
// @name         GF Auto Add to My Set
// @namespace    https://greasyfork.org/
// @version      1.0
// @description  一键把当前脚本加入自定义脚本集(自动包含+保存)
// @match        https://greasyfork.org/*/scripts/*
// @match        https://greasyfork.org/*/users/*/sets/*/edit*
// @grant        GM_openInTab
// @grant        GM_addStyle
// @run-at       document-idle
// ==/UserScript==

提示SET_EDIT_URL 只需修改一次,后续脚本会自动复用。


使用方法

场景 操作 结果
浏览脚本详情页 点击标题右侧 ★ 加入集合 新标签页打开脚本集编辑页,脚本 ID 已写入并自动完成「包含 → 保存」
多脚本批量加入 连续在不同脚本页点击星号 每个脚本都会依次被加入集合,无需手动刷新

高级配置

变量 说明 默认值
SET_EDIT_URL 目标脚本集 编辑页面完整 URL (示例) https://greasyfork.org/zh-CN/users/123456/sets/789012/edit
btn.textContent 按钮文字 ★ 加入集合
.gf-autoadd-btn 自定义按钮样式(CSS) 见脚本内 GM_addStyle

常见问题(FAQ)

1 . 按钮没有出现?

  • 确认脚本已 启用 并匹配当前域名 (greasyfork.org)。
  • 刷新页面(Ctrl + F5)或禁用缓存后重试。

### 2 . 点击后没有自动保存?

  • 检查浏览器是否 拦截了弹窗(脚本会打开新的标签页)。
  • 若出现「CSRF token missing」等提示,请重新登录 Greasy Fork。

### 3 . 我想换到另一个脚本集?

  • 复制对应的 编辑页 URL,替换脚本顶部的 SET_EDIT_URL 常量即可。

更新日志

版本 日期 变更
1.0 2025‑06‑27 ✅ 首发:一键加入自定义脚本集并自动保存

感谢使用! 发现问题或有改进建议,欢迎在 Greasy Fork 评论区反馈。