Skip to main content
2 of 11
added 85 characters in body
ᔕᖺᘎᕊ
  • 4.4k
  • 2
  • 16
  • 37

Answerer Name comment highlighter

After reading this, I really liked the idea, so I make a Userscript to highlight answerer's names.

The script:

// ==UserScript==
// @name         Highlight answerer's comments
// @namespace    http://stackexchange.com/users/4337810/%E1%B9%A7%D0%BD%CA%8A%C3%9F
// @version      0.1
// @description  Highlight's the names of answerer's on SE websites
// @author       ṧнʊß (http://stackexchange.com/users/4337810/%E1%B9%A7%D0%BD%CA%8A%C3%9F)
// @match        *://*.stackexchange.com/*
// @match        *://*.stackoverflow.com/*
// @match        *://*.superuser.com/*
// @match        *://*.serverfault.com/*
// @match        *://*.askubuntu.com/*
// @match        *://*.stackapps.com/*
// @match        *://*.mathoverflow.net/*
// @grant        none
// ==/UserScript==

function colorAnswerer() {
    $('.answercell').each(function(x, obj) {
        var x = $(this).find('.user-details a').text();
        $('.answer .comment-user').each(function(i) {
            if ($(this).text() == x) { 
                $(this).css('background-color', 'orange');
            }
        });        
    });
}

$(document).ready(function() {
    colorAnswerer();    
});

It might be buggy - I haven't tested it much!

enter image description here

ᔕᖺᘎᕊ
  • 4.4k
  • 2
  • 16
  • 37