Greasy Fork is available in English.

Toc Bar, auto-generating table of content

A floating table of content widget

< Feedback on Toc Bar, auto-generating table of content

Review: Good - script works

JY3
§
Posted: 19.12.2021

GitHub README 的各标题不需要生成 id。

hikerpigAuthor
§
Posted: 20.12.2021

@JY3 请问仅针对 github 有什么特殊的原因么?哪个站需要生成 id 感觉比较见仁见智,请问是觉得在 url 里有 hash 有不好的影响么?

JY3
§
Posted: 20.12.2021
Edited: 20.12.2021

GitHub 文档各级标题本身不是支持锚点么,为什么还需要脚本去生成,如:https://github.com/hikerpig/toc-bar-userscript#changelog

hikerpigAuthor
§
Posted: 20.12.2021
Edited: 20.12.2021

@JY3 看了一下的确,不过 github README 的 anchor href 不是标准的 html,是它们的 JS 自己解释的。看了下不是很好兼容,那就以站点本身的行为为主吧。
我建一个 issue 记录下这个需求,看看怎么关掉这个行为,应该得放到一个个站点的配置里。

hikerpigAuthor
§
Posted: 24.12.2021

@JY3 v1.9.0 已加上,更新完了可以看看是不是 OK

JY3
§
Posted: 25.12.2021

已更新。符合预期。感谢。

Post reply

Sign in to post a reply.