Youtube remove channels

Removing the recommended channels

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Youtube remove channels
// @description Removing the recommended channels
// @namespace   channel_scissors
// @include     http*://*.youtube.com/*
// @include     http*://youtube.com/*
// @version     1.0
// @grant       none
// ==/UserScript==

window.setTimeout(
	function check() {
var a = document.querySelectorAll('.section-list >  li');
var words = /Канал 1|Канал 2/;
for (var i=0;i<a.length;i++) if (words.test(a[i].innerHTML))
    a[i].parentNode.removeChild(a[i]);
    window.setTimeout(check, 300);
	}, 300
);

/* Для блокировки нужных каналов их названия прописываем вместо "Канал 1" и "Канал 2"
    Добавление последующих каналов - через прямую | , как на образце */