Youtube - Auto-expand Subscriptions

Auto expands your subscriptions, when using grid view, so that you do not miss out of any new videos because you forgot about the "show more" button.

当前为 2016-07-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Youtube - Auto-expand Subscriptions
  3. // @version 0.1
  4. // @description Auto expands your subscriptions, when using grid view, so that you do not miss out of any new videos because you forgot about the "show more" button.
  5. // @author Luxocracy
  6. // @match https://www.youtube.com/feed/subscriptions
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/30239
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var sections = document.querySelectorAll('.item-section .yt-uix-expander-collapsed');
  14. for(var i=0; i < sections.length; i++) {
  15. sections[i].attributes.class.value = sections[i].attributes.class.value.replace('yt-uix-expander-collapsed', '');
  16. }
  17. })();