YouTube: Video pauses when switching or opening tabs.

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
Stargate38
Moon lover
Moon lover
Posts: 89
Joined: 2018-05-27, 22:55
Location: Earth

YouTube: Video pauses when switching or opening tabs.

Post by Stargate38 » 2025-11-29, 00:09

Please always mention the name/domain of the website in question in your topic title.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:

1) Clear any current output
2) Navigate or refresh the page in question
3) Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.

Code: Select all


          Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’  
(unknown)
uBO: [set-constant ⁝ playerResponse.adPlacements ⁝ undefined] Trap installed  
watch:1080:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.adSlots ⁝ undefined] Trap installed  
watch:1335:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.adPlacements ⁝ undefined] Trap installed  
watch:1590:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.playerAds ⁝ undefined] Trap installed  
watch:1845:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.auxiliaryUi.messageRenderers.upsellDialogRenderer ⁝ undefined] Trap installed  
watch:2812:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.adSlots ⁝ undefined] Trap installed  
watch:1335:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.adPlacements ⁝ undefined] Trap installed  
watch:1590:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.playerAds ⁝ undefined] Trap installed  
watch:1845:5
uBO: [set-constant ⁝ ytInitialPlayerResponse.auxiliaryUi.messageRenderers.upsellDialogRenderer ⁝ undefined] Trap installed  
watch:2812:5
uBO: [prevent-addEventListener ⁝ visibilitychange ⁝ /bgmobile|\{\w\.\w+\(\)\}/] Prevented: visibilitychange
function(){Q.YP()}
document  
watch:2327:13
uBO: [set-constant ⁝ ytInitialPlayerResponse.adPlacements ⁝ undefined] Property read  
watch:1609:7
uBO: [set-constant ⁝ ytInitialPlayerResponse.adSlots ⁝ undefined] Property read  
watch:1354:7
uBO: [set-constant ⁝ ytInitialPlayerResponse.playerAds ⁝ undefined] Property read  
watch:1864:7
uBO: [set-constant ⁝ ytInitialPlayerResponse.adPlacements ⁝ undefined] Property read  
watch:1609:7
uBO: [set-constant ⁝ ytInitialPlayerResponse.adSlots ⁝ undefined] Property read  
watch:1354:7
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js:3761:18430
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js:3761:18601
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js:3761:30847
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js:3761:31454
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js:3761:36584
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js:3761:55817
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:3761:55817
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:3761:36584
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:3761:30847
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:3761:31454
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:1:110
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval:1:110
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval:1:133
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval:1:133
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:3761:18430
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval:3761:18601
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval:1:468
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval:1:112
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval:1:135
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval%20line%201%20%3E%20eval:1:112
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval%20line%201%20%3E%20eval:1:135
unreachable code after return statement[Learn More]  
xs8to3vzZpi6gzzvzo2XguTADAeDiHaiqh7PJq-BlzI.js%20line%202%20%3E%20eval%20line%203761%20%3E%20eval%20line%201%20%3E%20eval%20line%201%20%3E%20eval:1:468
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: Multiple CORS headers ‘Access-Control-Allow-Origin’ not allowed). 
(unknown)
uBO: [set-constant ⁝ ytInitialPlayerResponse.adPlacements ⁝ undefined] Property read  
watch:1609:7
uBO: [set-constant ⁝ ytInitialPlayerResponse.adSlots ⁝ undefined] Property read  
watch:1354:7
Example: https://m.youtube.com/watch?v=HYxgnrfpK5g

Steps to reproduce:

1. Start playing the video.
2. Switch tabs or open new tab.

What should happen: The video keeps playing.
What actually happens: The video pauses.

Any way to fix this? I've got YouTube Non-Stop installed, but it's apparently not working anymore.

User avatar
Night Wing
Knows the dark side
Knows the dark side
Posts: 5705
Joined: 2011-10-03, 10:19
Location: Piney Woods of Southeast Texas, USA

Re: YouTube: Video pauses when switching or opening tabs.

Post by Night Wing » 2025-11-29, 00:48

I clicked on the link you provided. Thanks for that. The video started playing and I then opened a new tab. The video kept playing without any interruptions or pauses. And this includes audio.

At the time of this posting I am using 64 bit linux Pale Moon (GTK2) 33.9.1 running in 64 bit MX Linux 25 (Infinity) Xfce with uBlock Origin 1.16.6.1 enabled for YouTube.
MX Linux 25 (Infinity) Xfce w/Pale Moon, Waterfox, Firefox
Linux Debian 13.3 (Trixie) Xfce w/Pale Moon, Waterfox, Firefox