Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loo2k/figma-backup
保住肥姑妈(Figma 源文件备份)
https://github.com/loo2k/figma-backup
backup codesign fig figma figma-plugin userscript
Last synced: 2 months ago
JSON representation
保住肥姑妈(Figma 源文件备份)
- Host: GitHub
- URL: https://github.com/loo2k/figma-backup
- Owner: loo2k
- License: mpl-2.0
- Created: 2022-03-17T16:54:39.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-14T11:18:42.000Z (about 2 years ago)
- Last Synced: 2024-04-15T03:02:23.558Z (10 months ago)
- Topics: backup, codesign, fig, figma, figma-plugin, userscript
- Language: Vue
- Homepage: https://luke.gd/figma-backup
- Size: 3.66 MB
- Stars: 29
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 保住肥姑妈(Figma 源文件备份)
[查看官网](https://luke.gd/figma-backup)
## 功能介绍
[![](images/intro.png)](https://luke.gd/figma-backup)
- 🏢 支持切换多个账号和企业空间
- 📜 支持备份最近/草稿箱/团队的源文件
- 📦 支持按需下载 .fig 源文件
- ☁️ 支持 [CoDesign](https://codesign.qq.com/) 源文件云备份## 如何使用
### 安装插件
- 第一步:安装 [Violentmonkey 插件](https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag)
- 第二步:安装 [保住肥姑妈(Figma 源文件备份)](https://luke.gd/figma-backup/figma.user.js) 脚本**注意事项:**
- 除了 [Violentmonkey](https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag) 你也可以使用 [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) 等脚本安装器
- **如果你在国内无法正常访问上面的链接,可以使用以下备用链接**
- [Violentmonkey 安装镜像](https://www.gugeapps.net/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag)
- [Tampermonkey 安装镜像](https://www.gugeapps.net/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo)
- [Figma-backup 脚本镜像 - Greasyfork](https://greasyfork.org/zh-CN/scripts/441666)
- [Figma-backup 脚本镜像 - jsDelivr](https://cdn.jsdelivr.net/gh/loo2k/figma-backup/figma.user.js)### 视频演示
https://user-images.githubusercontent.com/469964/158935141-1dff7be2-6d3b-458a-b59b-ee0f98c0c542.mp4
## 常见问题
Q: 该脚本是否有安全问题
**A: 脚本代码完全开源,仅有数据埋点统计使用次数信息**
Q: 批量下载时可能会遇到提示是否允许下载多个文件
**A: 点击允许即可**
## 贡献代码
### 如何进行本地调试
下载代码并启动本地开发模式,启动后会在本地运行一个 `localhost:3000` 的服务
```shell
$ git clone [email protected]:loo2k/figma-backup.git
$ npm i
$ npm run dev
```在 Violentmonkey 中创建一个临时调试用的脚本
```js
// ==UserScript==
// @name 🚀 本地调试: 保住肥姑妈
// @namespace figmahelper
// @version 0.1
// @description Figma 源文件备份
// @author Luke
// @match *://codesign.qq.com/*
// @match *://codesign.woa.com/*
// @match *://*.figma.com/*
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @connect *://*.figma.com/*
// @connect *://*.codesign.qq.com/*
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js
// ==/UserScript==(function () {
"use strict";
if (location.href === "http://localhost:3000/") return;
var script = document.createElement("script");
script.type = "module";
script.src = "http://localhost:3000/@vite/client";
document.body.appendChild(script);
var script2 = document.createElement("script");
script2.type = "module";
script2.src = "http://localhost:3000/src/main.js";
document.body.appendChild(script2);
})();
```