Youtube large figuccio

menu guida autorestringe

目前為 2022-02-05 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Youtube large figuccio
  3. // @description menu guida autorestringe
  4. // @namespace https://greasyfork.org/users/237458
  5. // @version 0.3
  6. // @match https://www.youtube.com/*
  7. // @author figuccio
  8. // @grant GM_addStyle
  9. // @grant GM_setValue
  10. // @grant GM_getValue
  11. // @run-at document-end
  12. // @license MIT
  13. // ==/UserScript==
  14. // hide "guide" menu
  15. //pulsante guide- button (hide "guide" menu)
  16. $(document).ready(function() {
  17. (function() {
  18. setTimeout(function(){
  19. document.querySelector("#guide-button").click();}, 1000);
  20. })();
  21. });
  22. /*
  23. (function() {
  24. var guide_button=document.getElementById('guide-button');
  25. if(guide_button){
  26. var tmp=guide_button.getElementsByTagName('button');
  27. if(tmp.length) {
  28. tmp=tmp[0].attributes;
  29. if(tmp&&tmp['aria-pressed'].value=='true')
  30. guide_button.click();
  31. }
  32. }
  33. })();
  34. */