YouTube - Remove YouTube shorts from subscriptions

YouTube - Remove YouTube shorts from subscriptions list

目前为 2022-09-10 提交的版本。查看 最新版本

// ==UserScript==
// @name         YouTube - Remove YouTube shorts from subscriptions
// @namespace    Violentmonkey Scripts
// @match        *://www.youtube.com/*
// @version      2.1
// @author       jez9999
// @description  YouTube - Remove YouTube shorts from subscriptions list
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @run-at       document-start
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
 
    // ********************
    // Reminder: set the following in Violentmonkey advanced settings for Editor:
    // "tabSize": 4,
    // "indentUnit": 4,
    // "autoCloseBrackets": false,
    //
    // Also, bear in mind there appears to be a bug in Violentmonkey where after a while, MutationObserver's
    // stop being debuggable and the whole browser needs restarting before it'll work again.
    // ********************

    // Add CSS
    var sheet = document.createElement('style');
    sheet.innerHTML = `
        ytd-grid-video-renderer:has(ytd-thumbnail-overlay-time-status-renderer[overlay-style="SHORTS"]) { display: none !important; }
    `;
    document.head.appendChild(sheet);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址