Skip to content
Projekte

Über uns

Inoffizielle Anpassungen für den Dia-Browser, die bei Updates erhalten bleiben.

Weitere Projekte

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+10
in 7 days
+28
in 15 days
+67
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

DiaTweaks

Small tweaks for Dia that stay in place when Dia updates.

Unofficial and not affiliated with The Browser Company. Apple Silicon, macOS 14 or later.

Tweaks

Each tweak changes one thing about Dia: it hides something you don't use, changes how something looks, or adds something Dia doesn't do. They're grouped as they are in Settings:

Section What the tweaks there change
Page The padding and corners around web pages, saving them, and the mouse's back and forward buttons
Toolbar The toolbar, its buttons and the address field
Sidebar & Tab Bar The sidebar, pinned tabs and tab groups
Profiles Profile emoji and colors, the private window theme, switching with ⌘1–9, and deleting profiles from the sidebar
Tabs Grouping, unloading, closing and reopening tabs
Command Bar The command bar and what it suggests
New Tab Page What the new tab page shows
AI Turning off Dia's AI, all at once or one part at a time
Window How the window looks and behaves
App Launch flags, the Dock icon and the tweaks you write yourself
Passwords Password managers and passkeys
Links Opening links in Little Dia or Peek, and the address shown on hover
Network Getting past networks that block sites by name

Turn them on and off in Dia → Settings → Patches, or with the diatweaks command. Each one's Settings page links to its wiki page, which says what it does and when you'd want it. Experimental tweaks stay out of the list until you switch on Show Experimental Tweaks in Settings → Home (or click Show at the bottom of Patches). Home is also where you back up or import your settings.

See all tweaks →

Install

  1. Put Dia in your Applications folder.

  2. Install Apple's developer tools: xcode-select --install

  3. Paste this into Terminal:

    (if [ -e ~/DiaTweaks ] && [ ! -w ~/DiaTweaks ]; then
      echo 'Run sudo chown -R "$USER" ~/DiaTweaks, then paste this again.' >&2; exit 1
    elif [ -d ~/DiaTweaks/.git ]; then
      git -C ~/DiaTweaks pull --ff-only || { echo "~/DiaTweaks has local changes or can't fast-forward. Move it aside (mv ~/DiaTweaks ~/DiaTweaks.old) and run this again." >&2; exit 1; }
    elif [ -e ~/DiaTweaks ]; then
      echo "~/DiaTweaks already exists but isn't a git clone. Move it aside (mv ~/DiaTweaks ~/DiaTweaks.old) and run this again." >&2; exit 1
    else
      git clone --depth 1 https://github.com/JaceThings/DiaTweaks.git ~/DiaTweaks
    fi) && ~/DiaTweaks/install.sh
    

Dia quits and reopens. If macOS asks about "Dia Safe Storage", enter your password and click Always Allow.

The diatweaks command needs Rust. If you don't have a recent one, the installer asks before installing it with rustup. ./install.sh -y never asks, and leaves the command out if Rust is missing.

Stopped it halfway, or something went wrong? Run ~/DiaTweaks/install.sh again, or diatweaks doctor to see what needs fixing. Don't use sudo: DiaTweaks installs into your own home folder.

The diatweaks command

Run diatweaks on its own for a menu, or:

Command Does
diatweaks list Shows every tweak and whether it's on
diatweaks on hideToolbar Turns tweaks on; Dia changes straight away
diatweaks off hideToolbar Turns tweaks off
diatweaks toggle hideToolbar Turns each tweak named on if it's off, and off if it's on
diatweaks pause Turns every tweak off, keeping their settings, until diatweaks resume
diatweaks resume Turns the tweaks back on as they were
diatweaks status Shows Dia's version, safe mode and which tweaks are on
diatweaks doctor Checks Dia, DiaTweaks' folder and local tweaks, tidies up stopped updates, and says how to fix the rest
diatweaks update Installs the latest DiaTweaks release and patches Dia again
diatweaks update-dia Downloads a newer Dia and patches it
diatweaks export Saves your tweak switches and settings to diatweaks-config.json
diatweaks import diatweaks-config.json Loads tweak switches and settings from a file (--replace resets the rest)
diatweaks restore Puts the original Dia back
diatweaks local Lists, builds and shares tweaks you keep in your own folder, and installs optional ones

Tweak names work as keys or titles, like hideToolbar or "Hide Toolbar", and on, off and toggle take several at once, or show a list to pick from when you name none. enable, disable, ls, unpause, info, backup and uninstall work too. Add -y to skip the questions.

Local Tweaks

Have a tweak of your own that isn't in DiaTweaks? Drop a .m file, a GitHub pull request .patch, or a prebuilt .dylib into ~/Library/Application Support/DiaPatches/local/ and it runs like any other tweak, with its own switch in Settings. It compiles against the headers inside the installed DiaPatches.dylib, so it keeps working across Dia and DiaTweaks updates, and no update or uninstall deletes it. diatweaks local add also takes a GitHub link, like a pull request's address. Dia → Settings → Patches → App → Local Tweaks has Add Tweak…, New Starter Tweak… and Open Folder, and an Available list of optional tweaks that install in one click; diatweaks local does the same from a terminal. See docs/local-tweaks.md.

Updating

