Thread viewer for Bluesky

added link to subtree

Changed files
+10 -1
+1
index.html
··· 37 37 .post h2 .handle { color: #888; font-weight: normal; font-size: 11pt; vertical-align: text-top; } 38 38 .post h2 .separator { color: #888; font-weight: normal; font-size: 11pt; vertical-align: text-top; } 39 39 .post h2 .time { color: #666; font-weight: normal; font-size: 10pt; vertical-align: text-top; } 40 + .post h2 .action { color: #888; font-weight: normal; font-size: 10pt; vertical-align: text-top; } 40 41 .post p { margin-top: 10px; } 41 42 .post .stats { font-size: 10pt; color: #666; } 42 43 .post .stats i { font-size: 9pt; color: #888; }
+9 -1
skythread.js
··· 92 92 h.innerHTML = `${post.author.displayName} ` + 93 93 `<a class="handle" href="${profileURL}" target="_blank">@${post.author.handle}</a> ` + 94 94 `<span class="separator">&bull;</span> ` + 95 - `<a class="time" href="${url}" target="_blank"><time datetime="${isoTime}">${formattedTime}</time></a>`; 95 + `<a class="time" href="${url}" target="_blank" title="${isoTime}">${formattedTime}</a> `; 96 + 97 + if (post.replyCount > 0) { 98 + let threadURL = getLocation() + '?q=' + encodeURIComponent(post.uri); 99 + h.innerHTML += 100 + `<span class="separator">&bull;</span> <a href="${threadURL}" class="action" title="Load this subtree">` + 101 + `<i class="fa-solid fa-arrows-split-up-and-left fa-rotate-180"></i></a> `; 102 + } 103 + 96 104 div.appendChild(h); 97 105 98 106 let avatar = document.createElement('img');