Commit graph

13 commits

Author SHA1 Message Date
mr. m 🤙
f077232fd4
Revert "Added ram check" 2024-11-02 20:36:59 +01:00
rakzoser
34507e469c Added ram check 2024-10-31 23:17:37 +02:00
mr. M
b8d9d79ccc
Refactor ZenGlanceManager.mjs to destroy current browser when closing glance 2024-10-31 14:26:21 +01:00
mauro-balades
d2296c0523
Refactor keyboard shortcuts and tab unloader logic 2024-10-10 19:01:13 +02:00
mauro-balades
83b672d981
Added pictureinpicture as a prevention from tab unloading 2024-10-04 18:38:11 +02:00
mauro-balades
76d22a1f15
Made the code look cleaner 2024-10-04 18:21:39 +02:00
mauro-balades
7147fd2dfc Refactor ZenTabUnloader to optimize tab unloading and add context menu options 2024-09-27 20:34:37 +02:00
mauro-balades
3681f71acf Refactor ZenTabUnloader to exclude tabs with sound playing or marked for ignore 2024-09-27 20:09:06 +02:00
mauro-balades
9ae3de71e7 Refactor ZenTabUnloader to remove unused code and optimize tab unloading timeout 2024-09-27 18:12:49 +02:00
mauro-balades
1fa61f4349 Refactor ZenTabUnloader to simplify tab unloading condition 2024-09-26 18:58:59 +02:00
mauro-balades
9cce473af8 Refactor ZenTabUnloader to remove debug logging and optimize tab unloading 2024-09-26 18:50:28 +02:00
mauro-balades
5b2e0030ed Refactor ZenTabUnloader to remove unused code and optimize tab handling 2024-09-26 18:47:35 +02:00
mauro-balades
a615de5b6f Refactor ZenTabUnloader to add support for unloading inactive tabs
This commit refactors the ZenTabUnloader class to add support for unloading inactive tabs. It introduces a new class called ZenTabsIntervalUnloader, which periodically checks for inactive tabs and discards them if they meet certain criteria. The criteria include being inactive for a specified timeout period and not meeting any exclusion URLs.

The commit also adds a new class called ZenTabsObserver, which listens to various tab events and notifies the ZenTabUnloader when a tab's activity changes.

These changes improve the efficiency of tab management and help reduce resource usage by unloading tabs that are not actively being used.
2024-09-26 18:44:22 +02:00