Youtube UI Fix

Moves the controls under the video and makes the UI look like it was before august 2015

< 腳本Youtube UI Fix的回應

提問/評論

§
發表於:2015-08-13

progressbar with a width at 100% ?

hi, it's me again :p

Do you think it would be possible to have the progressbar with a width of 100% without the offset of bug when control of it ?

progressbar updater script happens to have proper display width to 100% but only for viewing. For the control of it, become again the bar to with original size.

I would like to have a control over the whole width without the bug timing delay :)

Roy192作者
§
發表於:2015-08-13

I'm pretty sure it cannot be done with css, I can't write a few rules of css and say that the progressbar needs to be 24px bigger and 12px more to the left (without everything bugging out).

The problem lies within clicking the progressbar, to go to a specific time of the video. Somewhere in the player's script (written by youtube) is a line of code that calculates the time it needs to jump to when the progressbar is clicked, but I can't find that code. Take a look at the script for yourself: http://s.ytimg.com/yts/jsbin/html5player-new-en_US-vflxgfwPf/html5player-new.js

See what I mean? The script is huge, and obfuscated. All the meaningful names have been replaced by random bits of text. It is theoretically possible to find the function or property I need to change to fix the problem. But it goes beyond my javascript skills.

§
發表於:2015-08-14
編輯:2015-08-14

I have also failed to resolve the issue with CSS.

I looked at the script YouTube you put me. And it's true that it's huge !
I used this website (http://jsbeautifier.org/) to unzip "in pasting copying" the code and make it more readable.
we can do a search with a keyword related to the progress bar. From the 48176 line, there is little to be something to see who could help. You may already be seen ?

But I recognize that this is quite complicated.

發表回覆

登入以回復