Browse Source

add grant & location check in script

master
artem 6 years ago
parent
commit
ef9cd789cb
  1. 8
      script.js

8
script.js

@ -4,11 +4,13 @@
// @homepage https://github.com/misterzym/blockvkbot
// @description Добавляет кого угодно в Черный список
// @author Misterzym
// @match https://vk.com/im?*
// @match https://vk.com/*
// @updateURL 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
// @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 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
@ -32,6 +34,7 @@ var peaple = JSON.stringify({
return;
}
if (window.location.href.indexOf("vk.com/im?")!==-1){
for (var prop in blackList) {
$("._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();
@ -76,6 +79,7 @@ var peaple = JSON.stringify({
});
});
}
}
}, 1000);
})();

Loading…
Cancel
Save