Skip to main content

Redirect Microsoft Edge to your preferred browser

Project description

Edger

Edger Logo

Reclaim your browser choice by redirecting Microsoft Edge to your default browser


📋 Overview

Edger is a lightweight Windows utility that runs in your system tray and automatically redirects Microsoft Edge browser windows to your default browser. It's designed for users who prefer their browser of choice but find Edge being forced upon them in various contexts.

Key Features

  • 🔄 Transparent Redirection: Intercepts and redirects Edge windows to your default browser
  • 🔍 Bing Search Conversion: Converts Bing searches to your preferred search engine
  • 🛡️ URL Bypass System: Special handling for Microsoft Teams and other specified URLs
  • 🔔 System Tray Integration: Easy toggle and access from your taskbar
  • 📝 Activity Logging: Keeps records of redirects for troubleshooting
  • 🖱️ Mouse Jiggler: Built-in invisible mouse activity simulator to prevent screen locking

🚀 Installation

Prerequisites

  • Windows Operating System
  • Python 3.6 or higher
  • Microsoft Edge browser installed

Setup

  1. Clone or download this repository

    git clone https://github.com/yourusername/edger.git
    cd edger
    
  2. Install dependencies

    pip install -r requirements.txt
    
  3. Configure your preferences (optional)

    # Edit config.ini to customize behavior
    
  4. Run the application

    python edger.py
    

⚙️ Configuration

Edger is configurable through the config.ini file:

[Settings]
search_engine_url = https://duckduckgo.com/?q=  # Your preferred search engine
log_file = edger.log                            # Log file location
icon_path = edger.ico                           # Path to system tray icon
jiggler_interval = 30                           # Seconds between mouse jiggle actions
detection_interval = 1                          # Seconds between checks for new Edge windows
default_jiggle = off                            # Start with jiggler enabled (on/off)
default_redirect = on                           # Start with redirection enabled (on/off)

[Bypass]
urls = statics.teams.cdn.office.net, example.com/redirect  # URLs to ignore

Options Explained

Setting Purpose
search_engine_url The search engine that replaces Bing (with query parameter)
log_file Location for storing redirect logs
icon_path Custom icon for the system tray
jiggler_interval How often (in seconds) the mouse jiggler simulates activity
detection_interval How often (in seconds) Edger checks for new Edge windows
default_jiggle Whether the mouse jiggler is enabled at startup (on/off)
default_redirect Whether Edge redirection is enabled at startup (on/off)
urls (in Bypass) Comma-separated list of URLs that should not be redirected

Note: The bypass list is especially important for Microsoft Teams URLs which require special handling to work correctly.


🔧 Usage

Once running, Edger sits in your system tray (notification area) and works automatically:

  1. When Edge opens, Edger captures the URL
  2. The URL is processed (converted if it's a Bing search)
  3. Your default browser opens with the same/converted URL
  4. The Edge window is closed
  5. The activity is logged for reference

System Tray Controls

  • Left-click: Access the menu
  • Redirect Edge Windows: Toggle Edge redirection on or off
  • Mouse Jiggler: Toggle the invisible mouse activity simulator
  • Settings: Open the settings GUI to adjust intervals and default states
  • View Log: Open the log file in your default text editor
  • Edit Config: Open the config.ini file directly in your text editor
  • Exit: Close the application

Settings GUI

Edger includes a graphical settings panel accessible from the system tray menu. This allows you to easily configure:

  • Mouse Jiggle Interval: How often (in seconds) the mouse jiggler simulates activity
  • Edge Detection Interval: How often (in seconds) Edger checks for new Edge windows
  • Default States: Whether features are enabled by default at startup

Changes made through the Settings GUI are saved to the config.ini file and applied immediately.

Mouse Jiggler

The built-in mouse jiggler simulates mouse activity without actually moving your cursor. This prevents your computer from:

  • Going to sleep
  • Activating the screen saver
  • Showing as "Away" or "Inactive" in messaging apps
  • Triggering automatic locks

The jiggler is completely invisible - your cursor won't move on screen, but Windows will detect "activity".


📦 Dependencies

  • pystray: System tray functionality
  • Pillow: Image processing for the tray icon
  • pywin32: Windows API integration
  • psutil: Process monitoring
  • pyautogui: GUI automation
  • pyperclip: Clipboard management
  • configparser: Configuration file handling

⚠️ Limitations

  • Windows-only functionality
  • May require updates if Edge's URL handling changes
  • Not designed to bypass security measures
  • Some URLs may need to be added to the bypass list

📄 License

[Add your license here]


Made with ❤️ for those who value browser choice

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edger-0.1.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edger-0.1.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file edger-0.1.2.tar.gz.

File metadata

  • Download URL: edger-0.1.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.10.0 requests/2.32.3 setuptools/75.8.2 requests-toolbelt/1.0.0 tqdm/4.66.5 CPython/3.12.7

File hashes

Hashes for edger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 89047763e777a0ff20efb69c181df55304d4397d35b59397d6e12d0de0cbf353
MD5 7c0f408e43ed7ce7eb398b51f9400b4a
BLAKE2b-256 fff25ca3b124ccf16f611bb1a35564234092476ba3b896d6a10db380998b66d7

See more details on using hashes here.

File details

Details for the file edger-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: edger-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.10.0 requests/2.32.3 setuptools/75.8.2 requests-toolbelt/1.0.0 tqdm/4.66.5 CPython/3.12.7

File hashes

Hashes for edger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eeb0b3eba75f9c64164e637ad1f4e0c9bdc898d15f22bfba8ceb304842d7d2ac
MD5 7e4cadcef776f64521028fed45f95a42
BLAKE2b-256 c24a44f325bbf1ba796e5d1b111d87c3b68dce8ba4627dd4f5962bf31d5433b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page