Compare commits
No commits in common. "ecd91563d5de43a564bf0508f6913472a08f2b54" and "f3f12282e37ef804f55557997dd97e752f85f541" have entirely different histories.
ecd91563d5
...
f3f12282e3
|
@ -31,7 +31,7 @@ Some functionality has also been extended more:
|
|||
|
||||
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] Anonymize usernames.
|
||||
* [x] Assign unique colors to people's usernames.
|
||||
|
|
|
@ -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 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,15 +100,9 @@ function hideCommentVotes(data: HideVotesData, currentUser: string): number {
|
|||
*/
|
||||
function hideTopicVotes(data: HideVotesData, currentUser: string): number {
|
||||
let count = 0;
|
||||
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;
|
||||
}
|
||||
for (const topic of querySelectorAll<HTMLElement>(".topic")) {
|
||||
const postedBySelf = topic.dataset.topicPostedBy === currentUser;
|
||||
|
||||
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