YouTube のホーム画面で、チャンネル名に「切り抜き」という文字列を含むチャンネルを全て非表示にする JavaScript
使い方
YouTube のホーム画面でできるだけ下の方までスクロールする
以下のスクリプトを実行
code::
(async()=>{ const seen=new Set();for(const meta of $$('div#details')){const title=meta.querySelector('.ytd-channel-name a')?.textContent?.trim();if(!title?.includes('切り抜き')){continue;}console.log(title);meta.querySelector('button:has(.ytd-menu-renderer)')?.click();await new Promise(r=>setTimeout(r,500));document?.querySelector('tp-yt-paper-listbox>ytd-menu-service-item-renderer:nth-child(7)')?.click();}})();
動いた as of 2021/10/4
動いた as of 2022/2/19
動かなかったので直した as of 2022/08/28
動かなかったので直した as of 2023/03/24