YouTube Subscriptions Page: Hide Hidden Videos

Once a video is hidden, automatically hide the video as well

  1. // ==UserScript==
  2. // @name YouTube Subscriptions Page: Hide Hidden Videos
  3. // @namespace hideHiddenVideos_kk
  4. // @description Once a video is hidden, automatically hide the video as well
  5. // @version 0.2
  6. // @author Kai Krause <kaikrause95@gmail.com>
  7. // @match http://*.youtube.com/*
  8. // @match https://*.youtube.com/*
  9. // @run-at document-start
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. // Youtube's inline loading method may confuse the browser
  14. if (!location.href.includes('youtube.com/feed/subscriptions')) return;
  15.  
  16. function autoHideHidden () {
  17. var renderers = document.getElementsByTagName('ytd-grid-video-renderer');
  18.  
  19. for (var i = 0; i < renderers.length; ++i) {
  20. var dismissedItem = renderers[i].getAttribute('is-dismissed');
  21. if (dismissedItem === "") {
  22. renderers[i].remove();
  23. break;
  24. }
  25. }
  26. }
  27. document.addEventListener('click', autoHideHidden);

QingJ © 2025

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