簡單記錄一下
不知道什麼時候開始,
網頁版YouTube的搜尋結果老是會出現
「為你推薦」、「其他人還看了」、「先前看過的影片」甚至Shorts等等
無關搜尋結果的內容;
跳到「自訂靜態過濾規則」,
輸入以下內容設定要遮擋的區塊:
(一) 一次性遮擋所有不相干區塊(包含Shorts)
youtube.com##ytd-search ytd-item-section-renderer>#contents>:not(ytd-video-renderer,ytd-channel-renderer),ytd-secondary-search-container-renderer
(二) 自訂要遮擋的不相干區塊
(不想遮擋的項目可以把語句刪除或在句首加註!註解掉):
www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/為你推薦/i))
www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/其他人還看了/i))
www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/先前看過的影片/i))
www.youtube.com##ytd-reel-shelf-renderer:has(span:has-text(/Shorts/i))
Refrence: