您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide non-youtube videos on Google video search results. Add toggle.
This is a userscript that modifies the Google Video search results to only display videos from youtube.com.
When the script is activated (on a Google Video search results page), it scans the page and selectively hides search results that are not from the youtube.com domain. The results are hidden by setting the display property of the search result div to 'none'.
It adds a small message to the "result-stats" div (usually located on the top of the results) indicating that non-youtube items have been hidden. Clicking this message will toggle the visibility of hidden items, alternately showing and hiding non-youtube videos each time you click.
The script uses MutationObserver to monitor the search results container. This allows it to respond dynamically when new results are loaded, such as when the user scrolls down, and to hide non-youtube videos from the new results as well.
The script will only run on Google Video search results pages, as specified by the @match line in the metadata block. It looks for tbm=vid to tell it is on the videos tab. Modify the match statement for other google domains besides .ca/.com
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址