mirror of
https://github.com/Cysharp/Preferis.git
synced 2026-11-03 02:16:07 +00:00
A cross-platform browser switcher that opens URLs based on rules.
- C# 98.4%
- Python 0.7%
- PowerShell 0.5%
- TypeScript 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* ci: skip the app build for changes that touch only the documentation site The site is already built and checked by publish-docs.yml, so running the Windows and macOS builds for a site-only push or pull request only costs runner time. main has no required checks, so the skipped workflow does not leave a pull request waiting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(site): move "Reopening URLs with Preferis" to the end of the sidebar Pages without sidebar_position sort after the numbered ones by file name, which put the page between Profiles and Rules. Number every top-level page and category so the order is explicit, and note in the site README that new pages need a number in both languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .github/workflows | ||
| build | ||
| docs | ||
| site | ||
| spikes | ||
| src | ||
| test | ||
| .gitignore | ||
| AGENTS.md | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| dotnet-tools.json | ||
| LICENSE | ||
| Preferis.MacOS.slnf | ||
| Preferis.slnx | ||
| Preferis.Windows.slnf | ||
| README.ja.md | ||
| README.md | ||
Preferis
📖 Documentation: English | 日本語
Preferis is a cross-platform application that routes links to browsers and browser profiles based on rules. Set it as your OS's default browser to control which browser opens each URL.
flowchart TD
A["Apps \nSlack, Teams, ChatGPT, Claude..."]
A --> P{Preferis}
P -->|https://www.xbox.com/| EdgeP["Microsoft Edge (Personal)"]
P -->|https://m365.cloud.microsoft/| EdgeW["Microsoft Edge (Work)"]
P -->|https://www.google.com/| Chrome[Google Chrome]
P -->|https://www.apple.com/| Safari[Apple Safari]
Features
Preferis provides the following features:
- Cross-platform support for Windows and macOS
- Native settings and browser picker interfaces
- Configuration syncing across devices through cloud storage such as OneDrive and iCloud
- Automatic browser and profile detection
- Flexible rules, including regular expressions
Configuration syncing is useful when you want to apply the same rules on multiple devices. It is designed for scenarios such as sharing settings between a Windows desktop and a macOS laptop while keeping the same rules on both.
Installation and usage
See the installation guide for installation instructions.
After installing Preferis, follow the Quick Start to get started.
Build & Development
To build the project, run the following command:
# on Windows
dotnet build .\build\Preferis.Build.proj
.\artifacts\win-x64\Preferis\Preferis.exe
# on macOS
dotnet build .\build\Preferis.Build.proj
./artifacts/osx-arm64/Preferis/Preferis.app/Contents/MacOS/Preferis
License
MIT License
Copyright (c) 2026 Cysharp, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
