JavaScript Restrictor
Browser extension that improves privacy and security
Loading...
Searching...
No Matches
wrappingS-IDLE.js File Reference

Wrappers for Idle Detection API. More...

Variables

var disableapi = (args[0] === 1)
 
var confuse = (args[0] === 0)
 
var wrappers
 

Detailed Description

Wrappers for Idle Detection API.

See also
https://wicg.github.io/idle-detection/
Author
Copyright (C) 2022 Libor Polcak
License:
SPDX-License-Identifier: GPL-3.0-or-later
See also
https://web.dev/idle-detection/
https://developer.mozilla.org/en-US/docs/Web/API/IdleDetector

The Idle Detection API can detect inactive users and locked screens. JShelter either removes the API (IdleDetector), or disables permission requests and returns user activity and unlocked screen (for previously granted permissions), or just always report user activity and unlocked screen.

Bug:
JShelter does not block events, so the page is notified that something changed but it cannot read what changed.

Variable Documentation

◆ confuse

var confuse = (args[0] === 0)

◆ disableapi

var disableapi = (args[0] === 1)

◆ wrappers

var wrappers