1
Fork 0

Compare commits

..

No commits in common. "ecd91563d5de43a564bf0508f6913472a08f2b54" and "f3f12282e37ef804f55557997dd97e752f85f541" have entirely different histories.

3 changed files with 3 additions and 18 deletions

View File

@ -31,7 +31,7 @@ Some functionality has also been extended more:
And various new features have been added such as: And various new features have been added such as:
* [x] Hide topics from the topic listing. * [ ] Hide (and unhide) topics from the topic listing. [*WIP](https://gitlab.com/tildes-community/tildes-reextended/issues/3)
* [x] Hide your own and/or other people's vote counts. * [x] Hide your own and/or other people's vote counts.
* [x] Anonymize usernames. * [x] Anonymize usernames.
* [x] Assign unique colors to people's usernames. * [x] Assign unique colors to people's usernames.

View File

@ -5,15 +5,6 @@
[![Get Tildes ReExtended for Firefox](./images/mozilla-addons.png)](https://addons.mozilla.org/firefox/addon/tildes-reextended) [![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) [![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 ## Documentation
* If you'd like to know what the differences between Tildes Extended and Tildes ReExtended are, see [DIFFERENCES.md](DIFFERENCES.md). * If you'd like to know what the differences between Tildes Extended and Tildes ReExtended are, see [DIFFERENCES.md](DIFFERENCES.md).

View File

@ -100,15 +100,9 @@ function hideCommentVotes(data: HideVotesData, currentUser: string): number {
*/ */
function hideTopicVotes(data: HideVotesData, currentUser: string): number { function hideTopicVotes(data: HideVotesData, currentUser: string): number {
let count = 0; let count = 0;
for (const topic of querySelectorAll<HTMLElement>(".topic", ".topic-full")) { for (const topic of querySelectorAll<HTMLElement>(".topic")) {
let topicAuthor = topic.dataset.topicPostedBy; const postedBySelf = topic.dataset.topicPostedBy === currentUser;
if (topic.classList.contains("topic-full")) {
topicAuthor =
document.querySelector(".topic-full-byline .link-user")?.textContent ??
undefined;
}
const postedBySelf = topicAuthor === currentUser;
let vote: Element | undefined; let vote: Element | undefined;
// Select the vote number from the topic if we want to hide other's topics // Select the vote number from the topic if we want to hide other's topics