-
-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update themes.js ytd-masthead is handled by CSS now #2247
Conversation
hi @raszpl, btw, would like to make an update to the stores, but our slider values are not stores (speed or volume or shortcuts). and core.js will say Uncaught TypeError: Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.
(after that, will have to test manifest3 and convert some stuff because it will be enforced June 1.) |
Just downloaded master.zip, copied over and it doesnt crash for me loading video and playing at faster speed, so ill need more info. Can you paste whole error message with line numbers? |
volume slider also isn't remembering the value, same for the sliders in shortcuts @raszpl |
* search field: almost fixed. except for chrome://extensions/?options=...... thank you! |
and --ytd-searchbox-text-color needs defining for all styles, defaults to black or white depending on cookie, probably should be same color as normal text in all themes |
CSS looks screwed on my end, like its not fitting into the window and has forced scroll bars? |
slider values aren't stored since 220d429
( more relevant than one might think https://www.youtube.com/watch?v=SLfff7Kw_Xc&t=170s )
yes, another thing. (i got to reduce index.html height again, or target that mode somehow. |
?
so is not "* search field: almost fixed. except for chrome://extensions/?options=....." ? search works fine in chrome://extensions/?options=lodjfjlkodalimdjgncejhkadjhacgki
its hardcoded black on light/device theme YT cookie, and hardcoded white on dark YT theme cookie. We need to override it to normal text color on all themes since we wont be touching YT cookie. |
(yes, sorry, forget chrome://extensions/?options, can fix it with height 572 instead of 600)
oh, right that! |
even just using our Black theme screws searchbox doing black text on black :)
Instead of manipulating cookies It would be safest to manually add [dark] in same two spots YT adds it, ~same effect as YT cookie minus YT hardcodes we should have more or less all overriden by now Finally figured out why this weird piece of code doubling up listeners making Search be called twice |
thank you! @raszpl
to stick beyond reload. this doesnt: ac807b8
|
Currently our [YouTube's dark] theme doesnt work. Maybe ideally after fixing it shortcutDarkTheme should be switching between [default] and [YouTube's dark] theme? [YouTube's dark] should either copy all of YT CSS (bad), or
except we cant do the second one in ImprovedTube.setTheme() because ytd-masthead doesnt exist that early :( Maybe additional check at youtube/js&css/web-accessible/functions.js Line 149 in da7935a
afaik those are not necessary anymore: you dont check for existence of ytd-masthead. YT creates ytd-masthead while loading rather late so it has potential of crashing if someone clicks while page loads
should also set [dark] on ytd-masthead what is this.elements.dawn ? it-themes? afaik should be it-theme. .hasAttribute returns boolean so there is no need for further comparisons, simple finally
will not restore theme after previous code removing it-theme, you need to manually create it-theme
|
something like this #2253 |
No description provided.