uncommitted firefox changes
This commit is contained in:
		
							parent
							
								
									546298220a
								
							
						
					
					
						commit
						aadfa8d7f5
					
				
					 5 changed files with 52 additions and 40 deletions
				
			
		| 
						 | 
					@ -120,31 +120,31 @@ in {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    package = pkgs.firefox-devedition.overrideAttrs (pkg: let
 | 
					    package = pkgs.firefox-devedition.overrideAttrs (pkg: let
 | 
				
			||||||
      entries = {
 | 
					      entries = {
 | 
				
			||||||
        im-firefox = {
 | 
					        firefox-im = {
 | 
				
			||||||
          name = "IMs (Firefox)";
 | 
					          name = "IMs (Firefox)";
 | 
				
			||||||
          profile = "im";
 | 
					          profile = "im";
 | 
				
			||||||
          nomime = true;
 | 
					          nomime = true;
 | 
				
			||||||
          noremote = true;
 | 
					          noremote = true;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        trusted = {
 | 
					        firefox-trusted = {
 | 
				
			||||||
          name = "Trusted Firefox";
 | 
					          name = "Trusted Firefox";
 | 
				
			||||||
          profile = "trusted";
 | 
					          profile = "trusted";
 | 
				
			||||||
          nomime = true;
 | 
					          nomime = true;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        work = {
 | 
					        firefox-work = {
 | 
				
			||||||
          name = "Work Firefox";
 | 
					          name = "Work Firefox";
 | 
				
			||||||
          profile = "work";
 | 
					          profile = "work";
 | 
				
			||||||
          nomime = true;
 | 
					          nomime = true;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        general = {
 | 
					        firefox-general = {
 | 
				
			||||||
          name = "Firefox";
 | 
					          name = "Firefox";
 | 
				
			||||||
          profile = "general";
 | 
					          profile = "general";
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        schizo = {
 | 
					        firefox-schizo = {
 | 
				
			||||||
          name = "Schizo Firefox";
 | 
					          name = "Schizo Firefox";
 | 
				
			||||||
          profile = "schizo";
 | 
					          profile = "schizo";
 | 
				
			||||||
          nomime = true;
 | 
					          nomime = true;
 | 
				
			||||||
| 
						 | 
					@ -168,6 +168,17 @@ in {
 | 
				
			||||||
      buildCommand = ''
 | 
					      buildCommand = ''
 | 
				
			||||||
        ${pkg.buildCommand}
 | 
					        ${pkg.buildCommand}
 | 
				
			||||||
        rm $out/share/applications/*
 | 
					        rm $out/share/applications/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        cat <<EOF > $out/share/applications/firefox.desktop
 | 
				
			||||||
 | 
					        [Desktop Entry]
 | 
				
			||||||
 | 
					        Version=1.4
 | 
				
			||||||
 | 
					        Type=Application
 | 
				
			||||||
 | 
					        Name=Firefox
 | 
				
			||||||
 | 
					        Icon=firefox-devedition
 | 
				
			||||||
 | 
					        NoDisplay=true
 | 
				
			||||||
 | 
					        EOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      '' + lib.strings.concatMapStrings (item: "\ncp ${item}/share/applications/* $out/share/applications") items;
 | 
					      '' + lib.strings.concatMapStrings (item: "\ncp ${item}/share/applications/* $out/share/applications") items;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -176,8 +187,10 @@ in {
 | 
				
			||||||
        inherit id settings name extensions;
 | 
					        inherit id settings name extensions;
 | 
				
			||||||
        path = name;
 | 
					        path = name;
 | 
				
			||||||
        userChrome = ''
 | 
					        userChrome = ''
 | 
				
			||||||
 | 
					          ${builtins.readFile ./hide_drm_nagbar_chrome.css}
 | 
				
			||||||
          ${builtins.readFile ./sideberry_chrome.css}
 | 
					          ${builtins.readFile ./sideberry_chrome.css}
 | 
				
			||||||
          ${builtins.readFile ./sideberry_hide_ext_button.css}
 | 
					          ${builtins.readFile ./sideberry_hide_ext_button.css}
 | 
				
			||||||
 | 
					          ${builtins.readFile ./hide_content_borders.css}
 | 
				
			||||||
        '';
 | 
					        '';
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    in {
 | 
					    in {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										7
									
								
								modules/user/modules/firefox/hide_content_borders.css
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								modules/user/modules/firefox/hide_content_borders.css
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					#sidebar {
 | 
				
			||||||
 | 
						border-inline: none !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#navigator-toolbox {
 | 
				
			||||||
 | 
						border-bottom: none !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										3
									
								
								modules/user/modules/firefox/hide_drm_nagbar_chrome.css
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								modules/user/modules/firefox/hide_drm_nagbar_chrome.css
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					notification[value="drmContentDisabled"] {
 | 
				
			||||||
 | 
						display: none !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -51,7 +51,6 @@ rec {
 | 
				
			||||||
        "signon.rememberSignons" = false;
 | 
					        "signon.rememberSignons" = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # UNTESTED
 | 
					 | 
				
			||||||
      disable-cross-origin-auth-dialogs = {
 | 
					      disable-cross-origin-auth-dialogs = {
 | 
				
			||||||
        "network.auth.subresource-http-auth-allow" = 1;
 | 
					        "network.auth.subresource-http-auth-allow" = 1;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
| 
						 | 
					@ -96,20 +95,6 @@ rec {
 | 
				
			||||||
        "browser.xul.error_pages.expert_bad_cert" = true;
 | 
					        "browser.xul.error_pages.expert_bad_cert" = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      cross-origin = {
 | 
					 | 
				
			||||||
        trimming = {
 | 
					 | 
				
			||||||
          "network.http.referer.XOriginTrimmingPolicy" = 2;
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        same-host = {
 | 
					 | 
				
			||||||
          "network.http.referer.XOriginPolicy" = 2;
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        same-domain = {
 | 
					 | 
				
			||||||
          "network.http.referer.XOriginPolicy" = 1;
 | 
					 | 
				
			||||||
        };
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      # No real reason to ever have this enabled
 | 
					      # No real reason to ever have this enabled
 | 
				
			||||||
      disable-uitour = {
 | 
					      disable-uitour = {
 | 
				
			||||||
        "browser.uitour.enabled" = false;
 | 
					        "browser.uitour.enabled" = false;
 | 
				
			||||||
| 
						 | 
					@ -167,11 +152,15 @@ rec {
 | 
				
			||||||
        # "privacy.antitracking.enableWebcompat" = false;
 | 
					        # "privacy.antitracking.enableWebcompat" = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # UNTESTED
 | 
					 | 
				
			||||||
      partition-serviceworkers = {
 | 
					      partition-serviceworkers = {
 | 
				
			||||||
        "privacy.partition.serviceWorkers" = true;
 | 
					        "privacy.partition.serviceWorkers" = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      partition-storage = {
 | 
				
			||||||
 | 
					        "privacy.partition.always_partition_third_party_non_cookie_storage" = true;
 | 
				
			||||||
 | 
					        "privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage" = true;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      disable-system-ui = {
 | 
					      disable-system-ui = {
 | 
				
			||||||
        "browser.display.use_system_colors" = false;
 | 
					        "browser.display.use_system_colors" = false;
 | 
				
			||||||
        "widget.non-native-theme.enabled" = true;
 | 
					        "widget.non-native-theme.enabled" = true;
 | 
				
			||||||
| 
						 | 
					@ -196,9 +185,13 @@ rec {
 | 
				
			||||||
        "security.tls.version.enable-deprecated" = false;
 | 
					        "security.tls.version.enable-deprecated" = false;
 | 
				
			||||||
        "extensions.webcompat-reporter.enabled" = false;
 | 
					        "extensions.webcompat-reporter.enabled" = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      disable-js-jit = {
 | 
					      disable-js-jit = {
 | 
				
			||||||
        "javascript.options.baselinejit" = false;
 | 
					        "javascript.options.baselinejit" = false;
 | 
				
			||||||
        "javascript.options.ion" = false;
 | 
					        "javascript.options.ion" = false;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      disable-wasm = {
 | 
				
			||||||
        "javascript.options.wasm" = false;
 | 
					        "javascript.options.wasm" = false;
 | 
				
			||||||
        "javascript.options.asmjs" = false;
 | 
					        "javascript.options.asmjs" = false;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
| 
						 | 
					@ -388,10 +381,14 @@ rec {
 | 
				
			||||||
        "privacy.resistFingerprinting.letterboxing" = true;
 | 
					        "privacy.resistFingerprinting.letterboxing" = true;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # Can break login pages
 | 
					 | 
				
			||||||
      # Correction: Breaks a lot of shit. A LOT of shit.
 | 
					 | 
				
			||||||
      disable-referrer-headers = {
 | 
					      disable-referrer-headers = {
 | 
				
			||||||
        "network.http.sendRefererHeader" = 0;
 | 
					        "network.http.sendRefererHeader" = 1; # send when clicking links but not bg loads
 | 
				
			||||||
 | 
					        "network.http.referrer.XOriginTrimmingPolicy" = 1; # remove query string but send
 | 
				
			||||||
 | 
					        "network.http.referrer.XOriginPolicy" = 1; # base domains must match
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      disable-referrer-strict = {
 | 
				
			||||||
 | 
					        "network.http.sendRefererHeader" = 0; # never send
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -520,7 +517,6 @@ rec {
 | 
				
			||||||
    // misc.disable-autoplay
 | 
					    // misc.disable-autoplay
 | 
				
			||||||
    // misc.disable-window-manipulation
 | 
					    // misc.disable-window-manipulation
 | 
				
			||||||
    // misc.limited-popups
 | 
					    // misc.limited-popups
 | 
				
			||||||
    // privacy.disable-accessability
 | 
					 | 
				
			||||||
    // privacy.disable-beacon
 | 
					    // privacy.disable-beacon
 | 
				
			||||||
    // security.disable-uitour
 | 
					    // security.disable-uitour
 | 
				
			||||||
    // security.disable-middlemouse-paste
 | 
					    // security.disable-middlemouse-paste
 | 
				
			||||||
| 
						 | 
					@ -555,6 +551,7 @@ rec {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    minor-2 = {}
 | 
					    minor-2 = {}
 | 
				
			||||||
    // security.disable-webgl
 | 
					    // security.disable-webgl
 | 
				
			||||||
 | 
					    // privacy.ephemeral-cookies
 | 
				
			||||||
    // privacy.sanitize-on-shutdown
 | 
					    // privacy.sanitize-on-shutdown
 | 
				
			||||||
    // security.disable-sessionrestore
 | 
					    // security.disable-sessionrestore
 | 
				
			||||||
    ;
 | 
					    ;
 | 
				
			||||||
| 
						 | 
					@ -562,12 +559,12 @@ rec {
 | 
				
			||||||
    annoying = {}
 | 
					    annoying = {}
 | 
				
			||||||
    // privacy.resist-fingerprinting
 | 
					    // privacy.resist-fingerprinting
 | 
				
			||||||
    // security.disable-js-jit
 | 
					    // security.disable-js-jit
 | 
				
			||||||
 | 
					    // security.disable-wasm
 | 
				
			||||||
    // privacy.webrtc.hide-ip-trusted
 | 
					    // privacy.webrtc.hide-ip-trusted
 | 
				
			||||||
    // privacy.ephemeral-cookies
 | 
					    // privacy.ephemeral-cookies
 | 
				
			||||||
    // privacy.webrtc.disable
 | 
					    // privacy.webrtc.disable
 | 
				
			||||||
    // security.cross-origin.trimming
 | 
					    // privacy.disable-referrer-strict
 | 
				
			||||||
    // security.cross-origin.same-host
 | 
					    // privacy.disable-accessability
 | 
				
			||||||
    // privacy.disable-referrer-headers
 | 
					 | 
				
			||||||
    ;
 | 
					    ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    trusted = {}
 | 
					    trusted = {}
 | 
				
			||||||
| 
						 | 
					@ -579,7 +576,6 @@ rec {
 | 
				
			||||||
    // modules.base
 | 
					    // modules.base
 | 
				
			||||||
    // modules.minor-1
 | 
					    // modules.minor-1
 | 
				
			||||||
    // modules.minor-2
 | 
					    // modules.minor-2
 | 
				
			||||||
    // privacy.ephemeral-cookies
 | 
					 | 
				
			||||||
    // privacy.disable-referrer-headers
 | 
					    // privacy.disable-referrer-headers
 | 
				
			||||||
    // privacy.webrtc.disable
 | 
					    // privacy.webrtc.disable
 | 
				
			||||||
    ;
 | 
					    ;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,16 +3,10 @@
 | 
				
			||||||
  visibility: collapse;
 | 
					  visibility: collapse;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#main-window[titlepreface*=""] .titlebar-button {
 | 
					#main-window[titlepreface*=""] #TabsToolbar {
 | 
				
			||||||
  height: 40px;
 | 
						display: none;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#main-window[titlepreface*=""] #nav-bar {
 | 
					 | 
				
			||||||
  margin-top: -40px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
#main-window[titlepreface*=""][tabsintitlebar="true"] #nav-bar {
 | 
					 | 
				
			||||||
  margin-right: 137px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
#main-window[titlepreface*=""] #titlebar-spacer {
 | 
					#main-window[titlepreface*=""] #titlebar-spacer {
 | 
				
			||||||
  background-color: var(--chrome-secondary-background-color);
 | 
					  background-color: var(--chrome-secondary-background-color);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -43,8 +37,7 @@ See the above repository for updates as well as full license text. */
 | 
				
			||||||
  min-width: var(--uc-sidebar-width) !important;
 | 
					  min-width: var(--uc-sidebar-width) !important;
 | 
				
			||||||
  width: var(--uc-sidebar-width) !important;
 | 
					  width: var(--uc-sidebar-width) !important;
 | 
				
			||||||
  max-width: var(--uc-sidebar-width) !important;
 | 
					  max-width: var(--uc-sidebar-width) !important;
 | 
				
			||||||
  z-index:1;
 | 
					  z-index: 10000;
 | 
				
			||||||
  margin-top: -1px;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#sidebar-box[positionend] {
 | 
					#sidebar-box[positionend] {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue