Automatically adds a table of contents to Kanka entity pages under the Pins sidebar.
目前為 2021-08-23 提交的版本,檢視 最新版本。
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
This is a big update. Remember to update your addTopLink setting if needed. See script description for how to use the new settings that have been added.
... And I was just going to tweak the CSS a little 🥲
Quick update to make the ToC text visible again following changes in Kanka’s CSS.
Remember to set your addTopLink preference as desired after updating.
addTopLink
true
This is a temporary fix for the last Kanka update that changed how the sidebars are structured. More work needs to be done for styling when I have the time, but this at least restores functionality.
#tableofcontent .text-muted { display: none; }
inline
Added handling for Calendars, which use a single sidebar and where every date in the grid would get picked up by the TOC.Adding a filter to avoid modals that are hidden among some entity content, such as the "Year Switcher" in Calendars.Calendars are rude.