您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows YouTube video tags in the description.
当前为
// ==UserScript== // @name Show Video Tags // @namespace Violentmonkey Scripts // @match https://www.youtube.com/* // @grant none // @version 1.0 // @author BowDown097 // @description Shows YouTube video tags in the description. // @icon https://www.google.com/s2/favicons?domain=youtube.com // @homepageURL https://github.com/BowDown097/YT-Userscripts // ==/UserScript== function createDescriptionSection(items, tags) { const sectionRenderer = document.createElement("ytd-video-description-course-section-renderer"); sectionRenderer.className = "style-scope ytd-structured-description-content-renderer"; items.appendChild(sectionRenderer); const title = sectionRenderer.querySelector("#title"); title.innerHTML = "Tags: " + tags.join(", "); title.style = "font-size: inherit; line-height: inherit; max-height: fit-content"; } function showTags() { if (window.location.pathname != "/watch") return; const tags = document.querySelector("ytd-app").data.playerResponse.videoDetails.keywords; if (tags.length == 0) return; const descContent = document.querySelector("#items.ytd-structured-description-content-renderer"); if (descContent !== null) { createDescriptionSection(descContent, tags); } else { const customDescContent = document.createElement("ytd-structured-description-content-renderer"); customDescContent.className = "style-scope ytd-video-secondary-info-renderer"; customDescContent.setAttribute("inline-structured-description", ""); const customItems = document.createElement("div"); customItems.id = "items"; customItems.className = "style-scope ytd-structured-description-content-renderer"; createDescriptionSection(customItems, tags); } } (function() { 'use strict'; window.addEventListener("yt-page-data-updated", showTags, false); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址