// ==UserScript== // @name Youtube hide FOR YOU suggestion when search // @namespace hoothin // @version 0.1 // @description Hide the suggestion of results when search on youtube. // @author hoothin // @homepageURL https://github.com/hoothin/ // @supportURL https://github.com/hoothin/ // @license MIT // @grant GM_addStyle // @run-at document-start // @include /^(?:youtube.com/results\?)$/ // @downloadURL none // ==/UserScript== (function() { let css = ` #contents>.style-scope.ytd-item-section-renderer:not(*[prominent-thumb-style]){ display:none; } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();