From 68db2496be930fdd03c48bf6f6d5cbdca305faae Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Sun, 26 Jul 2026 17:57:02 -0400 Subject: [PATCH 01/24] Update and rename trivalent-faq-page.patch to trivalent-faq-page.patch --- .../trivalent-faq-page.patch | 29 ------------------- 1 file changed, 29 deletions(-) rename patches/trivalent/{branding => ugc}/trivalent-faq-page.patch (89%) diff --git a/patches/trivalent/branding/trivalent-faq-page.patch b/patches/trivalent/ugc/trivalent-faq-page.patch similarity index 89% rename from patches/trivalent/branding/trivalent-faq-page.patch rename to patches/trivalent/ugc/trivalent-faq-page.patch index dac348f6..d324cad7 100644 --- a/patches/trivalent/branding/trivalent-faq-page.patch +++ b/patches/trivalent/ugc/trivalent-faq-page.patch @@ -1,32 +1,3 @@ -Copyright (c) 2015-2025, The ungoogled-chromium Authors -Copyright (c) 2026, The Trivalent Authors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---- diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc index d347c428ac..29faea895d 100644 --- a/chrome/browser/chrome_browser_main.cc From 0d17dbccbf5f583095bbd0e6b45abadef97abe7d Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Sun, 26 Jul 2026 17:57:24 -0400 Subject: [PATCH 02/24] Create LICENSE --- patches/trivalent/ugc/LICENSE | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 patches/trivalent/ugc/LICENSE diff --git a/patches/trivalent/ugc/LICENSE b/patches/trivalent/ugc/LICENSE new file mode 100644 index 00000000..1dce4cc2 --- /dev/null +++ b/patches/trivalent/ugc/LICENSE @@ -0,0 +1,28 @@ +Copyright (c) 2015-2025, The ungoogled-chromium Authors +Copyright (c) 2026, The Trivalent Authors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. From 09b2233ad6a4af164910a868b0a7d49203214abb Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Sun, 26 Jul 2026 18:07:10 -0400 Subject: [PATCH 03/24] Create README.md --- patches/trivalent/ugc/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 patches/trivalent/ugc/README.md diff --git a/patches/trivalent/ugc/README.md b/patches/trivalent/ugc/README.md new file mode 100644 index 00000000..1085fc3d --- /dev/null +++ b/patches/trivalent/ugc/README.md @@ -0,0 +1,3 @@ +# Ungoogled Chromium Patches + +These are just some usability and UI patches from UGC. No central functionality from UGC is used. From 66b4c2a3b49bf85cfa5a95e41a4c5e5064c98ca8 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Sun, 26 Jul 2026 18:07:46 -0400 Subject: [PATCH 04/24] Create add-flag-to-scroll-tabs.patch --- .../ugc/add-flag-to-scroll-tabs.patch | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 patches/trivalent/ugc/add-flag-to-scroll-tabs.patch diff --git a/patches/trivalent/ugc/add-flag-to-scroll-tabs.patch b/patches/trivalent/ugc/add-flag-to-scroll-tabs.patch new file mode 100644 index 00000000..70dabb20 --- /dev/null +++ b/patches/trivalent/ugc/add-flag-to-scroll-tabs.patch @@ -0,0 +1,60 @@ +--- a/chrome/browser/ui/views/frame/browser_root_view.cc ++++ b/chrome/browser/ui/views/frame/browser_root_view.cc +@@ -12,6 +12,7 @@ + #include + + #include "base/check_op.h" ++#include "base/command_line.h" + #include "base/containers/adapters.h" + #include "base/feature_list.h" + #include "base/functional/bind.h" +@@ -177,6 +178,18 @@ DragOperation GetDropEffect(const ui::Dr + return DragOperation::kMove; + } + ++bool ShouldScrollChangesTab() { ++ const std::string flag_value = ++ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("scroll-tabs"); ++ ++ if (flag_value == "always") ++ return true; ++ else if (flag_value == "never") ++ return false; ++ ++ return browser_defaults::kScrollEventChangesTab; ++} ++ + } // namespace + + BrowserRootView::DropInfo::DropInfo() = default; +@@ -189,7 +202,9 @@ BrowserRootView::DropInfo::~DropInfo() { + + BrowserRootView::BrowserRootView(BrowserView* browser_view, + views::Widget* widget) +- : views::internal::RootView(widget), browser_view_(browser_view) {} ++ : views::internal::RootView(widget), browser_view_(browser_view) { ++ scroll_event_changes_tab_ = ShouldScrollChangesTab(); ++} + + BrowserRootView::~BrowserRootView() { + // It's possible to destroy the browser while a drop is active. In this case, +@@ -331,7 +346,7 @@ bool BrowserRootView::OnMouseWheel(const + + // Scroll-event-changes-tab is incompatible with vertical tabstrip, so + // disable it if the latter feature is enabled. +- if (browser_defaults::kScrollEventChangesTab && ++ if (scroll_event_changes_tab_ && + !browser_view_->ShouldDrawVerticalTabStrip()) { + // Switch to the left/right tab if the wheel-scroll happens over the + // tabstrip, or the empty space beside the tabstrip. +--- a/chrome/browser/ui/views/frame/browser_root_view.h ++++ b/chrome/browser/ui/views/frame/browser_root_view.h +@@ -158,6 +158,8 @@ class BrowserRootView : public views::in + int scroll_remainder_x_ = 0; + int scroll_remainder_y_ = 0; + ++ bool scroll_event_changes_tab_ = false; ++ + std::unique_ptr drop_info_; + + base::OnceClosure on_filtering_complete_closure_; From 65788f256f29e5a04bc3c904e92c9153424b179f Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Sun, 26 Jul 2026 18:09:37 -0400 Subject: [PATCH 05/24] Create add-flag-for-omnibox-autocomplete-filtering.patch --- ...g-for-omnibox-autocomplete-filtering.patch | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch new file mode 100644 index 00000000..7617ef6b --- /dev/null +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -0,0 +1,77 @@ +--- a/components/omnibox/browser/autocomplete_controller.cc ++++ b/components/omnibox/browser/autocomplete_controller.cc +@@ -22,6 +22,7 @@ + #include + + #include "base/check_op.h" ++#include "base/command_line.h" + #include "base/feature_list.h" + #include "base/format_macros.h" + #include "base/functional/bind.h" +@@ -548,6 +549,15 @@ AutocompleteController::AutocompleteCont + metrics::OmniboxEventProto::UNKNOWN_POSITION), + config_(config) { + config_.provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes(); ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) { ++ const std::string flag_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("omnibox-autocomplete-filtering"); ++ config_.provider_types &= AutocompleteProvider::TYPE_KEYWORD | AutocompleteProvider::TYPE_SEARCH | ++ AutocompleteProvider::TYPE_HISTORY_URL | AutocompleteProvider::TYPE_BOOKMARK | AutocompleteProvider::TYPE_BUILTIN; ++ if (!flag_value.contains("bookmarks")) ++ config_.provider_types &= ~AutocompleteProvider::TYPE_BOOKMARK; ++ if (!flag_value.contains("chrome")) ++ config_.provider_types &= ~AutocompleteProvider::TYPE_BUILTIN; ++ } + + // Providers run in the order they're added. Async providers should run first + // so their async requests can be kicked off before waiting a few milliseconds +--- a/components/omnibox/browser/history_url_provider.cc ++++ b/components/omnibox/browser/history_url_provider.cc +@@ -487,6 +487,9 @@ void HistoryURLProvider::Start(const Aut + if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY) + matches_.push_back(what_you_typed_match); + ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) ++ return; ++ + // We'll need the history service to run both passes, so try to obtain it. + history::HistoryService* const history_service = + client()->GetHistoryService(); +--- a/components/omnibox/browser/search_provider.cc ++++ b/components/omnibox/browser/search_provider.cc +@@ -15,6 +15,7 @@ + #include + + #include "base/base64.h" ++#include "base/command_line.h" + #include "base/feature_list.h" + #include "base/functional/bind.h" + #include "base/functional/callback.h" +@@ -682,6 +683,9 @@ void SearchProvider::Run(bool query_is_p + } + + void SearchProvider::DoHistoryQuery(bool minimal_changes) { ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) ++ return; ++ + // The history query results are synchronous, so if minimal_changes is true, + // we still have the last results and don't need to do anything. + if (minimal_changes) +--- a/components/url_formatter/url_fixer.cc ++++ b/components/url_formatter/url_fixer.cc +@@ -10,6 +10,7 @@ + #include + + #include "base/check_op.h" ++#include "base/command_line.h" + #include "base/compiler_specific.h" + #include "base/files/file_path.h" + #include "base/files/file_util.h" +@@ -639,6 +640,8 @@ GURL FixupURLInternal(const std::string& + desired_tld, &url); + } + if (chrome_url && !parts.host.is_valid()) { ++ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering") || ++ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("omnibox-autocomplete-filtering").contains("chrome")) + url.append(kChromeUIDefaultHost); + } + FixupPort(trimmed, parts.port, &url); From 29c5a1bfbff78f95da405c01e226d7ffd7d7d1a5 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 14:42:29 -0400 Subject: [PATCH 06/24] Create disable-mei-preload.patch --- .../trivalent/ugc/disable-mei-preload.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 patches/trivalent/ugc/disable-mei-preload.patch diff --git a/patches/trivalent/ugc/disable-mei-preload.patch b/patches/trivalent/ugc/disable-mei-preload.patch new file mode 100644 index 00000000..ae638b90 --- /dev/null +++ b/patches/trivalent/ugc/disable-mei-preload.patch @@ -0,0 +1,35 @@ +# Disables use of a binary for preloading the Media Engagement index +# Said binary is: chrome/browser/resources/media/mei_preload/preloaded_data.pb +# According to media/base/media_switches (for PreloadMediaEngagementData), it +# "enables a list of origins to be considered as having a high MEI until there +# is enough local data to determine the user's preferred behavior." This feature +# does not seem to outweigh the benefit of removing the binary, thus this patch. + +--- a/chrome/BUILD.gn ++++ b/chrome/BUILD.gn +@@ -368,7 +368,6 @@ if (!is_android && !is_mac) { + } + + data_deps += [ +- "//chrome/browser/resources/media/mei_preload:component", + "//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component", + "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component", + "//third_party/widevine/cdm", +@@ -1207,7 +1206,6 @@ if (is_win) { + ":optimization_guide_library", + ":swiftshader_binaries", + ":widevine_cdm_library", +- "//chrome/browser/resources/media/mei_preload:component_bundle", + "//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component_bundle", + "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component_bundle", + ] +--- a/chrome/browser/resources/BUILD.gn ++++ b/chrome/browser/resources/BUILD.gn +@@ -127,7 +127,6 @@ group("resources") { + if (is_mac) { + public_deps += [ + "unexportable_keys_internals:resources", +- "//chrome/browser/resources/media/mei_preload:component", + "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component", + ] + } From 967dcc6e07a85b2378f8180291e04fa152fa69e7 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:00:32 -0400 Subject: [PATCH 07/24] Update README.md --- patches/trivalent/ugc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/trivalent/ugc/README.md b/patches/trivalent/ugc/README.md index 1085fc3d..b827b440 100644 --- a/patches/trivalent/ugc/README.md +++ b/patches/trivalent/ugc/README.md @@ -1,3 +1,3 @@ # Ungoogled Chromium Patches -These are just some usability and UI patches from UGC. No central functionality from UGC is used. +These are just some usability and UI patches from Ungoogled Chromium (UGC). No central functionality from UGC is used. From 024df46e9d75996cef0d68d894ce54f6537532cc Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:08:58 -0400 Subject: [PATCH 08/24] Update expose-flags.patch --- patches/trivalent/expose-flags.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/trivalent/expose-flags.patch b/patches/trivalent/expose-flags.patch index c52f7169..640ffe7d 100644 --- a/patches/trivalent/expose-flags.patch +++ b/patches/trivalent/expose-flags.patch @@ -14,7 +14,7 @@ diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc index bdfa3ed504..9478ea82bc 100644 --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -4824,6 +4824,74 @@ const FeatureEntry::FeatureVariation kSigninPromoOnAvatarPillVariation[] = { +@@ -4824,6 +4824,78 @@ const FeatureEntry::FeatureVariation kSigninPromoOnAvatarPillVariation[] = { // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -28,6 +28,10 @@ index bdfa3ed504..9478ea82bc 100644 + "by default. This feature is provided by Trivalent.", + kOsLinux, + FEATURE_VALUE_TYPE(views::features::kMiddleClickCopyPaste)}, ++ {"enable-tab-scroll", "Enable Tab Scrolling", ++ "Enables tab scrolling on horizonal tabs. This flag is provided by " ++ "Trivalent via Ungoogled Chromium.", kOsLinux, ++ SINGLE_VALUE_TYPE("scroll-tabs")}, + {"show-punycode-domains", "Show punycode for IDN domains", + "Shows punycode for IDN domains to mitigate IDN homograph attacks. " + "Disabled by default. This feature is provided by Trivalent.", From 1bd25a3faf4219a207ded8a60abb048f70eb40a2 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:09:28 -0400 Subject: [PATCH 09/24] Update README.md --- patches/trivalent/ugc/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/trivalent/ugc/README.md b/patches/trivalent/ugc/README.md index b827b440..13c942d3 100644 --- a/patches/trivalent/ugc/README.md +++ b/patches/trivalent/ugc/README.md @@ -1,3 +1,5 @@ # Ungoogled Chromium Patches These are just some usability and UI patches from Ungoogled Chromium (UGC). No central functionality from UGC is used. + +https://github.com/ungoogled-software/ungoogled-chromium/tree/master/patches From de75a4ac86e08b907aa2993011c77668ca712d2a Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:24:43 -0400 Subject: [PATCH 10/24] Update expose-flags.patch --- patches/trivalent/expose-flags.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/trivalent/expose-flags.patch b/patches/trivalent/expose-flags.patch index 640ffe7d..f5c3ea68 100644 --- a/patches/trivalent/expose-flags.patch +++ b/patches/trivalent/expose-flags.patch @@ -14,7 +14,7 @@ diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc index bdfa3ed504..9478ea82bc 100644 --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -4824,6 +4824,78 @@ const FeatureEntry::FeatureVariation kSigninPromoOnAvatarPillVariation[] = { +@@ -4824,6 +4824,82 @@ const FeatureEntry::FeatureVariation kSigninPromoOnAvatarPillVariation[] = { // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -32,6 +32,10 @@ index bdfa3ed504..9478ea82bc 100644 + "Enables tab scrolling on horizonal tabs. This flag is provided by " + "Trivalent via Ungoogled Chromium.", kOsLinux, + SINGLE_VALUE_TYPE("scroll-tabs")}, ++ {"scope-omnibox-autocomplete", "Scope Omnibox Autocomplete", ++ "Limit the scope of results that omnibox autocomplete can show. This " ++ "flag is provided by Trivalent via Ungoogled Chromium.", kOsAll, ++ MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)}, + {"show-punycode-domains", "Show punycode for IDN domains", + "Shows punycode for IDN domains to mitigate IDN homograph attacks. " + "Disabled by default. This feature is provided by Trivalent.", From a09658a2e7836daf88501fd5459ec5498f8f82d1 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:37:48 -0400 Subject: [PATCH 11/24] Update expose-flags.patch --- patches/trivalent/expose-flags.patch | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/patches/trivalent/expose-flags.patch b/patches/trivalent/expose-flags.patch index f5c3ea68..6500a18f 100644 --- a/patches/trivalent/expose-flags.patch +++ b/patches/trivalent/expose-flags.patch @@ -11,10 +11,26 @@ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, e See the License for the specific language governing permissions and limitations under the License. --- diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc -index bdfa3ed504..9478ea82bc 100644 +index f477aa7fa2..d85a5f350f 100644 --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -4824,6 +4824,82 @@ const FeatureEntry::FeatureVariation kSigninPromoOnAvatarPillVariation[] = { +@@ -500,6 +500,15 @@ const FeatureEntry::Choice kEnableBenchmarkingChoices[] = { + variations::switches::kEnableFieldTrialTestingConfig}, + }; + ++const char kOmniboxAutocompleteFiltering[] = "omnibox-autocomplete-filtering"; ++ ++const FeatureEntry::Choice kOmniboxAutocompleteFilteringChoices[] = { ++ {flags_ui::kGenericExperimentChoiceDefault, "", ""}, ++ {"Search Only", kOmniboxAutocompleteFiltering, "search"}, ++ {"Search and Bookmarks", kOmniboxAutocompleteFiltering, "search-bookmarks"}, ++ {"Search and Chrome Pages", kOmniboxAutocompleteFiltering, "search-chrome"}, ++ {"Search, Bookmarks, and Chrome Pages", kOmniboxAutocompleteFiltering, "search-bookmarks-chrome"}}; ++ + #if !BUILDFLAG(IS_ANDROID) + const FeatureEntry::Choice kIwaKeyDistributionComponentExpCohortChoices[] = { + {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, +@@ -4726,6 +4735,82 @@ const FeatureEntry::FeatureVariation kToolbarGlowUpVariations[] = { // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -35,7 +51,7 @@ index bdfa3ed504..9478ea82bc 100644 + {"scope-omnibox-autocomplete", "Scope Omnibox Autocomplete", + "Limit the scope of results that omnibox autocomplete can show. This " + "flag is provided by Trivalent via Ungoogled Chromium.", kOsAll, -+ MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)}, ++ MULTI_VALUE_TYPE(kOmniboxAutocompleteFilteringChoices)}, + {"show-punycode-domains", "Show punycode for IDN domains", + "Shows punycode for IDN domains to mitigate IDN homograph attacks. " + "Disabled by default. This feature is provided by Trivalent.", From a503d4ce63a0358965af0420c29cdbca921dfe5c Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:00:12 -0400 Subject: [PATCH 12/24] Update expose-flags.patch --- patches/trivalent/expose-flags.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/patches/trivalent/expose-flags.patch b/patches/trivalent/expose-flags.patch index 6500a18f..40035cb5 100644 --- a/patches/trivalent/expose-flags.patch +++ b/patches/trivalent/expose-flags.patch @@ -18,14 +18,14 @@ index f477aa7fa2..d85a5f350f 100644 variations::switches::kEnableFieldTrialTestingConfig}, }; -+const char kOmniboxAutocompleteFiltering[] = "omnibox-autocomplete-filtering"; ++const char kScopeOmniboxAutocomplete[] = "scope-omnibox-autocomplete"; + -+const FeatureEntry::Choice kOmniboxAutocompleteFilteringChoices[] = { ++const FeatureEntry::Choice kkScopeOmniboxAutocompleteChoices[] = { + {flags_ui::kGenericExperimentChoiceDefault, "", ""}, -+ {"Search Only", kOmniboxAutocompleteFiltering, "search"}, -+ {"Search and Bookmarks", kOmniboxAutocompleteFiltering, "search-bookmarks"}, -+ {"Search and Chrome Pages", kOmniboxAutocompleteFiltering, "search-chrome"}, -+ {"Search, Bookmarks, and Chrome Pages", kOmniboxAutocompleteFiltering, "search-bookmarks-chrome"}}; ++ {"Search Only", kScopeOmniboxAutocomplete, "search"}, ++ {"Search and Bookmarks", kScopeOmniboxAutocomplete, "search,bookmarks"}, ++ {"Search and Chrome Pages", kScopeOmniboxAutocomplete, "search,chrome"}, ++ {"Search, Bookmarks, and Chrome Pages", kScopeOmniboxAutocomplete, "search,bookmarks,chrome"}}; + #if !BUILDFLAG(IS_ANDROID) const FeatureEntry::Choice kIwaKeyDistributionComponentExpCohortChoices[] = { @@ -49,9 +49,9 @@ index f477aa7fa2..d85a5f350f 100644 + "Trivalent via Ungoogled Chromium.", kOsLinux, + SINGLE_VALUE_TYPE("scroll-tabs")}, + {"scope-omnibox-autocomplete", "Scope Omnibox Autocomplete", -+ "Limit the scope of results that omnibox autocomplete can show. This " -+ "flag is provided by Trivalent via Ungoogled Chromium.", kOsAll, -+ MULTI_VALUE_TYPE(kOmniboxAutocompleteFilteringChoices)}, ++ "Limit the scope categories of results that omnibox autocomplete can " ++ "show. This flag is provided by Trivalent via Ungoogled Chromium.", ++ kOsAll, MULTI_VALUE_TYPE(kScopeOmniboxAutocompleteChoices)}, + {"show-punycode-domains", "Show punycode for IDN domains", + "Shows punycode for IDN domains to mitigate IDN homograph attacks. " + "Disabled by default. This feature is provided by Trivalent.", From 51c1eef92c7dab8477efdaabf4a285a7196ca544 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:12:34 -0400 Subject: [PATCH 13/24] Update add-flag-for-omnibox-autocomplete-filtering.patch --- ...g-for-omnibox-autocomplete-filtering.patch | 53 +++++++++++++------ 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch index 7617ef6b..1f8cb21b 100644 --- a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -1,3 +1,5 @@ +diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc +index 22af8003c7..6436cdab9d 100644 --- a/components/omnibox/browser/autocomplete_controller.cc +++ b/components/omnibox/browser/autocomplete_controller.cc @@ -22,6 +22,7 @@ @@ -8,34 +10,42 @@ #include "base/feature_list.h" #include "base/format_macros.h" #include "base/functional/bind.h" -@@ -548,6 +549,15 @@ AutocompleteController::AutocompleteCont +@@ -549,6 +550,19 @@ AutocompleteController::AutocompleteController( metrics::OmniboxEventProto::UNKNOWN_POSITION), config_(config) { config_.provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes(); -+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) { -+ const std::string flag_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("omnibox-autocomplete-filtering"); ++ const std::string kOmniboxScopeFlag = "scope-omnibox-autocomplete"; ++ const base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess(); ++ if (cmdline->HasSwitch(kOmniboxScopeFlag)) { ++ std::vector switch_values = base::SplitString( ++ cmdline->GetSwitchValueASCII(kOmniboxScopeFlag), ",", ++ base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY); + config_.provider_types &= AutocompleteProvider::TYPE_KEYWORD | AutocompleteProvider::TYPE_SEARCH | -+ AutocompleteProvider::TYPE_HISTORY_URL | AutocompleteProvider::TYPE_BOOKMARK | AutocompleteProvider::TYPE_BUILTIN; -+ if (!flag_value.contains("bookmarks")) -+ config_.provider_types &= ~AutocompleteProvider::TYPE_BOOKMARK; -+ if (!flag_value.contains("chrome")) -+ config_.provider_types &= ~AutocompleteProvider::TYPE_BUILTIN; ++ AutocompleteProvider::TYPE_HISTORY_URL; ++ if (std::ranges::contains(switch_values, "bookmarks")) ++ config_.provider_types &= AutocompleteProvider::TYPE_BOOKMARK; ++ if (std::ranges::contains(switch_values, "chrome")) ++ config_.provider_types &= AutocompleteProvider::TYPE_BUILTIN; + } // Providers run in the order they're added. Async providers should run first // so their async requests can be kicked off before waiting a few milliseconds +diff --git a/components/omnibox/browser/history_url_provider.cc b/components/omnibox/browser/history_url_provider.cc +index 526c06fdfe..16135f689c 100644 --- a/components/omnibox/browser/history_url_provider.cc +++ b/components/omnibox/browser/history_url_provider.cc -@@ -487,6 +487,9 @@ void HistoryURLProvider::Start(const Aut +@@ -487,6 +487,9 @@ void HistoryURLProvider::Start(const AutocompleteInput& input, if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY) matches_.push_back(what_you_typed_match); -+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch("scope-omnibox-autocomplete")) + return; + // We'll need the history service to run both passes, so try to obtain it. history::HistoryService* const history_service = client()->GetHistoryService(); +diff --git a/components/omnibox/browser/search_provider.cc b/components/omnibox/browser/search_provider.cc +index ff56a4fb37..bea9159cde 100644 --- a/components/omnibox/browser/search_provider.cc +++ b/components/omnibox/browser/search_provider.cc @@ -15,6 +15,7 @@ @@ -46,16 +56,18 @@ #include "base/feature_list.h" #include "base/functional/bind.h" #include "base/functional/callback.h" -@@ -682,6 +683,9 @@ void SearchProvider::Run(bool query_is_p +@@ -682,6 +683,9 @@ void SearchProvider::Run(bool query_is_private) { } void SearchProvider::DoHistoryQuery(bool minimal_changes) { -+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) ++ if (base::CommandLine::ForCurrentProcess()->HasSwitch("scope-omnibox-autocomplete")) + return; + // The history query results are synchronous, so if minimal_changes is true, // we still have the last results and don't need to do anything. if (minimal_changes) +diff --git a/components/url_formatter/url_fixer.cc b/components/url_formatter/url_fixer.cc +index d5d9a14c8d..6875acd917 100644 --- a/components/url_formatter/url_fixer.cc +++ b/components/url_formatter/url_fixer.cc @@ -10,6 +10,7 @@ @@ -66,12 +78,21 @@ #include "base/compiler_specific.h" #include "base/files/file_path.h" #include "base/files/file_util.h" -@@ -639,6 +640,8 @@ GURL FixupURLInternal(const std::string& +@@ -635,7 +636,16 @@ GURL FixupURLInternal(const std::string& text, desired_tld, &url); } if (chrome_url && !parts.host.is_valid()) { -+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering") || -+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("omnibox-autocomplete-filtering").contains("chrome")) - url.append(kChromeUIDefaultHost); +- url.append(kChromeUIDefaultHost); ++ bool append = true; ++ const std::string kOmniboxScopeFlag = "scope-omnibox-autocomplete"; ++ const base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess(); ++ if (cmdline->HasSwitch(kOmniboxScopeFlag)) { ++ std::vector switch_values = base::SplitString( ++ cmdline->GetSwitchValueASCII(kOmniboxScopeFlag), ",", ++ base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY); ++ append = std::ranges::contains(switch_values, "chrome"); ++ } ++ if (append) url.append(kChromeUIDefaultHost); } FixupPort(trimmed, parts.port, &url); + FixupPath(trimmed, parts.path, &url); From a286a38a33425992a41fc72015322d8e3937c38c Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:57:54 -0400 Subject: [PATCH 14/24] Delete patches/trivalent/ugc/add-flag-to-scroll-tabs.patch --- .../ugc/add-flag-to-scroll-tabs.patch | 60 ------------------- 1 file changed, 60 deletions(-) delete mode 100644 patches/trivalent/ugc/add-flag-to-scroll-tabs.patch diff --git a/patches/trivalent/ugc/add-flag-to-scroll-tabs.patch b/patches/trivalent/ugc/add-flag-to-scroll-tabs.patch deleted file mode 100644 index 70dabb20..00000000 --- a/patches/trivalent/ugc/add-flag-to-scroll-tabs.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- a/chrome/browser/ui/views/frame/browser_root_view.cc -+++ b/chrome/browser/ui/views/frame/browser_root_view.cc -@@ -12,6 +12,7 @@ - #include - - #include "base/check_op.h" -+#include "base/command_line.h" - #include "base/containers/adapters.h" - #include "base/feature_list.h" - #include "base/functional/bind.h" -@@ -177,6 +178,18 @@ DragOperation GetDropEffect(const ui::Dr - return DragOperation::kMove; - } - -+bool ShouldScrollChangesTab() { -+ const std::string flag_value = -+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("scroll-tabs"); -+ -+ if (flag_value == "always") -+ return true; -+ else if (flag_value == "never") -+ return false; -+ -+ return browser_defaults::kScrollEventChangesTab; -+} -+ - } // namespace - - BrowserRootView::DropInfo::DropInfo() = default; -@@ -189,7 +202,9 @@ BrowserRootView::DropInfo::~DropInfo() { - - BrowserRootView::BrowserRootView(BrowserView* browser_view, - views::Widget* widget) -- : views::internal::RootView(widget), browser_view_(browser_view) {} -+ : views::internal::RootView(widget), browser_view_(browser_view) { -+ scroll_event_changes_tab_ = ShouldScrollChangesTab(); -+} - - BrowserRootView::~BrowserRootView() { - // It's possible to destroy the browser while a drop is active. In this case, -@@ -331,7 +346,7 @@ bool BrowserRootView::OnMouseWheel(const - - // Scroll-event-changes-tab is incompatible with vertical tabstrip, so - // disable it if the latter feature is enabled. -- if (browser_defaults::kScrollEventChangesTab && -+ if (scroll_event_changes_tab_ && - !browser_view_->ShouldDrawVerticalTabStrip()) { - // Switch to the left/right tab if the wheel-scroll happens over the - // tabstrip, or the empty space beside the tabstrip. ---- a/chrome/browser/ui/views/frame/browser_root_view.h -+++ b/chrome/browser/ui/views/frame/browser_root_view.h -@@ -158,6 +158,8 @@ class BrowserRootView : public views::in - int scroll_remainder_x_ = 0; - int scroll_remainder_y_ = 0; - -+ bool scroll_event_changes_tab_ = false; -+ - std::unique_ptr drop_info_; - - base::OnceClosure on_filtering_complete_closure_; From f15cab6a6b3e8d4cb88908512814e801bcbb73b8 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 19:58:16 -0400 Subject: [PATCH 15/24] Update expose-flags.patch --- patches/trivalent/expose-flags.patch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/patches/trivalent/expose-flags.patch b/patches/trivalent/expose-flags.patch index 40035cb5..31ddeb31 100644 --- a/patches/trivalent/expose-flags.patch +++ b/patches/trivalent/expose-flags.patch @@ -30,7 +30,7 @@ index f477aa7fa2..d85a5f350f 100644 #if !BUILDFLAG(IS_ANDROID) const FeatureEntry::Choice kIwaKeyDistributionComponentExpCohortChoices[] = { {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, -@@ -4726,6 +4735,82 @@ const FeatureEntry::FeatureVariation kToolbarGlowUpVariations[] = { +@@ -4726,6 +4735,78 @@ const FeatureEntry::FeatureVariation kToolbarGlowUpVariations[] = { // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -44,10 +44,6 @@ index f477aa7fa2..d85a5f350f 100644 + "by default. This feature is provided by Trivalent.", + kOsLinux, + FEATURE_VALUE_TYPE(views::features::kMiddleClickCopyPaste)}, -+ {"enable-tab-scroll", "Enable Tab Scrolling", -+ "Enables tab scrolling on horizonal tabs. This flag is provided by " -+ "Trivalent via Ungoogled Chromium.", kOsLinux, -+ SINGLE_VALUE_TYPE("scroll-tabs")}, + {"scope-omnibox-autocomplete", "Scope Omnibox Autocomplete", + "Limit the scope categories of results that omnibox autocomplete can " + "show. This flag is provided by Trivalent via Ungoogled Chromium.", From 597d8fb8114e01bd55ccaeb1c50e22ef45692cfb Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:35:10 -0400 Subject: [PATCH 16/24] Update add-flag-for-omnibox-autocomplete-filtering.patch --- ...add-flag-for-omnibox-autocomplete-filtering.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch index 1f8cb21b..6d83084a 100644 --- a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -1,5 +1,5 @@ diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc -index 22af8003c7..6436cdab9d 100644 +index 22af8003c7..54c42a6871 100644 --- a/components/omnibox/browser/autocomplete_controller.cc +++ b/components/omnibox/browser/autocomplete_controller.cc @@ -22,6 +22,7 @@ @@ -10,7 +10,15 @@ index 22af8003c7..6436cdab9d 100644 #include "base/feature_list.h" #include "base/format_macros.h" #include "base/functional/bind.h" -@@ -549,6 +550,19 @@ AutocompleteController::AutocompleteController( +@@ -33,6 +34,7 @@ + #include "base/observer_list.h" + #include "base/strings/strcat.h" + #include "base/strings/string_number_conversions.h" ++#include "base/strings/string_split.h" + #include "base/strings/string_util.h" + #include "base/strings/stringprintf.h" + #include "base/strings/utf_string_conversions.h" +@@ -549,6 +551,19 @@ AutocompleteController::AutocompleteController( metrics::OmniboxEventProto::UNKNOWN_POSITION), config_(config) { config_.provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes(); From 67435f45e3e79fbc60b798e5f31b601dcba5b46a Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 22:36:32 -0400 Subject: [PATCH 17/24] Update add-flag-for-omnibox-autocomplete-filtering.patch --- ...add-flag-for-omnibox-autocomplete-filtering.patch | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch index 6d83084a..215b27d4 100644 --- a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -10,14 +10,6 @@ index 22af8003c7..54c42a6871 100644 #include "base/feature_list.h" #include "base/format_macros.h" #include "base/functional/bind.h" -@@ -33,6 +34,7 @@ - #include "base/observer_list.h" - #include "base/strings/strcat.h" - #include "base/strings/string_number_conversions.h" -+#include "base/strings/string_split.h" - #include "base/strings/string_util.h" - #include "base/strings/stringprintf.h" - #include "base/strings/utf_string_conversions.h" @@ -549,6 +551,19 @@ AutocompleteController::AutocompleteController( metrics::OmniboxEventProto::UNKNOWN_POSITION), config_(config) { @@ -61,6 +53,7 @@ index ff56a4fb37..bea9159cde 100644 #include "base/base64.h" +#include "base/command_line.h" ++#include "base/strings/string_split.h" #include "base/feature_list.h" #include "base/functional/bind.h" #include "base/functional/callback.h" @@ -83,10 +76,11 @@ index d5d9a14c8d..6875acd917 100644 #include "base/check_op.h" +#include "base/command_line.h" ++#include "base/strings/string_split.h" #include "base/compiler_specific.h" #include "base/files/file_path.h" #include "base/files/file_util.h" -@@ -635,7 +636,16 @@ GURL FixupURLInternal(const std::string& text, +@@ -635,7 +637,16 @@ GURL FixupURLInternal(const std::string& text, desired_tld, &url); } if (chrome_url && !parts.host.is_valid()) { From 4ae3ea1391e6bece9e5bf20d621e99aecae95c4b Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 22:36:44 -0400 Subject: [PATCH 18/24] Update add-flag-for-omnibox-autocomplete-filtering.patch --- .../ugc/add-flag-for-omnibox-autocomplete-filtering.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch index 215b27d4..beb105a3 100644 --- a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -10,7 +10,7 @@ index 22af8003c7..54c42a6871 100644 #include "base/feature_list.h" #include "base/format_macros.h" #include "base/functional/bind.h" -@@ -549,6 +551,19 @@ AutocompleteController::AutocompleteController( +@@ -549,6 +550,19 @@ AutocompleteController::AutocompleteController( metrics::OmniboxEventProto::UNKNOWN_POSITION), config_(config) { config_.provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes(); From f494534b6af65296c653dabb0b1c541854a373c1 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 22:54:28 -0400 Subject: [PATCH 19/24] Update add-flag-for-omnibox-autocomplete-filtering.patch --- .../ugc/add-flag-for-omnibox-autocomplete-filtering.patch | 1 - 1 file changed, 1 deletion(-) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch index beb105a3..c885fad5 100644 --- a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -53,7 +53,6 @@ index ff56a4fb37..bea9159cde 100644 #include "base/base64.h" +#include "base/command_line.h" -+#include "base/strings/string_split.h" #include "base/feature_list.h" #include "base/functional/bind.h" #include "base/functional/callback.h" From 06d20faf8999b94668b76d5ad9abcbc796615ab7 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Mon, 27 Jul 2026 23:12:38 -0400 Subject: [PATCH 20/24] Update add-flag-for-omnibox-autocomplete-filtering.patch --- .../ugc/add-flag-for-omnibox-autocomplete-filtering.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch index c885fad5..3b3e10f0 100644 --- a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch @@ -70,7 +70,7 @@ diff --git a/components/url_formatter/url_fixer.cc b/components/url_formatter/ur index d5d9a14c8d..6875acd917 100644 --- a/components/url_formatter/url_fixer.cc +++ b/components/url_formatter/url_fixer.cc -@@ -10,6 +10,7 @@ +@@ -10,6 +10,8 @@ #include #include "base/check_op.h" From 5bb481562f18ce187e8ef5debcca928b37590aff Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Tue, 28 Jul 2026 08:15:46 -0400 Subject: [PATCH 21/24] Update expose-flags.patch --- patches/trivalent/expose-flags.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/trivalent/expose-flags.patch b/patches/trivalent/expose-flags.patch index 31ddeb31..2cfd36dc 100644 --- a/patches/trivalent/expose-flags.patch +++ b/patches/trivalent/expose-flags.patch @@ -20,7 +20,7 @@ index f477aa7fa2..d85a5f350f 100644 +const char kScopeOmniboxAutocomplete[] = "scope-omnibox-autocomplete"; + -+const FeatureEntry::Choice kkScopeOmniboxAutocompleteChoices[] = { ++const FeatureEntry::Choice kScopeOmniboxAutocompleteChoices[] = { + {flags_ui::kGenericExperimentChoiceDefault, "", ""}, + {"Search Only", kScopeOmniboxAutocomplete, "search"}, + {"Search and Bookmarks", kScopeOmniboxAutocomplete, "search,bookmarks"}, From 4a4f955cc5ea7bb288ecaa9a8d81eb4a74fd74d6 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 29 Jul 2026 23:17:06 -0400 Subject: [PATCH 22/24] Delete patches/trivalent/ugc/disable-mei-preload.patch --- .../trivalent/ugc/disable-mei-preload.patch | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 patches/trivalent/ugc/disable-mei-preload.patch diff --git a/patches/trivalent/ugc/disable-mei-preload.patch b/patches/trivalent/ugc/disable-mei-preload.patch deleted file mode 100644 index ae638b90..00000000 --- a/patches/trivalent/ugc/disable-mei-preload.patch +++ /dev/null @@ -1,35 +0,0 @@ -# Disables use of a binary for preloading the Media Engagement index -# Said binary is: chrome/browser/resources/media/mei_preload/preloaded_data.pb -# According to media/base/media_switches (for PreloadMediaEngagementData), it -# "enables a list of origins to be considered as having a high MEI until there -# is enough local data to determine the user's preferred behavior." This feature -# does not seem to outweigh the benefit of removing the binary, thus this patch. - ---- a/chrome/BUILD.gn -+++ b/chrome/BUILD.gn -@@ -368,7 +368,6 @@ if (!is_android && !is_mac) { - } - - data_deps += [ -- "//chrome/browser/resources/media/mei_preload:component", - "//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component", - "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component", - "//third_party/widevine/cdm", -@@ -1207,7 +1206,6 @@ if (is_win) { - ":optimization_guide_library", - ":swiftshader_binaries", - ":widevine_cdm_library", -- "//chrome/browser/resources/media/mei_preload:component_bundle", - "//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component_bundle", - "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component_bundle", - ] ---- a/chrome/browser/resources/BUILD.gn -+++ b/chrome/browser/resources/BUILD.gn -@@ -127,7 +127,6 @@ group("resources") { - if (is_mac) { - public_deps += [ - "unexportable_keys_internals:resources", -- "//chrome/browser/resources/media/mei_preload:component", - "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component", - ] - } From cd2c11c84dd6ba4e740a8080b5c76d29bdc74390 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 29 Jul 2026 23:28:56 -0400 Subject: [PATCH 23/24] Rename add-flag-for-omnibox-autocomplete-filtering.patch to add-flag-to-scope-omnibox-autocomplete.patch --- ...ltering.patch => add-flag-to-scope-omnibox-autocomplete.patch} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename patches/trivalent/ugc/{add-flag-for-omnibox-autocomplete-filtering.patch => add-flag-to-scope-omnibox-autocomplete.patch} (100%) diff --git a/patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/trivalent/ugc/add-flag-to-scope-omnibox-autocomplete.patch similarity index 100% rename from patches/trivalent/ugc/add-flag-for-omnibox-autocomplete-filtering.patch rename to patches/trivalent/ugc/add-flag-to-scope-omnibox-autocomplete.patch From 9b339995ce20e7123c4ccacf8d0d53f592c1f279 Mon Sep 17 00:00:00 2001 From: Rootkit404 <175176948+RKNF404@users.noreply.github.com> Date: Wed, 29 Jul 2026 23:30:54 -0400 Subject: [PATCH 24/24] Update README.md --- patches/trivalent/ugc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/trivalent/ugc/README.md b/patches/trivalent/ugc/README.md index 13c942d3..cf7cddb7 100644 --- a/patches/trivalent/ugc/README.md +++ b/patches/trivalent/ugc/README.md @@ -2,4 +2,4 @@ These are just some usability and UI patches from Ungoogled Chromium (UGC). No central functionality from UGC is used. -https://github.com/ungoogled-software/ungoogled-chromium/tree/master/patches +