# 我创建了一个书签脚本，用于生成论坛帖子目录

**URL:** <https://meta.discourse.org/t/i-created-a-bookmarklet-to-create-the-table-of-content-for-forum-posts/270961>\
**Category:** Development\
**Created:** [2023 年7 月 8 日 02:33 UTC](https://meta.discourse.org/t/i-created-a-bookmarklet-to-create-the-table-of-content-for-forum-posts/270961 "2023-07-08T02:33:56Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

作者： ![ShunS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shuns/32/314884_2.png) [@ShunS](https://meta.discourse.org/u/ShunS)\
发布日期： [2023 年7 月 10 日 01:06 UTC](https://meta.discourse.org/t/i-created-a-bookmarklet-to-create-the-table-of-content-for-forum-posts/270961/12 "2023-07-10T01:06:40Z")

</div>

HI @supermathie，感谢您的回复。

> 当 DiscoToC 不可用时

是的，这就是区别。我创建了书签工具，因为我无法决定通常使用的论坛要安装哪个“主题组件”，而且只有少数人会写需要目录的长文本。

* * *

谢谢 @Lhc_fl，非常有帮助！

我在 GitHub 仓库中搜索并找到了该方法。我将考虑（仅在）我有足够的时间并且看到该功能有大量需求时进行开发。

但是，如果可以在社区中添加主题组件，那么正如 @supermathie 所说，已经有 DiscoTOC 了 🙂

---

_[View the full topic](https://meta.discourse.org/t/i-created-a-bookmarklet-to-create-the-table-of-content-for-forum-posts/270961)._
