kbin Linked Comment Enhancer - Highlight comments that you open links to and scrolls to prevent them from being hidden

https://greasyfork.org/en/scripts/468842-kbin-linked-comment-enhancer

This script highlights comments when you open a link to them, and scrolls to the comment to make sure it doesn't get hidden.

Here's what it looks like:
https://i.imgur.com/m5NfSdO.png

Inspired by this post by @minnieo

17 points · 10 comments · view on lemmy.world

10 Comments

--@kbin.social · 2 pts · 3y

thank you my friend

BaroqueInMind@kbin.social · 2 pts · 3y

Thanks for the script!

minnieo@kbin.social · 2 pts · 3y (1 reply)

so grateful, thank you!

artillect@kbin.social · 1 pts · 3y

No problem, thanks for the idea!

arkcom@kbin.social · 2 pts · 3y (2 replies)

Is it possible with a script to add a context link to posts in a users profile? Since notifications aren't working reliably, it would be nice to quickly get back to a comment to see if someone responded.

edit: There is already copy url under "more" which gives me some hope.

artillect@kbin.social · 3 pts · 3y (1 reply)

If you middle click, or ctrl-click the "copy url" link, it'll open it in a new tab, sorta like the context/permalink links on reddit

arkcom@kbin.social · 2 pts · 3y

Nice, didn't even occur to me that that was a link.

Rhaedas@kbin.social · 1 pts · 3y
[ removed ]
Mr_Figtree@kbin.social · 1 pts · 3y

When using the light theme, and when the fragment is #comments, the space before indented comments is higlighted (screenshot).

My fix was to add "comments" as an exception on line 38:

38c38
<     if (comment && comment !="settings") {
---
>     if (comment && comment !="settings" && comment != "comments") {