VkHider

saves your mind from bullshit by hiding posts and comments from selected people. To start just put needed id`s in names array

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name VkHider
// @namespace Spam
// @version 1.0
// @description  saves your mind from bullshit by hiding posts and comments from selected people. To start just put needed id`s in names array
// @include https://vk.com/*
// @include http://vk.com/*
// @grant none
// @copyright  2014+, rigward
// ==/UserScript==
if (window.top != window.self)
{
	return;
}
var names = new Array("/durov");	//just insert id`s here. Example: "/id111111", "/anyrandomname"
if(names==0)
{
    return;
}
var NamesString='a';
for(var i=0; i<names.length; i++)
{
    NamesString += ('[href="'+names[i]+'"],');
}
NamesString = NamesString.slice(0, - 1);
window.document.onload = Filter();
element = document.getElementById('page_wrap');
element.addEventListener("DOMNodeInserted", Filter, false);
function Filter ()
{
	var spam = document.querySelectorAll(NamesString);
	for(var i=0; i<spam.length; i++)
	{
		if(spam[i].className=='reply_image')
		{
			spam[i].parentNode.parentNode.style.display='none';
		}
		if(spam[i].className=='post_image')
		{
			spam[i].parentNode.parentNode.parentNode.style.display='none';           
		}
	}
}