Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 887b854

Browse files
committed
Hide difficulty votes when user didn't solved problem
1 parent 8141ceb commit 887b854

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

content.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ function addLevelIndicators() {
275275
var standard = (difficultyVotes.length > 0 && difficultyVotes[0].user_id == "solvedac")
276276

277277
getPrefs('hide_other_votes', (value) => {
278+
if (!document.querySelector(".label-success") && user.user_id !== "solvedac") return
278279
if (levelData.level != 0 && !standard) {
279280
for (var i = 0; i < difficultyVotes.length; i++) {
280281
var vote = difficultyVotes[i]

0 commit comments

Comments
 (0)