Scriptlets
Scriptlets copied to clipboard
Improve 'trusted-click-element' — add a parameter to increase the scriptlet execution duration
Problem
In some cases, the click needs to be performed after some user actions. 10 seconds isn't enough.
Proposed solution
Add a parameter to increase the scriptlet execution duration by increasing the default duration by the value of the new parameter value (10s + value).
Limit it by 30 s (total 40s).
In this case - https://github.com/AdguardTeam/AdguardFilters/issues/170168 we might need even longer maximum delay, because this privacy consent may be displayed later than 40 seconds.