2024-10-01, 04:29 AM
The detection is based on keyboard and mouse events. The script does not detect if someone is in front of the screen.
It activates as soon as Jellyfin is not on its home page.
The delay I chose for the script is 3 hours.
It can be easily modified via the variable ''var nbminute = 180; // Inactive delay in minutes'' at the beginning of the script.
The events are intercepted through this line of code: ''if (/^on(key|mouse)/.test(key)) {'', you can customize it to choose your events.
The detection of the home page or the Dashboard is done by this line of code: ''if('/home.html' != page && page.includes('/dashboard') === false){''
You can add or remove pages to define on which pages the script should trigger.
Just a heads-up for the home page.
When the script is executed, if no action is performed, the script redirects to the home page.
If it is removed from the excluded pages test, the script will loop, and this is not desired in my opinion.
A small note, I’ve only been using Jellyfin for a short time, so I haven't been able to confirm its functionality on all configurations.
It might not be executed on certain client apps.
I hope I have answered your question.
JoBar.
It activates as soon as Jellyfin is not on its home page.
The delay I chose for the script is 3 hours.
It can be easily modified via the variable ''var nbminute = 180; // Inactive delay in minutes'' at the beginning of the script.
The events are intercepted through this line of code: ''if (/^on(key|mouse)/.test(key)) {'', you can customize it to choose your events.
The detection of the home page or the Dashboard is done by this line of code: ''if('/home.html' != page && page.includes('/dashboard') === false){''
You can add or remove pages to define on which pages the script should trigger.
Just a heads-up for the home page.
When the script is executed, if no action is performed, the script redirects to the home page.
If it is removed from the excluded pages test, the script will loop, and this is not desired in my opinion.
A small note, I’ve only been using Jellyfin for a short time, so I haven't been able to confirm its functionality on all configurations.
It might not be executed on certain client apps.
I hope I have answered your question.
JoBar.