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

Commit 44cdd33

Browse files
committed
Made user IDs in problem difficulty page clickable
1 parent 2151c46 commit 44cdd33

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

content.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,11 @@ if (isProblemPage()) {
195195
if (vote.user_id === nick) votedFlag = true
196196
var difficultyVote = document.createElement("span")
197197
difficultyVote.className = "difficulty_vote"
198-
difficultyVote.innerHTML = "<span class=\"text-" + levelCssClass(vote.user_level) + "\">" + levelLabel(vote.user_level) + vote.user_id + "</span> ➔ " + levelLabel(vote.voted_level)
198+
difficultyVote.innerHTML = "<a href=\"/user/" + vote.user_id + "\">"
199+
+ "<span class=\"text-" + levelCssClass(vote.user_level) + "\">"
200+
+ levelLabel(vote.user_level) + vote.user_id
201+
+ "</span>"
202+
+ "</a> ➔ " + levelLabel(vote.voted_level)
199203
problemInfo.appendChild(difficultyVote)
200204
}
201205
}

0 commit comments

Comments
 (0)