您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a link to expand YouTube Community comments
当前为
// ==UserScript== // @name Add Link To Expand YouTube Community Comments // @version 1.0 // @namespace AddLinkToExpandYouTubeCommunityComments // @description Add a link to expand YouTube Community comments // @author jcunews // @include https://www.youtube.com/comments* // ==/UserScript== function expandCommentsInPage() { var i, eles = document.querySelectorAll('#yt-comments-list .comment-entry .expand'); for (i = eles.length-1; i >= 0; i--) { eles[i].click(); } } var btn = document.createElement("A"); btn.textContent = "Expand All Comments"; btn.style = "margin-left:2ex"; btn.href="javascript:void(0)"; btn.onclick = expandCommentsInPage; document.querySelector("#ytch-root .tabs-container").appendChild(btn);