diff --git a/pre-compile-patches/homepage.patch b/pre-compile-patches/homepage.patch index 9e95191..f5f2940 100644 --- a/pre-compile-patches/homepage.patch +++ b/pre-compile-patches/homepage.patch @@ -2,6 +2,5 @@ t: pref i: /browser/app/profile/firefox.js o: /browser/app/profile/firefox.js --pref("browser.startup.homepage", "about:home"); +pref("browser.startup.homepage", "https://qgato.xyz"); +pref("browser.search.defaultenginename", "QGato"); diff --git a/pref.go b/pref.go index cb1ccd0..a9f5aaf 100644 --- a/pref.go +++ b/pref.go @@ -33,7 +33,7 @@ func applyPrefModifications(targetFilePath string, modifications []string) error end := strings.LastIndex(mod, ")") if start > 0 && end > start { key := strings.TrimSpace(mod[start+1 : end]) // Extract the preference key - modMap[key] = mod // Full modification line + modMap[key] = strings.TrimPrefix(mod, "+") // Full modification line } } }