Dia's own updater is switched off. Settings → Home → Software Update checks for a new Dia and a new DiaTweaks release, downloads either one, and relaunches Dia to install it, like macOS's Software Update. Under Automatic Updates, pick for each of Dia and DiaTweaks: off, just show updates, download them, or download and install them when you quit (the default). A DiaTweaks you built from source with install.sh is never downloaded or replaced automatically: Update Now or diatweaks update installs the latest release, and automatic updates apply from then on.

  • Dia now: diatweaks update-dia
  • DiaTweaks now: diatweaks update
Installed before diatweaks existed?

Update once by hand, then use diatweaks update from then on:

rm -rf /tmp/DiaTweaks && git clone --depth 1 https://github.com/JaceThings/DiaTweaks.git /tmp/DiaTweaks && /tmp/DiaTweaks/install.sh

FAQ

Is it safe?

The first install is built on your Mac from this code, and updates are prebuilt downloads from this repo's GitHub releases, built there from the same code. It doesn't send anything about you anywhere. It goes online only to check for updates and to load the preview pictures in Settings. A few tweaks look at what's in Dia to work: Group Tabs by Domain reads your tabs' addresses, and Tidy Tabs gives your tab titles and addresses to Apple's on-device model, which runs on your Mac. The password tweaks pass messages between your password manager and its extension without reading them.

What are the security tradeoffs?

Patching Dia changes what protects it:

  • The patched Dia has no hardened runtime and loads DiaPatches.dylib from your Application Support folder, so other software running as you can change what it does.
  • The "DiaPatches Local Signing" certificate stays in your login keychain, and other software running as you can sign with it.
  • DiaTweaks updates are prebuilt downloads from this repo's GitHub releases. They're checked against the digest GitHub lists and signed on your Mac with the same local certificate as Dia. To stop them installing when Dia quits, switch DiaTweaks away from Download and install on quit under Automatic Updates (or install from source with install.sh, which stays off automatic DiaTweaks updates).
  • The Passwords tweaks start the original Dia to reach Apple Passwords and 1Password, which only trust it: hidden for Allow 1Password, and in a small window behind the Touch ID prompt for Allow iCloud Passkeys.
  • Split TLS ClientHello, while it's on, runs Dia's network code inside Dia instead of its sandboxed helper, so a bug in that code reaches everything Dia can reach. Switch it off and relaunch Dia to get the helper back.
  • Dia's own updater is off. DiaTweaks looks for a new Dia when Dia opens or you open Software Update, so if you rarely quit Dia, security fixes can arrive late.
  • Restore puts the original Dia back but keeps the certificate. To remove it, delete "DiaPatches Local Signing" in Keychain Access.
How does it work?

It keeps an untouched copy of Dia and makes a second copy that loads a small add-on. The add-on changes parts of Dia while it runs. When Dia updates, DiaTweaks patches the new version the same way.

Why does my Mac ask about "Dia Safe Storage"?

The tweaked Dia is signed by you instead of The Browser Company, so macOS checks once per Dia update. Click Always Allow.

Why does screen sharing ask for permission again?

macOS ties Screen Recording to the app's signature, and the tweaked Dia is signed differently from the original. The first time DiaTweaks patches Dia (and when it goes back to the original), it clears the old permission so macOS asks once for the new one. Switch on Dia under System Settings → Privacy & Security → Screen & System Audio Recording, then quit and reopen Dia. Dia and DiaTweaks updates keep your permission. If sharing still loops, run tccutil reset ScreenCapture company.thebrowser.dia and try again.

Does it run in the background?

No. It only does anything while Dia is open.

Does anything stop working?

Apple Passwords, its passkeys and 1Password only trust the original Dia, so in the patched one they stop working until you switch on the matching tweak in Dia → Settings → Patches → Password Managers (under Passwords). Those run the original Dia as a go-between (hidden for 1Password, in a small window behind the Touch ID prompt for passkeys), which is why they're off by default. How it works →

Why does my passkey prompt only offer "Use a phone or tablet"?

Dia shows a QR code or asks for a USB security key because it can't reach the passkeys on your Mac. To load tweaks, DiaTweaks has to sign Dia again, and macOS only lets an app use passkeys on the Mac itself (Touch ID, Apple Passwords) if the company that made it signed it. To get the Touch ID prompt back for passkeys saved in Apple Passwords, switch on Allow iCloud Passkeys in Dia → Settings → Patches → Password Managers, or run diatweaks enable passkeys, then relaunch Dia. It only works on websites. It can't help with a passkey a browser extension asks for itself, like a password manager unlocking itself. For those, use the extension's master password, or run diatweaks restore to go back to the original Dia. How it works →

Why don't website notifications show a banner?

Website notifications work in a locally signed Dia on macOS 27: the system services that show them all accept DiaTweaks' signature. If a banner is missing, check two things first. The site needs permission to send notifications (click the site button in the address bar if you missed the prompt), and Dia needs to be switched on with Banners or Alerts under System Settings → Notifications. If you updated from DiaTweaks 1.1.9 or earlier and banners stay hidden while the site's sound still plays, Notification Center may be holding a stale entry from before DiaTweaks registered Dia again after swapping it in. Run diatweaks update, then run killall NotificationCenter once in Terminal so Notification Center loads Dia again. What we found →

What if Dia keeps crashing?

If Dia crashes twice in a row right after opening, it opens next time with the tweaks off. Settings → Patches has a button to turn them back on.

Uninstall

In Dia, open Settings → Home and click Restore…. Dia reopens as the original app with its own updates.

To also delete DiaTweaks' files and the diatweaks command, run diatweaks restore --purge instead.

Contributing

See CONTRIBUTING.md.

Ähnliche Projekte entdecken

Wird geladen…