Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plugins): 添加创作源信息保护工具插件 #112

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MoreBugOfDog
Copy link
Contributor

@MoreBugOfDog MoreBugOfDog commented Jan 25, 2025

鉴于 Gandi 近期强制在导出的作品project.json中添加Platform水印,原因是会在工程文件中添加素材集市拓展专有数据。但是在未添加实验拓展时,依旧会打上水印,导致部分IDE报不兼容或非稳定提示。这个插件通过在toJSON的基础上修改platform数据来更改水印内容,主要逻辑如下:

 const hackPlatformUpdate = () => {
    const _toJSON = vm.toJSON;
    vm.toJSON = function (...args) {
      const result = JSON.parse(_toJSON.apply(this, args));
      result.meta.platform = { name: ideOrigin, url: ideLinkOrigin };
      return JSON.stringify(result);
    };
  };

没有安全漏洞风险。同时,利用description为ReactNode类型的便利,通过description制作文档。

image

已进行国际化配置。
点我下载 ProtectingSource.zip 解压后可测试 蓝奏云
为外国朋友提供Github下载 ProtectingSource.zip
把下面的链接复制到 Gandi 自定义插件 当中以加载:https://static.bcmcdn.com/coco/player/unstable/HJn9pdf_kx.text/javascript?hash=lqET2xUnyHkAxw7kq2NV1BOj5XEu&t=.js

@HanHanDeYaYa
Copy link

所以怎么提前测试他呢?有没有链接?

@MoreBugOfDog
Copy link
Contributor Author

MoreBugOfDog commented Jan 25, 2025

所以怎么提前测试他呢?有没有链接?

[ProtectingSource.zip](https://skydog.lanzouw.com/iXREB2lyitni)

@MoreBugOfDog
Copy link
Contributor Author

@MoreBugOfDog
Copy link
Contributor Author

@zxq142857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants