From 666a06a4969e37f510dcaec06068a07168164a80 Mon Sep 17 00:00:00 2001 From: partisan Date: Sun, 19 Jan 2025 17:42:41 +0100 Subject: [PATCH] updated searchEngines so they work without policies (in release builds) --- .../search-engine-qgato.patch | 23 ------- pre-compile-patches/search-config-v2.patch | 67 +++++++++++++++++++ 2 files changed, 67 insertions(+), 23 deletions(-) create mode 100644 pre-compile-patches/search-config-v2.patch diff --git a/post-compile-patches/search-engine-qgato.patch b/post-compile-patches/search-engine-qgato.patch index 8e28281..a751635 100644 --- a/post-compile-patches/search-engine-qgato.patch +++ b/post-compile-patches/search-engine-qgato.patch @@ -37,29 +37,6 @@ o: /distribution/policies.json + "twitter@search.mozilla.org" + ] + }, -+ "SearchEngines": { -+ "PreventInstalls": false, -+ "Remove": [ -+ "Google", -+ "Bing", -+ "Amazon.com", -+ "DuckDuckGo", -+ "eBay", -+ "Twitter", -+ "wikipedia@search.mozilla.org" -+ ], -+ "Add": [ -+ { -+ "Name": "QGato", -+ "Description": "QGato Search Engine", -+ "Method": "GET", -+ "URLTemplate": "https://qgato.xyz/search?q={searchTerms}", -+ "SuggestURLTemplate": "https://qgato.xyz/suggestions?q={searchTerms}", -+ "IconURL": "https://qgato.xyz/static/images/icon.png" -+ } -+ ], -+ "Default": "QGato" -+ }, + "SupportMenu": { + "Title": "Spitfire Issue Tracker", + "URL": "https://weforge.xyz/Spitfire/Browser/issues" diff --git a/pre-compile-patches/search-config-v2.patch b/pre-compile-patches/search-config-v2.patch new file mode 100644 index 0000000..f7ce238 --- /dev/null +++ b/pre-compile-patches/search-config-v2.patch @@ -0,0 +1,67 @@ +o: services/settings/dumps/main/search-config-v2.json +t: new + ++{ ++ "data": [ ++ { ++ "globalDefault": "qgato", ++ "id": "default-engine-id", ++ "last_modified": 1737282456000, ++ "recordType": "defaultEngines", ++ "schema": 1702901837584, ++ "specificDefaults": [ ++ { ++ "default": "qgato", ++ "environment": { ++ "allRegionsAndLocales": true ++ } ++ } ++ ], ++ "engineOrders": ["qgato"] ++ }, ++ { ++ "base": { ++ "classification": "general", ++ "name": "QGato", ++ "urls": { ++ "search": { ++ "base": "https://qgato.xyz/search", ++ "searchTermParamName": "q" ++ }, ++ "suggestions": { ++ "base": "https://qgato.xyz/suggestions", ++ "searchTermParamName": "q" ++ } ++ }, ++ "icon": "https://qgato.xyz/static/images/icon.png" ++ }, ++ "id": "qgato-id", ++ "identifier": "qgato", ++ "last_modified": 1737282456000, ++ "recordType": "engine", ++ "schema": 1702901817337, ++ "variants": [ ++ { ++ "environment": { ++ "allRegionsAndLocales": true ++ } ++ } ++ ] ++ }, ++ { ++ "id": "engine-orders-id", ++ "last_modified": 1737282456000, ++ "orders": [ ++ { ++ "environment": { ++ "allRegionsAndLocales": true ++ }, ++ "order": ["qgato"] ++ } ++ ], ++ "recordType": "engineOrders", ++ "schema": 1707824831520 ++ } ++ ], ++ "timestamp": 1737282456000 ++} \ No newline at end of file