Automatically sync Microsoft Edge Canary's appearance with your HazeOver focus modes throughout the day
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
To build and package the Opera version of the extension, follow these steps:
-
Build the Opera extension:
npm run build:opera
-
Package the Opera extension:
npm run package:opera
This will generate a .zip
file ready to be installed on Opera.
- Open Microsoft Edge Canary
- Navigate to Extensions:
- Type
edge://extensions/
in the address bar, or - Go to
Settings
>Extensions
- Type
- Enable Developer Mode: Toggle the switch in the bottom-left
- Load Extension:
- Click "Load unpacked"
- Select this entire folder:
Microsoft_Edge_Canary_HazeOver_Extension
- Verify Installation: Look for the extension icon in your toolbar
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)
- The extension works automatically once installed
- Themes switch based on time of day
- No manual intervention required
- Click the extension icon in your toolbar
- Override themes manually:
- π Day Mode
- π Evening Mode
- π Night Mode
- Test current theme with the test button
- Clear overrides to resume automatic switching
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()
- β Automatic time-based switching
- β Manual override system (1-hour duration)
- β Real-time theme application
- β Persistent settings across browser sessions
- β Console fallback for troubleshooting
- β Tab Strip theming
- β Address Bar focus effects
- β Sidebar integration
- β Collections & Favorites styling
- β Vertical Tabs support
- β Workspaces compatibility
- β Copilot Integration theming
- β Smooth transitions between themes
- β Focus indicators with glowing effects
- β Accessibility support (reduced motion, high contrast)
- β Responsive design for different window sizes
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
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 |
- β Microsoft Edge Canary (Primary)
- β Microsoft Edge Dev (Compatible)
β οΈ Microsoft Edge Stable (Limited support)
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
}
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
};
- Check if enabled: Go to
edge://extensions/
- Reload extension: Toggle off/on or click reload
- Check console: Press F12 and look for error messages
- Try manual mode: Use the popup controls
- Refresh affected tabs
- Use console commands:
edgeCanaryThemeControls.testTheme('day')
- Check browser permissions: Extension needs tab access
- Clear overrides: Use the "Clear Override" button
- The extension checks time every minute
- Themes apply only when needed (no constant polling)
- Disable if you experience any slowdown
This Edge Canary extension is functionally equivalent to the Opera version with these improvements:
- β Same time-based switching logic
- β Same color schemes and theme concepts
- β Manual override system
- β Console command interface
- π Microsoft Edge specific UI selectors
- π Collections & Favorites theming
- π Vertical Tabs support
- π Workspaces integration
- π Copilot interface styling
- π Edge blue accent colors for day mode
- β Initial release
- β Port from Opera extension
- β Edge Canary optimizations
- β Enhanced popup interface
- β Comprehensive CSS theming
Feel free to customize this extension for your specific needs:
- Fork the extension folder
- Modify themes and schedules
- Test thoroughly in Edge Canary
- Share your improvements
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.