继续操作前请注册或者登录。

你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/427429-hacker-news-contextual-comments-sticky-tree/discussions/111025,源站連結 點此以跳轉

Hacker News Contextual Comments (sticky tree)

Sticks the first line of all comments in the visible comment tree to the top of the screen so you always know where exactly you are. See the screenshots for a better understanding. Also adds the ability to expand/collapse a comment by clicking anywhere on it.

< 脚本 Hacker News Contextual Comments (sticky tree) 的反馈

评价:好评 - 脚本运行良好

§
发布于:2021-12-18

Yes!
Very good idea, Work very well.
Maybe, for a better visibility, you can add a special background to the sticky element?

phil294作者
§
发布于:2021-12-20
编辑于:2021-12-20

good idea, but not so easily done. The comments are only css position:sticky'd. This would need some more JS (https://stackoverflow.com/q/25308823)

§
发布于:2021-12-20

Yes, i try a CSS solution:
not possible.

But the Stackoverflow idea should work:
"It sets the attribute stuck which you can match in CSS with header[stuck]"

发布留言

登录以发布留言。