Prankota4Pranks

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);