YDX-2147483647 / BIT-enhanced

一些方便大家使用 BIT 相关网站的用户脚本和用户样式表。
https://ydx-2147483647.github.io/BIT-enhanced/
GNU General Public License v3.0
9 stars 1 forks source link

上架 Greasy Fork #4

Open YDX-2147483647 opened 1 year ago

YDX-2147483647 commented 1 year ago

Greasy Fork 可用 WebHook 自动导入

另外,可能需要更新一些元数据

进度

YDX-2147483647 commented 1 year ago

刚刚加了两个试试。

YDX-2147483647 commented 1 year ago

WebHook 无效,GreasyFork 似乎收到了请求但未更新。

{"updated_scripts":[],"updated_failed":[]}

别人的会返回修改了哪些脚本。

{"updated_scripts":["https://greasyfork.org/zh-CN/scripts/378513-bilibili-cc%E5%AD%97%E5%B9%95%E5%8A%A9%E6%89%8B"],"updated_failed":[]}

定时自动更新

https://greasyfork.org/zh-CN/import 显示在等。

BIT-补足页面标题 - scripts.sync_type_2.name 同步中,上次同步于 2023-06-13(8小时前)。

https://github.com/JasonBarnabe/greasyfork/blob/2c3a26d4f9457f49fd123998b2958cec90f45160/app/views/import/index.html.erb#L12

触发更新

https://github.com/JasonBarnabe/greasyfork/blob/2c3a26d4f9457f49fd123998b2958cec90f45160/lib/github.rb#L47-L55

https://github.com/JasonBarnabe/greasyfork/blob/2c3a26d4f9457f49fd123998b2958cec90f45160/app/controllers/concerns/webhooks.rb#L118

GreasyFork 会根据更改的文件猜测同步 URL,GitHub 发的是"modified": ["TamperMonkey/BIT-补足页面标题.user.js"],但同步 URL 是 https://github.com/YDX-2147483647/BIT-enhanced/raw/main/TamperMonkey/BIT-%E8%A1%A5%E8%B6%B3%E9%A1%B5%E9%9D%A2%E6%A0%87%E9%A2%98.user.js ,很可能它不知道要转换。

导入时 URL 必须纯 ASCII。

https://github.com/YDX-2147483647/BIT-enhanced/raw/main/TamperMonkey/BIT-补足页面标题.user.js - Could not download source. URI must be ascii only "https://github.com/YDX-2147483647/BIT-enhanced/raw/main/TamperMonkey/BIT-\u8865\u8DB3\u9875\u9762\u6807\u9898.user.js"

相关问题

可这个问题8年前已经修复了?https://github.com/JasonBarnabe/greasyfork/issues/380

已再次反映。 https://github.com/JasonBarnabe/greasyfork/issues/1152

YDX-2147483647 commented 1 year ago

个纯 ASCII 文件名试试。


确实可以。

      "modified": [
        "TamperMonkey/BIT-rectify-pages-titles.user.js"
      ]
{"updated_scripts":["https://greasyfork.org/zh-CN/scripts/466252-bit-%E8%A1%A5%E8%B6%B3%E9%A1%B5%E9%9D%A2%E6%A0%87%E9%A2%98"],"updated_failed":[]}
YDX-2147483647 commented 1 year ago

GreasyFork 刚刚解决了 URL 编码问题。 https://github.com/JasonBarnabe/greasyfork/issues/1152

YDX-2147483647 commented 1 year ago

刚刚设置了BIT-补足下载附件时的默认文件名的附加信息同步,现在显示“(Awaiting sync)”,之后看看。


应该选“更新设置并立即同步”,而不是“更新设置”。