Skip to content

abhimehro/opera-like-tools-edge-canary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Microsoft Edge Canary HazeOver Theme Sync

Automatically sync Microsoft Edge Canary's appearance with your HazeOver focus modes throughout the day

🎨 What This Extension Does

This extension automatically adapts Microsoft Edge Canary's visual theme to match your HazeOver focus schedule:

  • Day Mode (7:00 AM - 5:30 PM): Bright, productive interface
  • Evening Work (5:30 PM - 7:00 PM): Warm, focused orange tones
  • Night Mode (7:00 PM - 7:00 AM): Dark, comfortable purple theme

Opera Support

To build and package the Opera version of the extension, follow these steps:

  1. Build the Opera extension:

    npm run build:opera
  2. Package the Opera extension:

    npm run package:opera

This will generate a .zip file ready to be installed on Opera.

πŸ“¦ Installation Guide

Method 1: Load as Unpacked Extension (Recommended)

  1. Open Microsoft Edge Canary
  2. Navigate to Extensions:
    • Type edge://extensions/ in the address bar, or
    • Go to Settings > Extensions
  3. Enable Developer Mode: Toggle the switch in the bottom-left
  4. Load Extension:
    • Click "Load unpacked"
    • Select this entire folder: Microsoft_Edge_Canary_HazeOver_Extension
  5. Verify Installation: Look for the extension icon in your toolbar

Method 2: Create Simple Icons (Optional)

If you want custom icons, create these files in the icons/ folder:

  • icon-16.png (16x16px)
  • icon-32.png (32x32px)
  • icon-48.png (48x48px)
  • icon-128.png (128x128px)

πŸš€ How to Use

Automatic Operation

  • The extension works automatically once installed
  • Themes switch based on time of day
  • No manual intervention required

Manual Controls

  1. Click the extension icon in your toolbar
  2. Override themes manually:
    • πŸŒ… Day Mode
    • πŸŒ† Evening Mode
    • πŸŒ™ Night Mode
  3. Test current theme with the test button
  4. Clear overrides to resume automatic switching

Console Commands (Advanced)

Press F12 and use these commands in the console:

// Manual theme switching
edgeCanaryThemeControls.setDay()
edgeCanaryThemeControls.setEvening()
edgeCanaryThemeControls.setNight()

// Clear manual override
edgeCanaryThemeControls.clearOverride()

// Get current mode
edgeCanaryThemeControls.getCurrentMode()

🎯 Features

Core Functionality

  • βœ… Automatic time-based switching
  • βœ… Manual override system (1-hour duration)
  • βœ… Real-time theme application
  • βœ… Persistent settings across browser sessions
  • βœ… Console fallback for troubleshooting

Edge Canary Optimizations

  • βœ… Tab Strip theming
  • βœ… Address Bar focus effects
  • βœ… Sidebar integration
  • βœ… Collections & Favorites styling
  • βœ… Vertical Tabs support
  • βœ… Workspaces compatibility
  • βœ… Copilot Integration theming

Visual Enhancements

  • βœ… Smooth transitions between themes
  • βœ… Focus indicators with glowing effects
  • βœ… Accessibility support (reduced motion, high contrast)
  • βœ… Responsive design for different window sizes

πŸ›  Technical Details

File Structure

Microsoft_Edge_Canary_HazeOver_Extension/
β”œβ”€β”€ manifest.json                           # Extension configuration
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ background.js                       # Service worker
β”‚   β”œβ”€β”€ popup.html                          # Extension popup UI
β”‚   β”œβ”€β”€ popup.js                           # Popup functionality
β”‚   └── Edge_Canary_Auto_Theme_Switcher.js # Content script
β”œβ”€β”€ icons/                                  # Extension icons
β”œβ”€β”€ Edge_Canary_HazeOver_Enhanced.css      # Standalone CSS
└── README.md                              # This file

Theme Schedule

Time Range Mode Colors
07:00 - 17:30 Day Light blues, high contrast
17:30 - 19:00 Evening Warm oranges, focused
19:00 - 07:00 Night Dark purples, comfortable

Browser Support

  • βœ… Microsoft Edge Canary (Primary)
  • βœ… Microsoft Edge Dev (Compatible)
  • ⚠️ Microsoft Edge Stable (Limited support)

πŸ”§ Customization

Modify Theme Colors

Edit the CSS variables in Edge_Canary_Auto_Theme_Switcher.js:

const THEMES = {
  day: {
    colors: {
      bg: '#F8F9FA',      // Background
      accent: '#0078d4',   // Edge blue accent
      text: '#2C3E50'      // Text color
    }
  }
  // ... other themes
}

Adjust Time Schedule

Update the schedule in the same file:

const THEME_SCHEDULE = {
  day: { start: 7, end: 17.5 },      // 7:00 AM - 5:30 PM
  evening: { start: 17.5, end: 19 }, // 5:30 PM - 7:00 PM  
  night: { start: 19, end: 7 }       // 7:00 PM - 7:00 AM
};

πŸ› Troubleshooting

Extension Not Working?

  1. Check if enabled: Go to edge://extensions/
  2. Reload extension: Toggle off/on or click reload
  3. Check console: Press F12 and look for error messages
  4. Try manual mode: Use the popup controls

Themes Not Applying?

  1. Refresh affected tabs
  2. Use console commands: edgeCanaryThemeControls.testTheme('day')
  3. Check browser permissions: Extension needs tab access
  4. Clear overrides: Use the "Clear Override" button

Performance Issues?

  • The extension checks time every minute
  • Themes apply only when needed (no constant polling)
  • Disable if you experience any slowdown

πŸ”„ Comparison with Opera Extension

This Edge Canary extension is functionally equivalent to the Opera version with these improvements:

Similarities

  • βœ… Same time-based switching logic
  • βœ… Same color schemes and theme concepts
  • βœ… Manual override system
  • βœ… Console command interface

Edge Canary Enhancements

  • πŸ†• Microsoft Edge specific UI selectors
  • πŸ†• Collections & Favorites theming
  • πŸ†• Vertical Tabs support
  • πŸ†• Workspaces integration
  • πŸ†• Copilot interface styling
  • πŸ†• Edge blue accent colors for day mode

πŸ“ Changelog

Version 1.0.0

  • βœ… Initial release
  • βœ… Port from Opera extension
  • βœ… Edge Canary optimizations
  • βœ… Enhanced popup interface
  • βœ… Comprehensive CSS theming

🀝 Contributing

Feel free to customize this extension for your specific needs:

  1. Fork the extension folder
  2. Modify themes and schedules
  3. Test thoroughly in Edge Canary
  4. Share your improvements

πŸ“„ License

MIT License - Feel free to modify and distribute


🎨 Enjoy your automatically themed Microsoft Edge Canary experience!

This extension pairs perfectly with HazeOver to create a seamless, time-aware working environment.

About

Opera-like tools for Microsoft Edge Canary with HazeOver extension support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •