On pages which do not have a Table of Contents, but should do, create one! (I actually use this as a bookmarklet, so I can load it onto the current page only when I want it.)
< 腳本Table of Contents Everywhere的回應
An alternative: AutoTOC
For reference, there is also AutoTOC which provides a similar feature, but via a dropdown menu. It uses far fewer lines of code!
(Unfortunately it's not currently working in Tampermonkey, because it hasn't @grant-ed GM_registerMenuCommand.) Update: That has now been fixed :)
(Unfortunately it's not currently working in Tampermonkey, because it hasn't @grant-ed GM_registerMenuCommand.)
Update: That has now been fixed :)
Thanks!
登入以回復
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
An alternative: AutoTOC
For reference, there is also AutoTOC which provides a similar feature, but via a dropdown menu. It uses far fewer lines of code!