您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove videos marked as "Shorts" from your subscription page. Will only run on that page.
// ==UserScript== // @name Remove YT Shorts from Subscription page // @namespace http://tampermonkey.net/ // @version 1.0 // @description Remove videos marked as "Shorts" from your subscription page. Will only run on that page. // @author flomei // @match https://www.youtube.com/feed/subscriptions // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @grant none // ==/UserScript== (function() { 'use strict'; setInterval(function () { removeShorts(); }, 1000); })(); function removeShorts() { var grid_list = document.querySelectorAll('ytd-thumbnail-overlay-time-status-renderer[overlay-style="SHORTS"]'); var grid_array = [...grid_list]; grid_array.forEach( function(e) { var ytd = e.closest('ytd-grid-video-renderer'); console.log(ytd); ytd.remove(); } ) }