mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	targetBlankNoOpener -> don't touch
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6077d09b9f
						
					
				
				
					commit
					9f43d48a32
				
			
							
								
								
									
										10
									
								
								user.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								user.js
									
									
									
									
									
								
							@@ -728,14 +728,11 @@ user_pref("dom.disable_window_move_resize", true);
 | 
				
			|||||||
user_pref("dom.disable_open_during_load", true);
 | 
					user_pref("dom.disable_open_during_load", true);
 | 
				
			||||||
/* 2404: limit events that can cause a popup [SETUP-WEB] ***/
 | 
					/* 2404: limit events that can cause a popup [SETUP-WEB] ***/
 | 
				
			||||||
user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
 | 
					user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
 | 
				
			||||||
/* 2405: enable (limited but sufficient) window.opener protection [FF65+]
 | 
					/* 2405: disable website access to clipboard events/content
 | 
				
			||||||
 * Makes rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set ***/
 | 
					 | 
				
			||||||
user_pref("dom.targetBlankNoOpener.enabled", true); // [DEFAULT: true FF79+]
 | 
					 | 
				
			||||||
/* 2406: disable website access to clipboard events/content
 | 
					 | 
				
			||||||
 * Requires user interaction. Applies to onCut/onCopy/onPaste events
 | 
					 * Requires user interaction. Applies to onCut/onCopy/onPaste events
 | 
				
			||||||
 * [SETUP-HARDEN] Will break some sites' functionality e.g. Outlook, Twitter, Facebook, Wordpress ***/
 | 
					 * [SETUP-HARDEN] Will break some sites' functionality e.g. Outlook, Twitter, Facebook, Wordpress ***/
 | 
				
			||||||
   // user_pref("dom.event.clipboardevents.enabled", false);
 | 
					   // user_pref("dom.event.clipboardevents.enabled", false);
 | 
				
			||||||
/* 2407: disable clipboard commands (cut/copy) from "non-privileged" content [FF41+]
 | 
					/* 2406: disable clipboard commands (cut/copy) from "non-privileged" content [FF41+]
 | 
				
			||||||
 * this disables document.execCommand("cut"/"copy") to protect your clipboard
 | 
					 * this disables document.execCommand("cut"/"copy") to protect your clipboard
 | 
				
			||||||
 * [1] https://bugzilla.mozilla.org/1170911 ***/
 | 
					 * [1] https://bugzilla.mozilla.org/1170911 ***/
 | 
				
			||||||
user_pref("dom.allow_cut_copy", false);
 | 
					user_pref("dom.allow_cut_copy", false);
 | 
				
			||||||
@@ -1245,6 +1242,9 @@ user_pref("security.mixed_content.block_active_content", true); // [DEFAULT: tru
 | 
				
			|||||||
 * string is restored if the tab reverts back to the original page. This change prevents some cross-site attacks
 | 
					 * string is restored if the tab reverts back to the original page. This change prevents some cross-site attacks
 | 
				
			||||||
 * [TEST] https://arkenfox.github.io/TZP/tests/windownamea.html ***/
 | 
					 * [TEST] https://arkenfox.github.io/TZP/tests/windownamea.html ***/
 | 
				
			||||||
user_pref("privacy.window.name.update.enabled", true); // [DEFAULT: true FF86+]
 | 
					user_pref("privacy.window.name.update.enabled", true); // [DEFAULT: true FF86+]
 | 
				
			||||||
 | 
					/* 6007: enforce window.opener protection [FF65+]
 | 
				
			||||||
 | 
					 * Makes rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set ***/
 | 
				
			||||||
 | 
					user_pref("dom.targetBlankNoOpener.enabled", true); // [DEFAULT: true FF79+]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*** [SECTION 7000]: DON'T BOTHER ***/
 | 
					/*** [SECTION 7000]: DON'T BOTHER ***/
 | 
				
			||||||
user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies!");
 | 
					user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies!");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user