您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script reads comments while watching a video if you're acting like a tablet interface.
当前为
- // ==UserScript==
- // @name YouTube - Read Comments while Watching
- // @version 1.0.0
- // @description This script reads comments while watching a video if you're acting like a tablet interface.
- // @author Magma_Craft
- // @license MIT
- // @match https://www.youtube.com/*
- // @namespace https://greasyfork.org/en/users/933798
- // @icon https://www.youtube.com/favicon.ico
- // @grant none
- // ==/UserScript==
- (function() {
- window['yt'] = window['yt'] || {};
- yt['config_'] = yt.config_ || {};
- yt.config_['EXPERIMENT_FLAGS'] = yt.config_.EXPERIMENT_FLAGS || {};
- var iv = setInterval(function() {
- yt.config_.EXPERIMENT_FLAGS.kevlar_watch_comments_panel_button = true;
- yt.config_.EXPERIMENT_FLAGS.kevlar_watch_hide_comments_while_panel_open = true;
- yt.config_.EXPERIMENT_FLAGS.kevlar_watch_comments_ep_disable_theater = false;
- }, 1);
- var to = setTimeout(function() {
- clearInterval(iv);
- }, 1000)
- })();
- (function() {
- ApplyCSS();
- function ApplyCSS() {
- var styles = document.createElement("style");
- styles.innerHTML=`
- /* Removes second comment teaser box */
- #comment-teaser.ytd-watch-metadata {
- display: none;
- }`
- document.head.appendChild(styles);
- }
- })();