AdguardTeam / Scriptlets

AdGuard scriptlets library
GNU General Public License v3.0
138 stars 27 forks source link

Improve 'trusted-click-element' - add a parameter to increase the scriptlet execution duration #400

Open Alex-302 opened 6 months ago

Alex-302 commented 6 months ago

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).

AdamWr commented 6 months ago

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.