Youtube - Search While Watching Video

Search YouTube without interrupting the video, by loading the search results in the related video bar

< 腳本Youtube - Search While Watching Video的回應

評論:正評 - 腳本一切正常

§
發表於:2020-10-09
編輯:2020-10-12

[ SOLVED ] It's related only with my userstyle enable:
Youtube WideScreen (New Design Polymer)

I have adapted it to support your useful script.

But i have problem with your thumbnail results (but i have the same problem with the normal related thumbnail):
the first are not visible (no image, only tittle and another infos).
I thinks it's a problem of lazyloading.
Can you find a solution against that ?

Cptmathix作者
§
發表於:2020-10-09

Hey decembre,

Unfortunately I don't have any issues with lazy loading. Does the problem persist when you scroll?
If yes, It's probably another issue. Can you check the user console for script errors maybe.

§
發表於:2020-10-09
編輯:2020-10-09

Thanks for the reply:
With my userstyle , if i scroll down the related thumbnail (moved on the right side).empty thumbnail image stay blank (no image).
But if i hover them with the help on addon which preview on hover , i can see them.
Maybe it's my CSS, which restrict the height of the page...
The principal problem is for the 5 or 6 first and sometime some random after (a few).
When i scroll, they stay blank but the others are loaded...
The problem is around some events around scrolling and viewport?

Have you tested my userstyle?
I don't see something useful in console (but i am not coder...)
If i disable all userscript and my userstyle, all thumbnails are charged when i scroll.

Cptmathix作者
§
發表於:2020-10-10

I've installed your script and since I don't have a wide monitor it doesn't really work.
I can see the layout problem now, but it has nothing to do with my script (since the thumbnails also don't load with only your userstyle enabled).

I'm guessing that your css breaks the lazyload script. To find a solution you would need to reverse engineer the youtube js files... and I really don't want to do that. You'll also probably need javascript.

Sorry,
Cptmathix

§
發表於:2020-10-10
編輯:2020-10-10

Thanks, i understand;
:-)
But, seems i have found a solution by changing my CSS for line 137:
ytd-watch-next-secondary-results-renderer ,
#related.ytd-watch-flexy
Seems giving height to them solve my problem (no certain, i tested and it work...).
Now all thumbnails are visible.

Cptmathix作者
§
發表於:2020-10-10

Yes that fixed it :)

發表回覆

登入以回復

QingJ © 2025

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