更好的 Youtube Shorts

为 Youtube Shorts提供更多的控制功能,包括自动/手动跳转到对应视频页面,音量控制,播放速度控制,进度条,自动滚动,快捷键等等。

< 脚本更好的 Youtube Shorts的反馈

评价:好评 - 脚本运行良好

§
发表于:2024-12-05
编辑于:2024-12-05

1. Can you add support for dark mode? Just change the text color to white.
2. And can you make a toggle button in short video that can hide the video meta description? Element class name is "metadata-container", add CSS `visibility: hidden`.

Thank you.

§
发表于:2024-12-06

You're really making this easy for Meriel. Why don't you do it yourself?

Meriel Varen作者
§
发表于:2024-12-06

1. Can you add support for dark mode? Just change the text color to white.
2. And can you make a toggle button in short video that can hide the video meta description? Element class name is "metadata-container", add CSS `visibility: hidden`.

Thank you.

There is a dark mode, ive made it already😂, and ill consider the second suggestion since its not that hard, but where to put the button will be a problem

Meriel Varen作者
§
发表于:2024-12-06

You're really making this easy for Meriel. Why don't you do it yourself?

Thanks for speaking for me, i appreciate that😄

§
发表于:2024-12-06
编辑于:2024-12-06

Yes. I can do it for myself. I don't want to waste his time, so I help him as much as I can.

And thank for your time @Meriel, here is my suggestion:

  • About dark mode: window.matchMedia("(prefers-color-scheme: dark)").matches always return false. I'm using Chrome on Windows.

    You can try this document.querySelector('html[dark]') to check dark mode, maybe there are better ways to do that.

  • About hiding meta description, you can add a toggle button above the LIKE button or just making a hotkey for that.

Meriel Varen作者
§
发表于:2024-12-06

Yes. I can do it for myself. I don't want to waste his time, so I help him as much as I can.

And thank for your time @Meriel, here is my suggestion:

  • About dark mode:
    window.matchMedia("(prefers-color-scheme: dark)").matches always return false. I'm using Chrome on Windows.

    You can try this document.querySelector('html[dark]') to check dark mode, maybe there are better ways to do that.

  • About hiding meta description, you can add a toggle button above the LIKE button or just making a hotkey for that.

but it works fine in my browser and im using chrome too, i cant test it....
v would be a nice hotkey, i'd choose v to toggle on and off of the instruction

Meriel Varen作者
§
发表于:2024-12-06

and btw, i choose not to add the hideinst to the bar below, i think it doesnt have the same level as volume, speed and scroll, so i just add a shortcut key

§
发表于:2024-12-06
编辑于:2024-12-06

Thank you. My browser is shown black instead.
I've tried on Brave, Edge both are black.

Meriel Varen作者
§
发表于:2024-12-06

Thank you. My browser is shown black instead.
I've tried on Brave, Edge both are black.



maybe giving me more details would help?
like im using 'windows11, chrome131', you are using linux or sth?

§
发表于:2024-12-06

I'm using windows 10. chrome v131.0.6778.109

§
发表于:2024-12-06
编辑于:2024-12-06

Also hiding meta only works on the first video. You should change the code to:

document.querySelector("ytd-reel-video-renderer[is-active] .metadata-container")

Meriel Varen作者
§
发表于:2024-12-06

Also hiding meta only works on the first video. You should change the code to:

document.querySelector("ytd-reel-video-renderer[is-active] .metadata-container")

ur right, thanks. and just now i tested it on my win10 laptop, and its still the same, everything's fine, so i guess i cannot help, sorry bro.

§
发表于:2024-12-06
编辑于:2024-12-06

Can you check both of them like?

const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches || document.documentElement.hasAttribute('dark');

Meriel Varen作者
§
发表于:2024-12-06

Can you check both of them like?

const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches || document.documentElement.hasAttribute('dark');

there are no err in my browser so i cant test it, is window.matchMedia("(prefers-color-scheme: dark)").matches || document.documentElement.hasAttribute('dark'); appears to be good in your browser? if works fine i'll change to it

§
发表于:2024-12-06

Yes. It's good for me. Its will check for matchMedia, if false, it will check for 'dark' attribute.

Meriel Varen作者
§
发表于:2024-12-06

Yes. It's good for me. Its will check for matchMedia, if false, it will check for 'dark' attribute.

try version 2.4.2, is it working fine right now?

§
发表于:2024-12-06

It works now. Thank you.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址