youtube icon indicating copy to clipboard operation
youtube copied to clipboard

🐞hide player button "play on tv" did not hide airplay button

Open subarutendou opened this issue 2 months ago • 2 comments

Concise Description

Is first time I use this extension, so I have no idea this go to bug report or feature request. Image

Browser/s

Safari

Other Browser:

No response

'Steps to reproduce' - Which of our features is required for the bug to happen?

turn on "play on tv" option then open any youtube video.

Since when?

No idea, just installed this extension 3 days ago.

Does the bug still happen when you log out of YouTube?

None

..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)

No response

Are any errors or related log-messages shown in the Browser-Console? (F12)

No response

Tested as the only active extension? (incognito mode or another browser users):

None

Expected preferred behavior:

Hide airplay button from youtube player control

ImprovedTube Version

No response

Your Settings (From the Extension's -Hamburger menu > Settings > Backup & reset > Export settings)

No response

Your YouTube-Document

No response

OS / Device:

Macbook m4 Tahoe 26.1

subarutendou avatar Nov 13 '25 03:11 subarutendou

I do not have AirPlay personally, but I tried to look into this. It seems that when you use the hide "Play on TV" option its only hiding the .ytp-remote-button class. But YouTube may be using a completely different class for the AirPlay button. I found a different class name for AirPlay in base.js called .ytp-airplay-button. It would be nice if someone could confirm or deny this.

larsoyd avatar Nov 15 '25 03:11 larsoyd

Yes, for now I add "www.youtube.com##.ytp-airplay-button.ytp-button" rule to hide the airplay button Image

subarutendou avatar Nov 15 '25 08:11 subarutendou