adamlui/userscripts

Some things are not working and have disappeared

Closed this issue · 21 comments

For the old youtube theme: The subscribe button has shrunk down to like 2 pixels and the subscribe text is also gone. The topbar in youtube when you are watching a video is not present unless you scroll down but it should be completely solid when you are scrolled to the top. Also, the search bar is rounded which there is a style to revert this but it's worth pointing out. Hopefully, these bugs can be fixed. Thanks.

@Mark242Lenny I restored the modern sub button until I re-style it manually to classic one. For the topbar, what's your browser & userscript manager and can you show a screenshot? For search bar it's square now, can you udpate @ https://greasyfork.org/en/scripts/456132-youtube-classic-remove-rounded-design-return-youtube-dislikes

i use tamper monkey and here is a screenshot of the top bar not being there (on a video):
Annotation 2023-03-25 202619
And here is what it used to look like
image
When i scroll down it appears again tho and becomes slightly transparent but when i scrolled back up it dissapears. here is what the transparent thing is
image
Oh also when the page is loading you can see the topbar but when it loads it dissapears

Hey I can't tell what is missing, I see a top bar in all three shots, also can you update to the latest version @ https://ytclassic.com first (it tweaks the search bar and restores missing sub button)

So basically it's the grey topbar that used to be on the old youtube but they changed something to remove it. The first image shows the top bar being removed recently. The second image is from a while ago when the top bar was still present, and the third image just shows when you scroll down it shows up again (like it should) For some reason this bug only happens on dark mode because in light mode the white topbar is still there

I can't see anything missing in your screenshots, maybe you can record it using https://ispring-free-cam.en.softonic.com/ and drag and drop it into a reply? (Also try zooming in so your browser with ctrl +/wheelup so the change is more noticable)

I zoomed it in more as u can see there is no top bar
image
and here is what happens when i scrolled down a little
image
there should be a top bar without having to scroll down. It actually appears for a split second while the page is loading:
image
but once the page loads the grey bar vanishes like in the first image.

do you see the grey bar its more zoomed in its like a lighter grey than the dark grey background

No I don't :/

Try turning your brightness up because i can see it. Look at the bottom one. see where all the loading icons are and the search bar and the 3 lines. all of that is docked inside a grey bar. But when the page loads that grey bar goes invisible like in the first image there is no grey bar docking the search bar the menu icon and the other icons at the top.

When i go into theater mode the grey bar is still at the top of the screen but when im not in theater mode its not at the top of the screen anymore and its just the background. Here is what it looked like in theater mode
image

you can put the first and last image from before into an RGB picker if that would help too. I really don't know how or why youtube would change something like that. It looks ugly not having a topbar to doc all the icons when you watching videos (outside of theater mode) Maybe they removed it because of ambient mode but this script actually used to add the topbar back in the past but youtube changed something and now it doesn't (when you are out of theater mode and watching any video)

I believe you but I can't see the dock you're talking about so can't fix it. My monitor is very old the brightness won't go up

ok can you try using an rgb picker on this image (without the doc):
image
And this image (with the doc):
image
The doc shows while the page is loading but once the page loads it disappears. it might have something to do with when you scroll down the transparency of the doc changes. and maybe youtube changed something with the padding or something. Put it in an rgb picker and you will see the difference with the doc and without. the one without the doc will have the same rgb value if you click where the doc used to be and if you click on the background where the doc isnt. But on the second image where the page was still loading and the doc was present you will get 2 different rgb values.

I was up all night coding but I will examine it closer to try to fix soon

On another day I mean

Ok, Thanks :)

I found the issue with the top bar! the opacity is been overridden by an element style that makes it set to 0. If you add an !important to the opacity 1 in the element it should fix the issue. Whenever you have a chance to fix it
image

add this into the style sheet part of the code
#background.ytd-masthead{opacity: 1!important;}

@Mark242Lenny can you try to edit your userscript with this fix and see if it works (because I can't tell on my monitor and w/ my poor vision)? Then if it does, can you edit the user.js here, which will create a branch you can submit as pull request then you become contributor

@Mark242Lenny or I can add the !important and update the code, either way let me know (but I won't know if it worked it will be a mystery until your reveal)

I edited my script so it is fixed all I did was add that line of code into the styling part of the script where all they styles appended to YouTube