mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	2032: fix description
from earthlng > it blocks **all media** autoplay "until in foreground", not just audio. > Source: https://dxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/browser-custom-element.js#1141
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							8d1c95c650
						
					
				
				
					commit
					0691b8babe
				
			
							
								
								
									
										2
									
								
								user.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								user.js
									
									
									
									
									
								
							@@ -938,7 +938,7 @@ user_pref("media.getusermedia.audiocapture.enabled", false);
 | 
			
		||||
   // user_pref("media.autoplay.default", 5); // [DEFAULT: 1 in FF67+]
 | 
			
		||||
/* 2031: disable autoplay of HTML5 media if you interacted with the site [FF66+] ***/
 | 
			
		||||
user_pref("media.autoplay.enabled.user-gestures-needed", false);
 | 
			
		||||
/* 2032: disable audio autoplay in non-active tabs [FF51+]
 | 
			
		||||
/* 2032: disable autoplay of HTML5 media in non-active tabs [FF51+]
 | 
			
		||||
 * [1] https://www.ghacks.net/2016/11/14/firefox-51-blocks-automatic-audio-playback-in-non-active-tabs/ ***/
 | 
			
		||||
user_pref("media.block-autoplay-until-in-foreground", true); // [DEFAULT: true]
 | 
			
		||||
/* 2033: disable autoplay for muted videos [FF63+] ***/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user