您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically show transcript by default
当前为
- // ==UserScript==
- // @name Show transcript by default
- // @version 1.0.1
- // @description Automatically show transcript by default
- // @namespace https://youtube.com/
- // @match https://www.youtube.com/watch*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
- // @author bowencool
- // @license MIT
- // @homepageURL https://greasyfork.org/scripts/480993
- // @supportURL https://github.com/bowencool/Tampermonkey-Scripts/issues
- // @require https://cdn.jsdelivr.net/gh/bowencool/Tampermonkey-Scripts@f59cc91442dd34eb28e0d270486da5c7ac8d2d50/shared/waitForElementToExist.js
- // @grant none
- // ==/UserScript==
- (async function () {
- "use strict";
- const transcript = await waitForElementToExist(
- '[target-id="engagement-panel-searchable-transcript"]'
- );
- transcript.setAttribute("visibility", "ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
- console.log("transcript should show up now...");
- })();