gnuzilla-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] re-enable add-ons search field


From: bill-auger
Subject: [PATCH] re-enable add-ons search field
Date: Fri, 20 Oct 2023 00:05:04 -0400

this patch completes the Mozarella integration


diff --git a/makeicecat b/makeicecat
index f18f131..baab929 100755
--- a/makeicecat
+++ b/makeicecat
@@ -743,6 +743,16 @@ s/OpenSource/Free Software/g;
 
     find . -depth | grep run-mozilla | rename_files -e s/mozilla/icecat/g
 
+    # Replace default placeholder text in add-ons search field
+    local addons_ftls=( $(ls l10n/*/toolkit/toolkit/about/aboutAddons.ftl) )
+    sed_script='s|\.placeholder = \(.*\)addons\.mozilla\.org|.placeholder = 
\1Mozarella|'
+    # NOTE: some languages have no translation for this widget (eg: 'af')
+    command sed "${sed_script}" -i ${addons_ftls[*]}
+    if ! grep -E '\.placeholder = .*Mozarella' ${addons_ftls[*]}; then
+        echo "No 'Mozarella' replacements made. \$addons_ftls patching needs 
re-working."
+        exit 1
+    fi
+
     # do not alter useragent/platform/oscpu/etc with fingerprinting 
countermeasure, it makes things worse
     sed '/if (aShouldResistFingerprinting/,/}/s/^/\/\//' -i 
./netwerk/protocol/http/nsHttpHandler.cpp
     sed '/If fingerprinting resistance is on/,/}/s/^/\/\//' -i 
./dom/base/Navigator.cpp
@@ -880,14 +890,6 @@ EOF
 
 configure_extensions()
 {
-    # Disable search field at extensions panel
-    #sed  '/header-search/d; /search.placeholder/d' -i 
toolkit/mozapps/extensions/content/extensions.xul
-    cat << EOF >> toolkit/mozapps/extensions/content/extensions.css
-#header-search {
-  display:none;
-}
-EOF
-
     # Add extensions to manifest
     local extension
     for extension in $(ls "${DATADIR}"/extensions/); do
-- 
2.42.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]