Thanks in advance!
Edit: @SLGray and @Ange Tuteur I summon you.
$(function() {
$('.user:has(a span[style="color:#B697C7"])').find('.user-basic-info > a:first-child').append('<img src="http://2img.net/i/fa/m/gender_female.gif" class="ava-rank"/>');
});
.user-basic-info > a:first-child {
position:relative;
}
.ava-rank {
position:absolute;
right:0;
bottom:0;
}
.user-basic-info>a:first-child{position:relative}.ava-rank{position:absolute;right:0;bottom:0}
.user-basic-info>a:first-child{position:relative}.ava-rank{position:absolute;right:0;bottom:0;width:auto;height:auto}
.user-basic-info>a:first-child{position:relative}.ava-rank{position:absolute;right:0;bottom:0;width:auto !important;height:auto !important}
.user-basic-info>a:first-child{overflow:visible!important}
right:0;bottom:0;
|
.blog_comment-avatar {position:relative;overflow:visible}
.blog_comment-avatar .ava-rank {width:auto!important;height:auto!important}
$(function() {
addGroupLogo('#66163C', 'http://2img.net/i/fa/m/gender_female.gif');
addGroupLogo('#369E99', 'http://2img.net/i/fa/m/gender_female.gif');
addGroupLogo('#B697C7', 'http://2img.net/i/fa/m/gender_female.gif');
/* -- FUNCTION -- */
function addGroupLogo(color, image) {
$('.user:has(a span[style="color:' + color + '"])').find('.user-basic-info > a:first-child').append('<img src="' + image + '" class="ava-rank"/>');
$('a span[style="color:' + color + '"]', '#blog_comments').closest('.posthead').find('.blog_comment-avatar').append('<img src="' + image + '" class="ava-rank"/>');
};
});
|
addGroupLogo('COLOR', 'IMAGE');
.blog_comment-avatar {position:relative;overflow:visible!important}
.blog_comment-avatar .ava-rank {width:auto!important;height:auto!important}
.ava-rank{position:absolute;right:0;bottom:0}
.ava-rank{position:absolute;right:10px;bottom:10px}
.ava-rank{width:auto !important;height:auto !important}
.ava-rank{position:absolute;right:10px;bottom:10px}