Комментарии к оценкам за сообщения

Код:
<!-- Комментарии к оценкам за сообщения © Alex_63, 2024 -->
<link rel="stylesheet" type="text/css" href="//forumstatic.ru/f/ru/bestbb/reputation.css" />
<script type="text/javascript" src="https://forumstatic.ru/f/ru/bestbb/reputation.js"></script>
<style id="Plus">
/*Плюсы для Топика!*/
div .post-rating p a {
    text-align: center;
    outline: 1px solid transparent;
    font-weight: 700;
    background: url(https://forumstatic.ru/files/001b/a6/d4/26514.svg) no-repeat center;
    /*https://forumstatic.ru/files/0012/d8/04/49278.svg*/
    background-size: 38px auto;
    position: relative;
    padding-left:1px;
    z-index: 100;
    width: 38px;
    height: 38px;
    text-align: center;
    font-size: 12px !important;
    display: inline-block;
    vertical-align: middle;
    line-height: 34px;
    letter-spacing: -.5px;
}
.post-vote p>a{
  position:absolute;
  font-size:22px!important;
  margin-top:3px;
  margin-left:-6px;
}
.post-vote p>a.A2{
  position:absolute;
  background: url(https://forumstatic.ru/files/0012/d8/04/75043.png?) no-repeat;
  background-size: 100%;
  font-size: 0px!important;
  width:23px;
  height:23px;
  margin-top: -27px;
  margin-left:32px;
}
/*Титл*/
.post-vote .positive.A2:before {
  content: " ";
  display: inline-block;
  width: 0; height: 0;
  position: absolute;
  text-indent: 0 !important;
  top: -7px; right: 4px;
  border: solid 5px;
  border-color:rgba(0,0,0,.7) transparent transparent transparent;
  border-radius:2em 0 0 0;
}
.post .positive.A2:after {
  content: "Комментарий";
  font-size: 11px !important;
  color: #fff;
  text-shadow: none !important;
  padding: 0 8px;
  line-height: 24px;
  background: rgba(0,0,0,.7);
  border-radius: 4px;
  position: absolute;
  top: -31px;
  right: -5px;
  z-index: 999;
}
a.positive.A2:before, a.positive.A2:after {visibility: hidden;opacity: 0;transition: .4s ease;cursor: text;text-indent:0}
a.positive.A2:hover:before, a.positive.A2:hover:after {visibility: visible !important; opacity: 1.0;}
</style>

<script>
$().pun_mainReady(function() { 
    $('#pun-viewtopic div.post-vote').show().prev('.post-rating').find('a').removeAttr('onclick');
    $('.post').each(function() {
        var vote = $('.post-vote a:first', this);
        var clone = vote.clone(false);
        clone.addClass('A2').attr('title','Плюс с комментарием').insertAfter(vote);

        vote.addClass('A1').attr('href', '#').on('click', function(_) {
            try { 
                return reputation.handler.call($(this).next('a')[0], _);
            } catch(e) {}
        })
    });
});
(function(){function toNumber(){$('.post-rating a').text(function(){var val=parseInt($(this).text());if(val>0)$(this).addClass('positive-value');return val});}
$().pun_mainReady(toNumber);$(document).on('ajaxSuccess',function(e,xhr,data){if(data.url.match(/relation/)||data.url.match(/api\.php.+rating/))setTimeout(toNumber)})})();

if([865,470,372/*64*/].indexOf(UserID)== -1)$('<style>.post-vote p>a.A2{display:none}</style>').insertBefore('#html-header');
</script>