Auto expand channel list and Open channel showing video view

Auto expand the channel list after 3 seconds and change to channel video tab after entering a channel

  1. // ==UserScript==
  2. // @name Auto expand channel list and Open channel showing video view
  3. // @namespace https://greasyfork.org/en/users/254603-shurtmato
  4. // @version 0.3.5
  5. // @description Auto expand the channel list after 3 seconds and change to channel video tab after entering a channel
  6. // @author Shurtmato
  7. // @match https://www.youtube.com/*
  8. // @require https://code.jquery.com/jquery-3.7.0.min.js
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
  10. // @grant none
  11. // @license MIT
  12.  
  13. // ==/UserScript==
  14.  
  15. /* global $ */
  16. /* global jQuery */
  17.  
  18. $( document ).ready(function() {
  19. setTimeout( function(){
  20. $("#expander-item").click();
  21. //$(".ytd-guide-collapsible-entry-renderer").eq(0).click();
  22. $('#sections a').click(function( event ){
  23. setTimeout( function(){
  24. $(".ytd-guide-collapsible-entry-renderer").eq(0).click();
  25. $( "#tabsContent" ).children().eq(1).children().eq(0).children().eq(1).click();
  26. } , 1000 );
  27. });
  28. } , 3000 );
  29. });