replace comment links with usernames
This commit is contained in:
@ -51,6 +51,14 @@ $(document).ready(function() {
|
||||
a = document.getElementById("nextlink");
|
||||
a.href = a.href + '?' + query;
|
||||
}
|
||||
|
||||
$(".comment_link").each(function(idx, elm) {
|
||||
var target_id = $(elm).text().match(/#c\d+/);
|
||||
if(target_id && $(target_id)) {
|
||||
var target_name = $(target_id+" .username").html();
|
||||
$(elm).html("@"+target_name);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user