yuliskov / SmartTubeLegacy

Watch YouTube videos on your TV and set-top-box with comfort
Mozilla Public License 2.0
4.43k stars 597 forks source link

Option to hide youtube logo #583

Open Shazib opened 4 years ago

Shazib commented 4 years ago

The YouTube logo has managed to burn itself into my TV. Would it be possible to get an option in settings to hide this logo?

image

Thanks

Shazib commented 4 years ago

I pulled the latest version and removed all references to the logo in the CSS, and deleted the image, but it still appears and i'm not sure where the logo is coming from (possibly from the large js file?) If you can point me in the right direction I can build it myself with the logo removed. Thanks

fgl27 commented 4 years ago

With logo? Show the logo and not the burn.

You probably can do it by adding display: none !important; to the element via one of the CSS files that mod the page if the element has a unique class, if not you need to do so via one of the js file that mod the page by using the element id and changing it style display to none !important

Shazib commented 4 years ago

The one in the top right of the home/main view

I dont know which bit of the js/css to modify. As mentioned i did try removing all references to the logo URL from content.css but the JS is minified i think and i can't tell where anything would go.

image

fgl27 commented 4 years ago

The name of the css class is .ytlr-guide-response__logo

you can add this

.ytlr-guide-response__logo {
    display: none !important;
    opacity: 0 !important;
}

to the end of this file

https://github.com/yuliskov/SmartYouTubeTV/blob/main-branch/smartyoutubetv/src/main/assets/addons/on_load/00_ui_tweaks/00_ui_tweaks.css

build and will do the trick

Shazib commented 4 years ago

That worked, Thanks a ton!!!

Shazib commented 4 years ago

This suddenly seems to have stopped working, has the back-end changed?

fgl27 commented 4 years ago

this is related to the issue of the app not loading correctly see

https://github.com/yuliskov/SmartYouTubeTV/issues/641#issuecomment-695843121