summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch')
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch282
1 files changed, 282 insertions, 0 deletions
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
new file mode 100644
index 0000000..cbb86fd
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
@@ -0,0 +1,282 @@
1# Removes in order:
2# link to Chrome store on the extensions page when empty
3# link to Chrome store in extensions page sidebar
4# 'Tabs from other devices' entry on the History page sidebar
5# the 'Learn more' link on new incognito tabs
6# Live captions entry from the settings page
7# link to Google's accessibility site from the settings page
8# link to Google's help site on the About page
9# external link for theme entry on settings page
10# Check passwords and managed passwords sections from the passwords page
11# the Google account line from the Payment methods page
12# Safety check section on the settings page
13# Google sign-in and Anonymized Data Collection sections
14# Advanced Protection Program link on the security settings page
15# the 'Learn more' link from the search engine entry on the settings page
16# Safety Check entry on the side menu on the settings page
17# the (?) learn more button on many settings pages
18# unneeded elements from the profile menu
19# the 'Learn more' link on crashed tabs
20
21--- chrome/browser/resources/extensions/item_list.html.orig
22+++ chrome/browser/resources/extensions/item_list.html
23@@ -80,13 +80,6 @@
24 <div id="container">
25 <managed-footnote hidden="[[filter]]"></managed-footnote>
26 <div id="content-wrapper" style="--max-columns: [[maxColumns_]];">
27- <div id="no-items" class="empty-list-message"
28- hidden$="[[!shouldShowEmptyItemsMessage_(
29- apps.length, extensions.length)]]">
30- <span on-click="onNoExtensionsTap_">
31- $i18nRaw{noExtensionsOrApps}
32- </span>
33- </div>
34 <div id="no-search-results" class="empty-list-message"
35 hidden$="[[!shouldShowEmptySearchMessage_(
36 shownAppsCount_, shownExtensionsCount_, apps, extensions)]]">
37--- chrome/browser/resources/extensions/sidebar.html.orig
38+++ chrome/browser/resources/extensions/sidebar.html
39@@ -69,12 +69,3 @@
40 <paper-ripple></paper-ripple>
41 </a>
42 </iron-selector>
43-<div>
44- <div class="separator"></div>
45- <a class="section-item" id="more-extensions" target="_blank"
46- href="$i18n{getMoreExtensionsUrl}" on-click="onMoreExtensionsTap_">
47- <span>$i18n{openChromeWebStore}</span>
48- <div class="cr-icon icon-external"></div>
49- <paper-ripple></paper-ripple>
50- </a>
51-</div>
52--- chrome/browser/resources/history/side_bar.html.orig
53+++ chrome/browser/resources/history/side_bar.html
54@@ -128,13 +128,6 @@
55 $i18n{historyMenuItem}
56 <paper-ripple></paper-ripple>
57 </a>
58- <a id="syncedTabs" role="menuitem" href="/syncedTabs"
59- class="page-item cr-nav-menu-item"
60- path="syncedTabs" on-click="onItemClick_">
61- <iron-icon icon="cr:phonelink"></iron-icon>
62- $i18n{openTabsMenuItem}
63- <paper-ripple></paper-ripple>
64- </a>
65 <div class="separator"></div>
66 <a role="menuitem" id="clear-browsing-data"
67 class="cr-nav-menu-item"
68--- chrome/browser/resources/ntp4/incognito_tab.html.orig
69+++ chrome/browser/resources/ntp4/incognito_tab.html
70@@ -24,8 +24,6 @@ document.querySelector('#incognitothemec
71 <h1>$i18n{incognitoTabHeading}</h1>
72 <p id="subtitle">
73 <span>$i18n{incognitoTabDescription}</span>
74- <a class="learn-more-button"
75- href="$i18n{learnMoreLink}">$i18n{learnMore}</a>
76 </p>
77 <div id="bulletpoints-wrapper">
78 <div class="bulletpoints first">$i18nRaw{incognitoTabFeatures}</div>
79--- chrome/browser/resources/settings/a11y_page/a11y_page.html.orig
80+++ chrome/browser/resources/settings/a11y_page/a11y_page.html
81@@ -21,7 +21,7 @@
82 external$="[[captionSettingsOpensExternally_]]">
83 </cr-link-row>
84 </template>
85- <template is="dom-if" if="[[!captionSettingsOpensExternally_]]">
86+ <template is="dom-if" if="[[false]]">
87 <cr-link-row id="captions"
88 label="$i18n{captionsTitle}"
89 on-click="onCaptionsClick_"
90@@ -51,10 +51,6 @@
91 sub-label="$i18n{accessibleImageLabelsSubtitle}">
92 </settings-toggle-button>
93 </if>
94- <cr-link-row class="hr" label="$i18n{moreFeaturesLink}"
95- on-click="onMoreFeaturesLinkClick_" sub-label="$i18n{a11yWebStore}"
96- external>
97- </cr-link-row>
98 </div>
99 <if expr="not chromeos">
100 <template is="dom-if" if="[[!captionSettingsOpensExternally_]]">
101--- chrome/browser/resources/settings/about_page/about_page.html.orig
102+++ chrome/browser/resources/settings/about_page/about_page.html
103@@ -131,8 +131,6 @@
104 </div>
105 </template>
106 </if>
107- <cr-link-row class="hr" id="help" on-click="onHelpTap_"
108- label="$i18n{aboutGetHelpUsingChrome}" external></cr-link-row>
109 <if expr="_google_chrome">
110 <cr-link-row class="hr" id="reportIssue" on-click="onReportIssueTap_"
111 hidden="[[!prefs.feedback_allowed.value]]"
112--- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig
113+++ chrome/browser/resources/settings/appearance_page/appearance_page.html
114@@ -22,11 +22,11 @@
115 <settings-animated-pages id="pages" section="appearance"
116 focus-config="[[focusConfig_]]">
117 <div route-path="default">
118- <div class="settings-row first" id="themeRow"
119+ <div class="cr-row first" id="themeRow"
120 hidden="[[!pageVisibility.setTheme]]">
121- <cr-link-row class="first" hidden="[[!pageVisibility.setTheme]]"
122- label="$i18n{themes}" sub-label="[[themeSublabel_]]"
123- on-click="openThemeUrl_" external></cr-link-row>
124+ <div class="flex cr-padded-text">
125+ <div>$i18n{themes}</div><div class="secondary">[[themeSublabel_]]</div>
126+ </div>
127 <if expr="not is_posix or chromeos or lacros">
128 <template is="dom-if" if="[[prefs.extensions.theme.id.value]]">
129 <div class="separator"></div>
130--- chrome/browser/resources/settings/autofill_page/passwords_section.html.orig
131+++ chrome/browser/resources/settings/autofill_page/passwords_section.html
132@@ -107,6 +107,7 @@
133 label="$i18n{trustedVaultOptInLabel}"
134 sub-label="$i18n{trustedVaultOptInSubLabel}">
135 </cr-link-row>
136+<if expr="false">
137 <div id="checkPasswordsBannerContainer" class="cr-row"
138 hidden$="[[!shouldShowBanner_]]">
139 <picture>
140@@ -155,6 +156,7 @@
141 <!-- This div lays out the link correctly, relative to the text. -->
142 <div class="cr-padded-text">$i18nRaw{managePasswordsLabel}</div>
143 </div>
144+</if>
145 <div class="cr-row first">
146 <h2 id="savedPasswordsHeading" class="flex">
147 $i18n{savedPasswordsHeading}
148--- chrome/browser/resources/settings/autofill_page/payments_section.html.orig
149+++ chrome/browser/resources/settings/autofill_page/payments_section.html
150@@ -53,11 +53,6 @@
151 </div>
152 </template>
153
154- <div id="manageLink" class="cr-row first">
155- <!-- This span lays out the link correctly, relative to the text. -->
156- <div class="cr-padded-text">$i18nRaw{manageCreditCardsLabel}</div>
157- </div>
158-
159 <div class="cr-row continuation">
160 <h2 class="flex">$i18n{creditCards}</h2>
161 <cr-button id="addCreditCard" class="header-aligned-button"
162--- chrome/browser/resources/settings/basic_page/basic_page.html.orig
163+++ chrome/browser/resources/settings/basic_page/basic_page.html
164@@ -102,7 +102,7 @@
165 <settings-privacy-review-promo></settings-privacy-review-promo>
166 </settings-section>
167 </template>
168- <template is="dom-if" if="[[showPage_(pageVisibility.safetyCheck)]]"
169+ <template is="dom-if" if="[[false]]"
170 restamp>
171 <settings-section page-title="$i18n{safetyCheckSectionTitle}"
172 section="safetyCheck" nest-under-section="privacy"
173--- chrome/browser/resources/settings/privacy_page/personalization_options.html.orig
174+++ chrome/browser/resources/settings/privacy_page/personalization_options.html
175@@ -8,7 +8,7 @@
176 border-top: none;
177 }
178 </style>
179-<if expr="not chromeos">
180+<if expr="false">
181 <settings-toggle-button id="signinAllowedToggle"
182 class="hr"
183 hidden="[[!signinAvailable_]]"
184@@ -51,12 +51,6 @@
185 </settings-toggle-button>
186 </if><!-- not chromeos -->
187 </if><!-- _google_chrome -->
188- <settings-toggle-button id="urlCollectionToggle"
189- class="hr"
190- pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}"
191- label="$i18n{urlKeyedAnonymizedDataCollection}"
192- sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}">
193- </settings-toggle-button>
194 <if expr="_google_chrome">
195 <settings-toggle-button id="spellCheckControl"
196 class="hr"
197--- chrome/browser/resources/settings/privacy_page/security_page.html.orig
198+++ chrome/browser/resources/settings/privacy_page/security_page.html
199@@ -96,10 +96,3 @@
200 sub-label="$i18n{manageCertificatesDescription}"
201 on-click="onManageCertificatesClick_"></cr-link-row>
202 </if>
203- <cr-link-row id="advanced-protection-program-link"
204- class="hr"
205- label="$i18n{advancedProtectionProgramTitle}"
206- sub-label="$i18n{advancedProtectionProgramDesc}"
207- on-click="onAdvancedProtectionProgramLinkClick_"
208- external>
209- </cr-link-row>
210--- chrome/browser/resources/settings/search_page/search_page.html.orig
211+++ chrome/browser/resources/settings/search_page/search_page.html
212@@ -12,10 +12,6 @@
213 <div class="cr-row first">
214 <div id="searchExplanation" class="flex cr-padded-text">
215 $i18n{searchExplanation}
216- <a href="$i18n{searchExplanationLearnMoreURL}"
217- target="_blank">
218- $i18n{learnMore}
219- </a>
220 </div>
221 <template is="dom-if" if="[[isDefaultSearchControlledByPolicy_(
222 prefs.default_search_provider_data.template_url_data)]]">
223--- chrome/browser/resources/settings/settings_menu/settings_menu.html.orig
224+++ chrome/browser/resources/settings/settings_menu/settings_menu.html
225@@ -111,7 +111,7 @@
226 $i18n{autofillPageTitle}
227 <paper-ripple></paper-ripple>
228 </a>
229- <template is="dom-if" if="[[!enableLandingPageRedesign_]]">
230+ <template is="dom-if" if="[[false]]">
231 <a role="menuitem" href="/safetyCheck"
232 hidden="[[!pageVisibility.safetyCheck]]"
233 id="safetyCheck"
234--- chrome/browser/resources/settings/settings_page/settings_subpage.html.orig
235+++ chrome/browser/resources/settings/settings_page/settings_subpage.html
236@@ -72,7 +72,7 @@
237 </template>
238 <h1 class="cr-title-text">[[pageTitle]]</h1>
239 <slot name="subpage-title-extra"></slot>
240- <template is="dom-if" if="[[learnMoreUrl]]">
241+ <template is="dom-if" if="[[false]]">
242 <cr-icon-button iron-icon="cr:help-outline" dir="ltr"
243 aria-label="$i18n{learnMore}" on-click="onHelpClick_">
244 </cr-icon-button>
245--- chrome/browser/ui/views/profiles/profile_menu_view.cc.orig
246+++ chrome/browser/ui/views/profiles/profile_menu_view.cc
247@@ -176,6 +176,7 @@ void ProfileMenuView::BuildMenu() {
248 }
249
250 gfx::ImageSkia ProfileMenuView::GetSyncIcon() const {
251+ return gfx::ImageSkia();
252 Profile* profile = browser()->profile();
253 if (profile->IsOffTheRecord() || profile->IsGuestSession())
254 return gfx::ImageSkia();
255@@ -450,8 +451,7 @@ void ProfileMenuView::BuildIdentity() {
256 menu_subtitle_);
257 } else {
258 menu_title_ = std::u16string();
259- menu_subtitle_ =
260- l10n_util::GetStringUTF16(IDS_PROFILES_LOCAL_PROFILE_STATE);
261+ menu_subtitle_ = std::u16string();
262 SetProfileIdentityInfo(
263 profile_name, background_color, edit_button_params,
264 ui::ImageModel::FromImage(
265--- chrome/browser/ui/views/sad_tab_view.cc.orig
266+++ chrome/browser/ui/views/sad_tab_view.cc
267@@ -556,15 +556,9 @@ SadTabView::SadTabView(content::WebConte
268 CreateErrorCodeLabel(GetErrorCodeFormatString(), GetCrashedErrorCode()),
269 2, 1.0, views::GridLayout::LEADING, views::GridLayout::LEADING);
270
271- auto help_link = std::make_unique<views::Link>(
272- l10n_util::GetStringUTF16(GetHelpLinkTitle()));
273- help_link->SetCallback(base::BindRepeating(
274- &SadTab::PerformAction, base::Unretained(this), Action::HELP_LINK));
275 layout->StartRowWithPadding(views::GridLayout::kFixedSize, column_set_id,
276 views::GridLayout::kFixedSize,
277 unrelated_vertical_spacing_large);
278- layout->AddView(std::move(help_link), 1.0, 1.0, views::GridLayout::LEADING,
279- views::GridLayout::CENTER);
280 auto action_button = std::make_unique<views::MdTextButton>(
281 base::BindRepeating(&SadTabView::PerformAction, base::Unretained(this),
282 Action::BUTTON),