你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/397256-universal-dark-theme-maker/discussions/72776,源站連結 點此以跳轉。
Simple Dark Theme style for any website which you can configure per-site
< 脚本 Universal Dark Theme Maker 的反馈
you mean this to auto-enable controls on videos?
var currentVideo;
document.onmouseover = function(e){
if (e.target.tagName == 'VIDEO' && e.target != currentVideo){
currentVideo = e.target;
e.target.setAttribute("controls", true);
e.target.parentNode.parentNode.removeAttribute("target");
e.target.parentNode.parentNode.href = "javascript: void(0)";
if(e.target.nextElementSibling.className == "sound-toggle off")
{
e.target.nextElementSibling.remove();
}
}
};
do u mind sharing video hover javascript in u javascript section?