[GH-ISSUE #6] SUGGESTION : m.youtube.com support (For Firefox for Android, Safari on iOS etc..) #6

Open
opened 2026-03-04 00:02:59 +03:00 by kerem · 16 comments
Owner

Originally created by @HotSpot-IT on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/6

Hey YouG-o,

it's not really an issue, more a Feature request. :)
But it would be super nice, to make this one work on Firefox for Android too.

Thank you for the good work, it's a great idea.

Originally created by @HotSpot-IT on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/6 Hey YouG-o, it's not really an issue, more a Feature request. :) But it would be super nice, to make this one work on Firefox for Android too. Thank you for the good work, it's a great idea.
Author
Owner

@WyvernIXTL commented on GitHub (Apr 23, 2025):

This! On Firefox for Android, the automatic translation of audio cannot be disabled. :(

<!-- gh-comment-id:2824316851 --> @WyvernIXTL commented on GitHub (Apr 23, 2025): This! On Firefox for Android, the automatic translation of audio cannot be disabled. :(
Author
Owner

@david7919 commented on GitHub (Jun 1, 2025):

I tried it on iceraven (fork of firefox), didnt work either.
https://github.com/fork-maintainers/iceraven-browser

<!-- gh-comment-id:2926914535 --> @david7919 commented on GitHub (Jun 1, 2025): I tried it on iceraven (fork of firefox), didnt work either. https://github.com/fork-maintainers/iceraven-browser
Author
Owner

@YouG-o commented on GitHub (Jun 1, 2025):

Since a lot of people are askin for it, I'll see what I can do in the next weeks.

<!-- gh-comment-id:2927409911 --> @YouG-o commented on GitHub (Jun 1, 2025): Since a lot of people are askin for it, I'll see what I can do in the next weeks.
Author
Owner

@steffenrh commented on GitHub (Jun 6, 2025):

I would like to support this concern. On Firefox in Windows, I do not get any AI translations, but in Firefox on Android, the same video is translated and it cannot be turned off.

<!-- gh-comment-id:2949147706 --> @steffenrh commented on GitHub (Jun 6, 2025): I would like to support this concern. On Firefox in Windows, I do not get any AI translations, but in Firefox on Android, the same video is translated and it cannot be turned off.
Author
Owner

@YouG-o commented on GitHub (Jun 15, 2025):

Hey everyone,

Quick update on mobile support for m.youtube.com. The easy part: displaying original video titles on mobile is not a problem. That's mostly about finding the right HTML selectors, so not a huge blocker there.

The hard part: audio control. On desktop, the extension uses YouTube's player API methods to switch audio languages. Works great. On mobile, however, these specific API methods seem to be missing from the player. I've dug around quite a bit but didn't find anything relevant to use.

So, for now, I'm stuck on implementing audio switching for mobile. I don't see a clear path forward with what's currently available on their mobile platform.

Same thing for subtitles and video description.

I could still port the add-on on Firefox for android, but it would only support titles. I don't think it's worth the pain since the main feature you guys want is the original audio track switch.
The add-on would also get terrible reviews on Mozilla store from Android users since only 1 feature would work lol.

So for now I will let this in stand-by, but if anyone has experience with this or has a clever idea I've missed, I'm definitely open to suggestions or contributions.

<!-- gh-comment-id:2973484478 --> @YouG-o commented on GitHub (Jun 15, 2025): Hey everyone, Quick update on mobile support for m.youtube.com. The easy part: displaying original video titles on mobile is not a problem. That's mostly about finding the right HTML selectors, so not a huge blocker there. The hard part: audio control. On desktop, the extension uses YouTube's player API methods to switch audio languages. Works great. On mobile, however, these specific API methods seem to be missing from the player. I've dug around quite a bit but didn't find anything relevant to use. So, for now, I'm stuck on implementing audio switching for mobile. I don't see a clear path forward with what's currently available on their mobile platform. Same thing for subtitles and video description. I could still port the add-on on Firefox for android, but it would only support titles. I don't think it's worth the pain since the main feature you guys want is the original audio track switch. The add-on would also get terrible reviews on Mozilla store from Android users since only 1 feature would work lol. So for now I will let this in stand-by, but if anyone has experience with this or has a clever idea I've missed, I'm definitely open to suggestions or contributions.
Author
Owner

@wave864 commented on GitHub (Jun 16, 2025):

Interesting, this would track with the UI elements available in "mobile" mode. If you want to change the language in the UI by yourself you have to change to "desktop" mode in Firefox afaik. Maybe there's a possible way forward this way?

Thank you for your time and work on this!

<!-- gh-comment-id:2976565922 --> @wave864 commented on GitHub (Jun 16, 2025): Interesting, this would track with the UI elements available in "mobile" mode. If you want to change the language in the UI by yourself you have to change to "desktop" mode in Firefox afaik. Maybe there's a possible way forward this way? Thank you for your time and work on this!
Author
Owner

@david7919 commented on GitHub (Jun 16, 2025):

In the mobile yt web ui there is no settings in the video player to change the audio track, but if the language in the yt settings is changed to match the original language of the video then the video plays the original audio track without going into desktop mode.

Is this something an extension can automatically do?

Image

<!-- gh-comment-id:2977374199 --> @david7919 commented on GitHub (Jun 16, 2025): In the mobile yt web ui there is no settings in the video player to change the audio track, but if the language in the yt settings is changed to match the original language of the video then the video plays the original audio track without going into desktop mode. Is this something an extension can automatically do? ![Image](https://github.com/user-attachments/assets/d946314e-3a9d-4ffb-8487-0a2fc9fed37e)
Author
Owner

@C0D3D3V commented on GitHub (Jul 9, 2025):

I also debugged a bit. Of course, the easiest way would be to simply load the desktop player instead of the mobile player :D

The mobile player is actually very slimmed down, it also has the functions getAvailableAudioTracks setAudioTrack ... but not on a global level and also partially modified.
This means that the access to the functions is not quite as nice, and you have to adjust the filter functions a bit, because the audio tracks that do not match the set preference are simply filtered out of the metadata (if there is an audio track that matches).
Doing this requires a lot of patching and is not as nice as your current code.

PS. Changing the player to the desktop player is not really an option. I tested it, it is pain to use it on mobile devices.

<!-- gh-comment-id:3052130194 --> @C0D3D3V commented on GitHub (Jul 9, 2025): I also debugged a bit. Of course, the easiest way would be to simply load the desktop player instead of the mobile player :D The mobile player is actually very slimmed down, it also has the functions `getAvailableAudioTracks` `setAudioTrack` ... but not on a global level and also partially modified. This means that the access to the functions is not quite as nice, and you have to adjust the filter functions a bit, because the audio tracks that do not match the set preference are simply filtered out of the metadata (if there is an audio track that matches). Doing this requires a lot of patching and is not as nice as your current code. PS. Changing the player to the desktop player is not really an option. I tested it, it is pain to use it on mobile devices.
Author
Owner

@turbocombo commented on GitHub (Jul 9, 2025):

Sometimes the workaround of changing Setting > General > Language is not enough for the mobile player to change the audio track language. When that happens, I open the video in a private tab and change Setting > General > Language from there.

How the mobile player determine the audio track language? Does it read locally stored values? That would explain why changing Setting > General > Language in a regular browsing session sometimes doesn't work, but changing it in a new private browsing session works reliably.

<!-- gh-comment-id:3052458076 --> @turbocombo commented on GitHub (Jul 9, 2025): Sometimes the workaround of changing `Setting > General > Language` is not enough for the mobile player to change the audio track language. When that happens, I open the video in a private tab and change `Setting > General > Language` from there. How the mobile player determine the audio track language? Does it read locally stored values? That would explain why changing `Setting > General > Language` in a regular browsing session sometimes doesn't work, but changing it in a new private browsing session works reliably.
Author
Owner

@sophie-la-li commented on GitHub (Aug 14, 2025):

So at least I would also appreciate this if it would just blocks title translations. Just saying.

<!-- gh-comment-id:3189896978 --> @sophie-la-li commented on GitHub (Aug 14, 2025): So at least I would also appreciate this if it would just blocks title translations. Just saying.
Author
Owner

@YouG-o commented on GitHub (Nov 10, 2025):

Do you guys still have dubbed audio on mobile?

I'm working on the mobile version of the add-on but when I tried to test the audio to see if I could do anything, all the videos default to their original-language audio. So I couldn't test the audio at all.

Maybe YouTube has reverted and no longer offers dubbed audio by default — since the mobile player doesn't let you change audio tracks, they aren't forcing the dubbed audio anymore, are they? I hope that's it, less work for me 😄

Edit : v2.18.0 has been submitted to Mozilla. All features have been adapted for m.youtube.com (except for chapters & audio track).

Unfortunately, it won’t be available before a few days. Now that the add-on has a "lot" of users, Mozilla has to review every update manually, and it takes an eternity...

Anyway, please let me know here if you find any bugs or if you still see anything being translated on mobile. I might have missed something, and I don’t use mobile YouTube at all, so I’m counting on you!

<!-- gh-comment-id:3509410966 --> @YouG-o commented on GitHub (Nov 10, 2025): Do you guys still have dubbed audio on mobile? I'm working on the mobile version of the add-on but when I tried to test the audio to see if I could do anything, all the videos default to their original-language audio. So I couldn't test the audio at all. Maybe YouTube has reverted and no longer offers dubbed audio by default — since the mobile player doesn't let you change audio tracks, they aren't forcing the dubbed audio anymore, are they? I hope that's it, less work for me 😄 Edit : [v2.18.0](https://github.com/YouG-o/YouTube-No-Translation/releases/tag/v2.18.0) has been submitted to Mozilla. All features have been adapted for m.youtube.com (except for chapters & audio track). Unfortunately, it won’t be available before a few days. Now that the add-on has a "lot" of users, Mozilla has to review every update manually, and it takes an eternity... Anyway, please let me know here if you find any bugs or if you still see anything being translated on mobile. I might have missed something, and I don’t use mobile YouTube at all, so I’m counting on you!
Author
Owner

@YouG-o commented on GitHub (Nov 10, 2025):

Also, I bought a Mac (it hurts 😅) to port the add-on to Safari for macOS. So I'll probably do it for Safari on iOS next, too.

<!-- gh-comment-id:3509462398 --> @YouG-o commented on GitHub (Nov 10, 2025): Also, I bought a Mac (it hurts 😅) to port the add-on to Safari for macOS. So I'll probably do it for Safari on iOS next, too.
Author
Owner

@C0D3D3V commented on GitHub (Nov 10, 2025):

all the videos default to their original-language audio.

Yes I noticed that a few days before too. Maybe its intentionally by YouTube. My guess is they changed the backend, like changing the sorting of the tracks (without adapting the mobile backend). There is currently no way to play the auto dubbed audio too, so I guess it's a bug.

<!-- gh-comment-id:3509941824 --> @C0D3D3V commented on GitHub (Nov 10, 2025): > all the videos default to their original-language audio. Yes I noticed that a few days before too. Maybe its intentionally by YouTube. My guess is they changed the backend, like changing the sorting of the tracks (without adapting the mobile backend). There is currently no way to play the auto dubbed audio too, so I guess it's a bug.
Author
Owner

@Func86 commented on GitHub (Nov 13, 2025):

This one is dubbed in English for me as of now: https://m.youtube.com/shorts/7UUrw5bYZSQ

The most annoying part is that the built-in audio track option per video is also not working, so I guess it's much difficult to implement without any reference.

<!-- gh-comment-id:3530044552 --> @Func86 commented on GitHub (Nov 13, 2025): This one is dubbed in English for me as of now: https://m.youtube.com/shorts/7UUrw5bYZSQ The most annoying part is that the built-in audio track option per video is also not working, so I guess it's much difficult to implement without any reference.
Author
Owner

@YouG-o commented on GitHub (Nov 14, 2025):

This one is dubbed in English for me as of now: https://m.youtube.com/shorts/7UUrw5bYZSQ

The most annoying part is that the built-in audio track option per video is also not working, so I guess it's much difficult to implement without any reference.

Yes, same for me.

Looks like that shorts audio is still defaulted to dubbed track.
But I still don't get dubbed audio for regular videos. Do you?

You can test with this video (it is dubbed in English, don't know for other languages so you must have an English yt) :

Desktop : https://www.youtube.com/watch?v=0_wp5HQNoqo&app=desktop&persist_app=0
Mobile : https://m.youtube.com/watch?v=0_wp5HQNoqo&app=m&persist_app=0

For me -with the add-on disabled and with youtube set in English- the video is dubbed on desktop but not on mobile.
So with the add-on no dubbing at all for both.

But yes with your short :
Desktop : https://www.youtube.com/watch?v=7UUrw5bYZSQ&app=desktop&persist_app=0
Mobile : https://m.youtube.com/shorts/7UUrw5bYZSQ?app=m&persist_app=0

I may have a deeper look at it in the future, but can't promise it will be soon.

To anyone, please don't hesitate to let me know if you get dubbed audio of a regular video on mobile YouTube.

<!-- gh-comment-id:3531741059 --> @YouG-o commented on GitHub (Nov 14, 2025): > This one is dubbed in English for me as of now: https://m.youtube.com/shorts/7UUrw5bYZSQ > > The most annoying part is that the built-in audio track option per video is also not working, so I guess it's much difficult to implement without any reference. Yes, same for me. Looks like that shorts audio is still defaulted to dubbed track. But I still don't get dubbed audio for regular videos. Do you? You can test with this video (it is dubbed in English, don't know for other languages so you must have an English yt) : Desktop : https://www.youtube.com/watch?v=0_wp5HQNoqo&app=desktop&persist_app=0 Mobile : https://m.youtube.com/watch?v=0_wp5HQNoqo&app=m&persist_app=0 For me -with the add-on disabled and with youtube set in English- the video is dubbed on desktop but not on mobile. So with the add-on no dubbing at all for both. But yes with your short : Desktop : https://www.youtube.com/watch?v=7UUrw5bYZSQ&app=desktop&persist_app=0 Mobile : https://m.youtube.com/shorts/7UUrw5bYZSQ?app=m&persist_app=0 I may have a deeper look at it in the future, but can't promise it will be soon. To anyone, please don't hesitate to let me know if you get dubbed audio of a regular video on mobile YouTube.
Author
Owner

@Func86 commented on GitHub (Feb 4, 2026):

They are not calling the settings API (https://www.youtube.com/youtubei/v1/account/get_setting_values?prettyPrint=false when constructing the player on mobile, so even if the audio track setting is set from desktop, the mobile player would still serve the default dubbed track. Using player.setAudioTrack() on mobile is not calling the /set_setting API either.

Another example, since the previous one was gone: https://m.youtube.com/shorts/Zuq_ydEUwW8

<!-- gh-comment-id:3849689710 --> @Func86 commented on GitHub (Feb 4, 2026): They are not calling the settings API (`https://www.youtube.com/youtubei/v1/account/get_setting_values?prettyPrint=false` when constructing the player on mobile, so even if the audio track setting is set from desktop, the mobile player would still serve the default dubbed track. Using `player.setAudioTrack()` on mobile is not calling the `/set_setting` API either. Another example, since the previous one was gone: https://m.youtube.com/shorts/Zuq_ydEUwW8
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/YouTube-No-Translation#6
No description provided.