You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Quinn Casey a9f4f5e290
update to 96.0.4664.45-2
1 week ago
patches update to chrome 91.0.4472.77 6 months ago
.drone.yml update drone URL 2 months ago
PKGBUILD.patch update to 96.0.4664.45-2 1 week ago
README.md add drone build and badge 4 months ago
SalientStartpage.gif Add files via upload 11 months ago
after.gif add GTK demo gifs 11 months ago
before.gif add GTK demo gifs 11 months ago
startpage.gif add startpage gif 11 months ago

README.md

chromium-patches

Build Status

My custom Chromium patches, including:

  • Extension-less startpage that maintains its address bar focus.
  • Dynamic GTK dark mode for Linux distros with a Night/Day theme

PKGBUILD is of ungoogled-chromium although these patches can be applied to any Chromium build.

Custom Startpage

Problem: Google Chrome (Chromium pictured here) requires you to install an extension to change your new tab page. This would be fine, except that new tab loses focus of the searchbar! It also loads far slower than it should.

Solution: Build Chromium with all instances of chrome://newtab replaced with your custom startpage URL. This patch does the replacement, and also adds some checks to ensure the URL is hidden and the searchbar keeps its focus. 😃

startpage.gif

GTK Dark Theme

Problem: Chrome does not respect GTK themes when it sets prefers-color-scheme. It's a somewhat long-lived bug in Chromium on Linux. Here is the bugreport and Electron issue:

Solution-(ish): Use this patch to add a very naive forced update to the Web and NativeUI themes. This most likely should be done with listeners like Chromium already uses for Windows and MacOS, but GTK seems deliberately left out.

I don't know enough about the monolithic structure to provide an actual contribution, but this works well enough for me.

Chromium / Firefox Comparisons

Before (web content theme not changed)

before

After (theme changes, thank you Mr. Duck)

after