diff options
| author | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-11 15:13:57 -0500 |
|---|---|---|
| committer | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-11 15:13:57 -0500 |
| commit | 6207d8a75e40aa76008edaffbbe138bbc9f6baa4 (patch) | |
| tree | 0ab78ec4155721ae8571fdcac435c9b84e232ca9 /browsers/firefox/install-native-host.sh | |
| parent | 2d10fcf6bb85732819385f20a9bc13c50036c0f7 (diff) | |
Add dynamic Firefox accent color extension
Diffstat (limited to 'browsers/firefox/install-native-host.sh')
| -rwxr-xr-x | browsers/firefox/install-native-host.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/browsers/firefox/install-native-host.sh b/browsers/firefox/install-native-host.sh new file mode 100755 index 0000000..33a6c88 --- /dev/null +++ b/browsers/firefox/install-native-host.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")" +HOST_DIR="${HOME}/.mozilla/native-messaging-hosts" +mkdir -p "$HOST_DIR" +cat >"$HOST_DIR/accent_color.json" <<JSON +{ + "name": "accent_color", + "description": "Accent color provider", + "path": "$(pwd)/accent_host.py", + "type": "stdio", + "allowed_extensions": ["accent-color@example.com"] +} +JSON +chmod +x accent_host.py |
