Compare commits
3 Commits
f3f12282e3
...
ecd91563d5
Author | SHA1 | Date |
---|---|---|
Bauke | ecd91563d5 | |
Bauke | 7e30c509e2 | |
Bauke | 7933268d21 |
|
@ -31,7 +31,7 @@ Some functionality has also been extended more:
|
|||
|
||||
And various new features have been added such as:
|
||||
|
||||
* [ ] Hide (and unhide) topics from the topic listing. [*WIP](https://gitlab.com/tildes-community/tildes-reextended/issues/3)
|
||||
* [x] Hide topics from the topic listing.
|
||||
* [x] Hide your own and/or other people's vote counts.
|
||||
* [x] Anonymize usernames.
|
||||
* [x] Assign unique colors to people's usernames.
|
||||
|
|
|
@ -5,6 +5,15 @@
|
|||
[![Get Tildes ReExtended for Firefox](./images/mozilla-addons.png)](https://addons.mozilla.org/firefox/addon/tildes-reextended)
|
||||
[![Get Tildes ReExtended for Chrome](./images/chrome-web-store.png)](https://chrome.google.com/webstore/detail/tildes-reextended/olmhgeajhikmikkdbbdgnmeobfbpefhj)
|
||||
|
||||
## Features
|
||||
|
||||
* Autocompletion for group and user mentions.
|
||||
* Dedicated "back to top" button.
|
||||
* Hide topics matching link domains, usernames or titles.
|
||||
* "Jump to new comment" button to automatically scroll to new comments.
|
||||
* Assign labels to users to more easily recognize them.
|
||||
* And more!
|
||||
|
||||
## Documentation
|
||||
|
||||
* If you'd like to know what the differences between Tildes Extended and Tildes ReExtended are, see [DIFFERENCES.md](DIFFERENCES.md).
|
||||
|
|
|
@ -100,9 +100,15 @@ function hideCommentVotes(data: HideVotesData, currentUser: string): number {
|
|||
*/
|
||||
function hideTopicVotes(data: HideVotesData, currentUser: string): number {
|
||||
let count = 0;
|
||||
for (const topic of querySelectorAll<HTMLElement>(".topic")) {
|
||||
const postedBySelf = topic.dataset.topicPostedBy === currentUser;
|
||||
for (const topic of querySelectorAll<HTMLElement>(".topic", ".topic-full")) {
|
||||
let topicAuthor = topic.dataset.topicPostedBy;
|
||||
if (topic.classList.contains("topic-full")) {
|
||||
topicAuthor =
|
||||
document.querySelector(".topic-full-byline .link-user")?.textContent ??
|
||||
undefined;
|
||||
}
|
||||
|
||||
const postedBySelf = topicAuthor === currentUser;
|
||||
let vote: Element | undefined;
|
||||
|
||||
// Select the vote number from the topic if we want to hide other's topics
|
||||
|
|
Loading…
Reference in New Issue