请求将YouTube侧边栏隐藏的UserStyle代码转换为TamperMonkey脚本
移除YouTube左侧侧边栏的TamperMonkey脚本
以下是转换完成的UserScript代码,可直接在TamperMonkey中使用:
// ==UserScript== // @name Remove Youtube left sidebar // @description Makes YouTube sidebar collapse // @author fgtranime // @license No License // @match *://*.youtube.com/* // @grant GM_addStyle // ==/UserScript== GM_addStyle(` #guide { display: none; } ytd-app[guide-persistent-and-visible] ytd-page-manager.ytd-app { margin-left: 0; } `);
使用说明
- 打开TamperMonkey,点击"新建脚本",替换默认内容为上述代码后保存。
- 刷新YouTube页面,左侧侧边栏将被隐藏,页面内容会自动适配布局。
内容的提问来源于stack exchange,提问作者Васёк
相关产品推荐
相关产品推荐

