GuillaumeSmaha / youtube-webos-cobalt-app

Youtube App without ADs
GNU General Public License v3.0
19 stars 8 forks source link

Add option to hide YouTube logo from the top right. #1

Closed tomikaka22 closed 1 year ago

tomikaka22 commented 1 year ago

Inspired by https://github.com/webosbrew/youtube-webos/pull/56/

This pull request adds an option to hide the YouTube logo from the top right corner. This feature is aimed at OLED TV owners.

tomikaka22 commented 1 year ago

The original implementation used the "DOMNodeInserted" event, but it seems like that's not a thing in cobalt. From what I read DOMNodeInserted is horrible performance-wise anyway.

For a lack of a better way I decided to use the "keyup" event.