|
|
@ -4,11 +4,13 @@ |
|
|
|
// @homepage https://github.com/misterzym/blockvkbot
|
|
|
|
// @homepage https://github.com/misterzym/blockvkbot
|
|
|
|
// @description Добавляет кого угодно в Черный список
|
|
|
|
// @description Добавляет кого угодно в Черный список
|
|
|
|
// @author Misterzym
|
|
|
|
// @author Misterzym
|
|
|
|
// @match https://vk.com/im?*
|
|
|
|
// @match https://vk.com/*
|
|
|
|
// @updateURL https://raw.githubusercontent.com/misterzym/blockvkbot/master/script.js
|
|
|
|
// @updateURL https://raw.githubusercontent.com/misterzym/blockvkbot/master/script.js
|
|
|
|
// @downloadURL https://raw.githubusercontent.com/misterzym/blockvkbot/master/script.js
|
|
|
|
// @downloadURL https://raw.githubusercontent.com/misterzym/blockvkbot/master/script.js
|
|
|
|
// @icon https://net-bit.ru/wp-content/uploads/userJsFiles/vkBlackList/logo.png
|
|
|
|
// @icon https://net-bit.ru/wp-content/uploads/userJsFiles/vkBlackList/logo.png
|
|
|
|
// @grant none
|
|
|
|
// @grant GM_getResourceURL
|
|
|
|
|
|
|
|
// @grant GM_setValue
|
|
|
|
|
|
|
|
// @grant GM_getValue
|
|
|
|
// @resource jquery https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
|
|
|
|
// @resource jquery https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
|
|
|
|
// @resource add https://net-bit.ru/wp-content/uploads/userJsFiles/vkBlackList/add.png
|
|
|
|
// @resource add https://net-bit.ru/wp-content/uploads/userJsFiles/vkBlackList/add.png
|
|
|
|
// @resource del https://net-bit.ru/wp-content/uploads/userJsFiles/vkBlackList/del.png
|
|
|
|
// @resource del https://net-bit.ru/wp-content/uploads/userJsFiles/vkBlackList/del.png
|
|
|
@ -32,6 +34,7 @@ var peaple = JSON.stringify({ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (window.location.href.indexOf("vk.com/im?")!==-1){ |
|
|
|
for (var prop in blackList) { |
|
|
|
for (var prop in blackList) { |
|
|
|
$("._im_peer_history.im-page-chat-contain").find("div[data-peer='" + prop + "']").remove(); |
|
|
|
$("._im_peer_history.im-page-chat-contain").find("div[data-peer='" + prop + "']").remove(); |
|
|
|
$(".im-mess-stack--lnk[href='" + blackList[prop].url + "']").closest(".im-mess-stack").remove(); |
|
|
|
$(".im-mess-stack--lnk[href='" + blackList[prop].url + "']").closest(".im-mess-stack").remove(); |
|
|
@ -76,6 +79,7 @@ var peaple = JSON.stringify({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, 1000); |
|
|
|
}, 1000); |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|