A lightweight .NET console application that registers as a browser alternative in Windows, allowing users to copy links to clipboard instead of opening them in a web browser.
- 🔗 Copy links to clipboard instead of opening in browser
- ⚙️ Configurable behavior via JSON/TXT config file
- 🖥️ Windows integration - appears in "Open with" dialog
- 🚀 Silent mode - direct copy without confirmation prompt
- 📋 Multiple protocol support - HTTP, HTTPS, FTP
- 📄 File association support - HTML, HTM, URL files
- .NET 6.0+ or .NET Framework 4.8
- Windows OS
- Administrator privileges (for registry setup)
- Clone or download the project
git clone https://github.com/cumulus13/DummyBrowser
cd DummyBrowser- Build the application
dotnet build -c Release- Navigate to output directory
cd bin\Release\net6.0-windows\- Copy configuration file
copy ..\..\..\config.json .- Run registry setup as Administrator
setup_registry.batThe application behavior can be customized using config.json:
{
"ShowPrompt": true,
"AppName": "Link Clipboard Manager",
"ShowSuccessMessage": true
}| Option | Type | Default | Description |
|---|---|---|---|
ShowPrompt |
boolean | true |
Show confirmation dialog before copying |
AppName |
string | "Link Clipboard Manager" |
Application name displayed in dialogs |
ShowSuccessMessage |
boolean | true |
Show success message after copying |
Silent Mode (Direct Copy):
{
"ShowPrompt": false,
"AppName": "Silent Link Copier",
"ShowSuccessMessage": false
}Confirmation Mode:
{
"ShowPrompt": true,
"AppName": "Link Clipboard Manager",
"ShowSuccessMessage": true
}- After installation, the application will appear in Windows "Open with" dialog
- Right-click on any HTML file, URL file, or web link
- Select "Open with" → "Choose another app"
- Choose "Link Clipboard Manager" from the list
- Depending on configuration:
- Confirmation dialog will appear (if
ShowPrompt: true) - Link will be copied directly to clipboard (if
ShowPrompt: false)
- Confirmation dialog will appear (if
.html- HTML documents.htm- HTML documents.url- Internet shortcuts
http://- HTTP URLshttps://- HTTPS URLsftp://- FTP URLs
DummyBrowser/
├── Program.cs # Main application logic
├── DummyBrowser.csproj # Project configuration
├── config.json # Application configuration
├── setup_registry.bat # Registry setup script
└── README.md # This file
- Registry Integration: The setup script registers the application as a browser alternative in Windows registry
- URL Handling: Windows passes URLs as command-line arguments to the application
- Clipboard Operation: The application copies the URL to system clipboard using Windows Forms
- User Feedback: Optional confirmation dialogs and success messages based on configuration
The application creates the following registry entries:
HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplicationsHKEY_LOCAL_MACHINE\SOFTWARE\DummyBrowser\CapabilitiesHKEY_LOCAL_MACHINE\SOFTWARE\Classes\DummyBrowser.*
To remove the application from "Open with" dialog:
- Delete the registry entries created by the setup script
- Or create an uninstall script with
reg deletecommands for all created keys
- Ensure you have .NET 6.0+ SDK installed
- For older systems, switch to .NET Framework 4.8 target
- Check that Windows Forms support is available
- Run
setup_registry.batas Administrator - Verify the executable path in the batch script
- Check Windows Event Viewer for registry errors
- Ensure the application has permission to access clipboard
- Some antivirus software may block clipboard operations
- Try running as Administrator if clipboard access fails
.NET 6.0+ (Recommended):
<TargetFramework>net6.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>.NET Framework 4.8 (Legacy):
<TargetFramework>net48</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>- New Protocols: Add entries to
setup_registry.bat - Configuration Options: Extend the
Configclass - File Types: Add new file associations in registry setup
This project is provided as-is for educational and utility purposes.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly on Windows
- Submit a pull request
See LICENSE for details.
