您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
平滑展开视频信息
当前为
// ==UserScript== // @name 哔哩哔哩-平滑展开视频信息 // @namespace ckylin-bilibili-animated-showfullinfo // @version 0.1 // @description 平滑展开视频信息 // @author CKylinMC // @match https://www.bilibili.com/video/* // @grant none // ==/UserScript== function CK_elementOk(){ return document.querySelector("#v_desc>div.info")!=null; } function CK_getRealHeight(){ return document.querySelector("#v_desc>div.info").scrollHeight; } window.CK_animatedFullInfo = false; function CK_doAnimateFullInfoInject(){ if(window.CK_animatedFullInfo) return true; if(!CK_elementOk()) return false; let targetDom = document.querySelector("#CK_animatedFullInfoCSS"); if(targetDom) targetDom.remove(); targetDom = document.createElement("style"); targetDom.id = "CK_animatedFullInfoCSS"; targetDom.innerHTML = "#v_desc>div.info.open{height: "+CK_getRealHeight()+"px!important;}"; document.body.appendChild(targetDom); window.CK_animatedFullInfo = true; return true; } function CK_recheckAFI(){ if(!CK_doAnimateFullInfoInject()) setTimeout(()=>{CK_recheckAFI()},1000); } setInterval(()=>{CK_recheckAFI()},5000);