menu guida autorestringe
当前为
// ==UserScript==
// @name Youtube large figuccio
// @description menu guida autorestringe
// @namespace https://greasyfork.org/users/237458
// @version 0.3
// @match https://www.youtube.com/*
// @author figuccio
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @run-at document-end
// @license MIT
// ==/UserScript==
// hide "guide" menu
//pulsante guide- button (hide "guide" menu)
$(document).ready(function() {
(function() {
setTimeout(function(){
document.querySelector("#guide-button").click();}, 1000);
})();
});
/*
(function() {
var guide_button=document.getElementById('guide-button');
if(guide_button){
var tmp=guide_button.getElementsByTagName('button');
if(tmp.length) {
tmp=tmp[0].attributes;
if(tmp&&tmp['aria-pressed'].value=='true')
guide_button.click();
}
}
})();
*/