Prankota4Pranks

Скрывает из сообщества пранкоты всякую рекламу

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Prankota4Pranks
// @namespace    https://greasyfork.org/users/6914
// @version      0.3
// @description  Скрывает из сообщества пранкоты всякую рекламу
// @author       DnAp
// @match        https://vk.com/*
// ==/UserScript==

var hidePrknk = function() {
    var feeds = document.getElementsByClassName('feed_row');
    var feed;
    for(var i=0;i<feeds.length;i++) {
        feed = feeds[i];
        var wallName = feed.getElementsByClassName('wall_text_name');
        if(wallName.length > 0) {
            var author = wallName[0].getElementsByClassName('author');
            if(author.length > 0 && author[0].href == 'https://vk.com/prankotadotcom' && feed.getElementsByClassName('audio').length == 0) {
                feed.style.display = 'none';
            }
        }
    }
    setTimeout(hidePrknk, 300);
};
hidePrknk();
setTimeout(hidePrknk, 300);