diff --git a/source/scripts/hide-votes.ts b/source/scripts/hide-votes.ts index ce50eae..2449f07 100644 --- a/source/scripts/hide-votes.ts +++ b/source/scripts/hide-votes.ts @@ -18,6 +18,10 @@ function hideVotes(settings: Settings): number { for (const vote of commentVotes) { vote.classList.add('trx-votes-hidden'); + if (!vote.textContent!.includes(' ')) { + continue; + } + vote.textContent = vote.textContent!.slice( 0, vote.textContent!.indexOf(' '),