<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>Веселкова Крамниця - Блог 8</title>
        <link>http://veselkova-kramnicja.mozello.com/blog-8/</link>
        <description>Веселкова Крамниця - Блог 8</description>
                    <item>
                <title>Перша новина</title>
                <link>http://veselkova-kramnicja.mozello.com/blog-8/params/post/5227249/persha-novina</link>
                <pubDate>Sun, 22 Mar 2026 06:59:00 +0000</pubDate>
                <description>&lt;p&gt;ооооооооооооооооооооооооооооооооооооо&lt;/p&gt;&lt;hr class=&quot;moze-more-divider&quot;&gt;&lt;p&gt;1&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;


&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;title&gt;Фільтр рекомендацій YouTube за ключовими словами&lt;/title&gt;

&lt;style&gt;

body{
font-family:Arial;
max-width:1000px;
margin:auto;
line-height:1.6;
background:#fafafa;
}

h1{
color:#c00;
}

h2{
border-left:5px solid #c00;
padding-left:10px;
}

code{
background:#eee;
padding:4px;
}

.block{
background:white;
padding:20px;
margin:20px 0;
border-radius:10px;
box-shadow:0 0 10px rgba(0,0,0,0.1);
}

textarea{
width:100%;
height:100px;
}

button{
background:#c00;
color:white;
border:none;
padding:10px 20px;
border-radius:6px;
cursor:pointer;
}

.result{
margin-top:15px;
font-weight:bold;
}

&lt;/style&gt;




&lt;h1&gt;Фільтр рекомендацій YouTube за ключовими словами&lt;/h1&gt;

&lt;div class=&quot;block&quot;&gt;

&lt;h2&gt;Навіщо потрібен фільтр&lt;/h2&gt;

&lt;p&gt;
YouTube часто показує небажаний контент:
клікбейт, політику, скандали, пропаганду.
&lt;/p&gt;

&lt;p&gt;
Цей інструмент дозволяє створити власний фільтр.
&lt;/p&gt;

&lt;/div&gt;


&lt;div class=&quot;block&quot;&gt;

&lt;h2&gt;Введіть заборонені слова&lt;/h2&gt;

&lt;textarea id=&quot;keywords&quot;&gt;політика
скандал
клікбейт
&lt;/textarea&gt;

&lt;br&gt;&lt;br&gt;

&lt;button onclick=&quot;saveKeywords()&quot;&gt;Зберегти список&lt;/button&gt;

&lt;div class=&quot;result&quot; id=&quot;saved&quot;&gt;&lt;/div&gt;

&lt;/div&gt;



&lt;div class=&quot;block&quot;&gt;

&lt;h2&gt;Приклад JavaScript фільтра&lt;/h2&gt;

&lt;pre&gt;const bannedWords = [&quot;політика&quot;,&quot;скандал&quot;,&quot;клікбейт&quot;];

function filterVideos(){

const videos = document.querySelectorAll(&quot;ytd-video-renderer&quot;);

videos.forEach(video =&amp;gt; {

let title = video.querySelector(&quot;#video-title&quot;);

if(!title) return;

let text = title.innerText.toLowerCase();

bannedWords.forEach(word =&amp;gt; {

if(text.includes(word)){

video.style.display=&quot;none&quot;;

}

});

});

}

setInterval(filterVideos,2000);

&lt;/pre&gt;

&lt;/div&gt;


&lt;div class=&quot;block&quot;&gt;

&lt;h2&gt;Як використовувати&lt;/h2&gt;

&lt;ol&gt;

&lt;li&gt;Встановити розширення Tampermonkey&lt;/li&gt;

&lt;li&gt;Створити новий script&lt;/li&gt;

&lt;li&gt;Вставити JavaScript код&lt;/li&gt;

&lt;li&gt;Відкрити YouTube&lt;/li&gt;

&lt;/ol&gt;

&lt;/div&gt;



&lt;script&gt;

function saveKeywords(){

let words=document.getElementById(&quot;keywords&quot;).value;

localStorage.setItem(&quot;ytFilterWords&quot;,words);

document.getElementById(&quot;saved&quot;).innerHTML=&quot;Список збережено&quot;;

}

&lt;/script&gt;</description>
            </item>
            </channel>
</rss>