This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- Configuration --- | |
| $StartHour = 9 # Business hours start (24h clock) | |
| $EndHour = 17 # Business hours end (24h clock) | |
| $WorkDays = @(1,2,3,4,5) # Mon-Fri (0=Sun, 6=Sat) | |
| $IdleThresholdSeconds = 240 # Only press keys after 4 min with no input (Teams goes Away at ~5 min) | |
| $ActiveCheckSeconds = 30 # Recheck cadence while you are active | |
| $IdleLoopSeconds = 60 # Press cadence while idle | |
| $AwayLoopSeconds = 300 # Recheck cadence outside business hours | |
| $ExtraHolidays = @() # Extra non-working dates, yyyy-MM-dd (e.g. company floating days) | |
| $TeamsCheckMinSeconds = 15 # Initial recheck cadence when Teams is not running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fetch first extension matching the name if any | |
| let sidebery_policy = WebExtensionPolicy.getActiveExtensions().filter((ext) => ext.name == "Sidebery")[0] | |
| let sidebery_browser; | |
| let init_sidebery_browser; | |
| if (sidebery_policy) { | |
| let sidebery_extension = sidebery_policy.extension; | |
| let sidebery_uri = sidebery_extension.manifest.sidebar_action.default_panel; |