github-old-feed icon indicating copy to clipboard operation
github-old-feed copied to clipboard

使用脚本后无法显示内容

Open QKioi opened this issue 4 months ago • 11 comments

Image

QKioi avatar Sep 09 '25 09:09 QKioi

更新了

暂时没找到方法,回退旧版本了

DC3 avatar Sep 09 '25 12:09 DC3

遇到了同样的问题

Greedysky avatar Sep 10 '25 01:09 Greedysky

可能被限制了? 我看这个旧版 feeds 站点还能访问 https://github.com/dashboard-feed

wangrongding avatar Sep 10 '25 05:09 wangrongding

可能被限制了? 我看这个旧版 feeds 站点还能访问 https://github.com/dashboard-feed

能访问,但是现在显示的和For You的内容是一样的.

Greedysky avatar Sep 10 '25 07:09 Greedysky

挖槽,这不直接把所有路都堵死了吗,之前还留个页面,我的这个脚本就是把那个旧版 feeds 页面扒过来,嵌入到我们现在首页的feeds里

wangrongding avatar Sep 10 '25 09:09 wangrongding

Image

i'm having the same problem

ljcool2006 avatar Sep 15 '25 17:09 ljcool2006

挖槽,这不直接把所有路都堵死了吗,之前还留个页面,我的这个脚本就是把那个旧版 feeds 页面扒过来,嵌入到我们现在首页的feeds里

试试我这个方案,目前用着还行,不过我只在最新 Firefox 和 ViolentMonkey 上测试过

https://github.com/hellodword/github-dashboard-feed

hellodword avatar Sep 19 '25 08:09 hellodword

挖槽,这不直接把所有路都堵死了吗,之前还留个页面,我的这个脚本就是把那个旧版 feeds 页面扒过来,嵌入到我们现在首页的feeds里

试试我这个方案,目前用着还行,不过我只在最新 Firefox 和 ViolentMonkey 上测试过

https://github.com/hellodword/github-dashboard-feed

用 Tampermonkey 测试了下,貌似只能在右边缘显示

Greedysky avatar Sep 19 '25 08:09 Greedysky

用 Tampermonkey 测试了下,貌似只能在右边缘显示

目前就是这么设计的,如果在 Feed 那里显示,需要干很多写页面方面的活,因为是直接通过 API 拿的数据

hellodword avatar Sep 19 '25 08:09 hellodword

基于Gerrit0的脚本,我改写了下,能再原来的位置显示了。

Image

@hellodword 感谢,能和以前一样工作了

Greedysky avatar Sep 19 '25 08:09 Greedysky

@Greedysky 有帮助就好。

另外,我默认不渲染body,因为和原来的 dashboard-feed 方案这种 github 生成的数据不一样,现在是 api 中的 markdown 或者 html,很害怕被 XSS。目前仅仅用 https://github.com/cure53/DOMPurify 来清洗一下,但是还是建议注意安全。

hellodword avatar Sep 19 '25 08:09 hellodword

@Greedysky 有帮助就好。

另外,我默认不渲染body,因为和原来的 dashboard-feed 方案这种 github 生成的数据不一样,现在是 api 中的 markdown 或者 html,很害怕被 XSS。目前仅仅用 cure53/DOMPurify 来清洗一下,但是还是建议注意安全。

可以尝试以下新的 Sanitizer API

https://chromium-review.googlesource.com/c/chromium/src/+/7106101

yisibl avatar Nov 25 '25 07:11 yisibl

@Greedysky 有帮助就好。

另外,我默认不渲染body,因为和原来的 dashboard-feed 方案这种 github 生成的数据不一样,现在是 api 中的 markdown 或者 html,很害怕被 XSS。目前仅仅用 cure53/DOMPurify 来清洗一下,但是还是建议注意安全。

可以尝试以下新的 Sanitizer API

https://chromium-review.googlesource.com/c/chromium/src/+/7106101

一丝大佬👀

wangrongding avatar Nov 27 '25 01:11 wangrongding