youtube icon indicating copy to clipboard operation
youtube copied to clipboard

🐞"Pause while I watch a 2nd video" not working

Open FranAyrolo opened this issue 4 months ago • 7 comments

Concise Description

Browser: Mozilla Firefox for Linux Mint, mint-001 - 1.0 Version 143.0.1 (64-bit)

Pretty much the title. I have a chill music video playing, and when playing a new video the first one doesn't stop. Happens with any combination of tabs. I see there is an open issue about it, but for MS Edge: https://github.com/code-charity/youtube/issues/3022 Also I tried logging out, as the bug report page suggests, and it works when logged out (also on incognito windows)

Browser/s

Firefox

Other Browser:

No response

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

Open 2 youtube videos in different tabs. Play one, then switch to a different tab and play the other.

Since when?

Don't know. Installed the extension 2 weeks ago (~16th september)

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

No

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

NORMAL: Object { PremiumClientSharedConfig__enable_att_context_processor: true, PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client: true, PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client: true, ab_det_apb_b: true, ab_det_apm: true, ab_det_el_h: true, ab_det_em_inj: true, ab_det_pp_ov: true, ab_l_sig_st: true, ab_l_sig_st_e: true, … }

LOGGED OUT: Object { PremiumClientSharedConfig__enable_att_context_processor: true, ab_det_apb_b: true, ab_det_apm: true, ab_det_el_h: true, ab_det_em_inj: true, ab_det_pp_ov: true, ab_l_sig_st: true, ab_l_sig_st_e: true, ab_sa_ef: true, action_companion_center_align_description: true, … }

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

No, at least none when playing videos, just the usual ad-blocked errors.

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

None

Expected preferred behavior:

No response

ImprovedTube Version

4.1325

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

I get this error, I don't know why:

Uncaught ReferenceError: ImprovedTube is not defined
    <anonymous> debugger eval code:1
debugger eval code:1:67
    <anónima> debugger eval code:1

Your YouTube-Document

No response

OS / Device:

Linux 6.14.0-32-generic #32~24.04.1-Ubuntu Linux Mint 22.2 Zara

FranAyrolo avatar Sep 29 '25 17:09 FranAyrolo

Hey @FranAyrolo the Edge browser issue has been resolved. I tested it multiple times and it's working great. I also tested the Edge browser just now and it's working nicely. I think there was a compatibility issue in Mozilla Firefox or some unsupported patch release on Linux Mint, mint-001 1.0 Version 143.0.1 (64-bit). I will check it give me some time.

Shashank4516 avatar Sep 30 '25 04:09 Shashank4516

I've run into a similar issue with the add-on in Firefox as well to where prevent auto playing of videos is just stopping them from playing and the extra buttons don't show up in the player. If I log out, it works just fine, like with the OP. I'm on Windows 11 however.

IrisAquae avatar Sep 30 '25 05:09 IrisAquae

hi! and thank you @FranAyrolo @Shashank4516 @IrisAquae

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

There are over a 1000 flags and we can consider all differences. Compare: https://github.com/code-charity/youtube/issues/2251

Also, now that you experienced this, please consider to edit or comment on the bug report template for efficiency.

PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client: true, PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client: true,

This would be related to Youtube Premium, if these were the only difference and you could test: uBlock origin:

www.youtube.com##+js(set,yt.config_.EXPERIMENT_FLAGS.PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client, false)
www.youtube.com##+js(set,yt.config_.EXPERIMENT_FLAGS.PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client, false)

or Adguard:

youtube.com#%#//scriptlet('set-constant', 'yt.config_.EXPERIMENT_FLAGS.PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client', 'false')
youtube.com#%#//scriptlet('set-constant', 'yt.config_.EXPERIMENT_FLAGS.PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client', 'false')

ImprovedTube avatar Oct 03 '25 03:10 ImprovedTube

Things seem to working again for me now. Thanks for what you did!

IrisAquae avatar Oct 04 '25 09:10 IrisAquae

It seems to pause sometimes, but not other times. For example I have two tabs now, the new tab pauses when old tab starts playing, but not the other way around.

Firefox Nightly on Linux.

nazar-pc avatar Oct 07 '25 13:10 nazar-pc

Sorry for the delay, @ImprovedTube , I couldn't understand your message :( I tried a couple times but my brain is fried from work.

What should I compare to #2251 ? Also, from the

Adguard:

youtube.com#%#//scriptlet('set-constant', 'yt.config_.EXPERIMENT_FLAGS.PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client', 'false')
youtube.com#%#//scriptlet('set-constant', 'yt.config_.EXPERIMENT_FLAGS.PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client', 'false')

I assume you mean I should install Adguard and try those settings in it? From the console?

FranAyrolo avatar Oct 10 '25 17:10 FranAyrolo

Yeah, I observed the same behavior on Firefox 146b4 as well...

GrPK avatar Nov 18 '25 19:11 GrPK