diff --git a/script.js b/script.js index c177056..a82763c 100644 --- a/script.js +++ b/script.js @@ -1,8 +1,7 @@ // ==UserScript== // @name RemoveBotInMsgers -// @version 0.9.5 -// @namespace https://up-world.ru/ -// @homepage https://github.com/reek/anti-adblock-killer/ +// @version 0.10.1 +// @homepage https://github.com/misterzym/blockvkbot // @description Добавляет кого угодно в Черный список // @author Misterzym // @match https://vk.com/im?* @@ -37,6 +36,7 @@ var peaple = JSON.stringify({ blackList[peer] = JSON.parse(peaple); blackList[peer].name = $(this).closest(".im-mess-stack").find(".im-mess-stack--pname a").html(); blackList[peer].url = $(this).closest(".im-mess-stack").find(".im-mess-stack--pname a").attr("href"); + blackList[peer].avatar = $(this).closest(".im-mess-stack").find(".nim-peer--photo img").attr("src"); save(); return false; }); @@ -73,7 +73,7 @@ var peaple = JSON.stringify({ function genBlackList() { var tt = ""; for (var prop in blackList) { - tt = tt + '' + blackList[prop].name + '
'; + tt = tt + '
' + blackList[prop].name + '

'; } return '
' +