A smart algorithm to detect possible existing toc and hides itself.
closed
Teeth Teeth
Use case:
Some websites provide a toc by default, and each time visit these websites, you will see a left-sidebar toc provided by the website itself, and a right-sidebar toc provided by smart-toc.
So, it's better to have a
toc detection algorithm
to hide smart toc itself and sets the default value for new websites that doesn't existing in the setttings. The algorithm can be done by: generating the toc from the website, and then finds if the html source contains the similar tree structure of similar keywords, it true, the smart-toc should hide itself.
F
Fallen Max
closed
Thank you for the interesting suggestion. However, I’ve considered the following points:
The experience of a website’s built-in TOC may not be as good as or consistent with Smart TOC. Users might prefer to use Smart TOC across all websites to view the page’s table of contents, so hiding it may not always be necessary.
Developing an algorithm to detect a TOC (by comparing similar DOM tree structures) could be complex, and embedding it into every Smart TOC run might not be cost-effective due to the performance overhead.
For these reasons, I don’t plan to implement this feature at this time. Thank you for your suggestion!