// ==UserScript== // @name VkGroupDialogUserIgnore // @namespace Eliont // @version 1.0.0 // @description Скрывает в беседках сообщения указанных пользователей, как в дискорде. // @include https://vk.com/* // @include http://vk.com/* // @grant none // @copyright 2018+, Eliont // @downloadURL none // ==/UserScript== if (window.top != window.self) { return; } var names = new Array('user_name','id00000','','','','','','',''); var soft_ignore = true; //var soft_ignore = false; var hide_images = true; //var hide_images = false; if(names==0) { return; } //alert('Loaded'); window.document.onload = Filter(); var element = document.getElementById('content'); element.addEventListener("DOMNodeInserted", Filter, false); function findAncestor (el, cls) { while ((el = el.parentElement) && !el.classList.contains(cls)); return el; } function Filter () { //alert('Filter'); for(var i=0; i