mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Improve trusted-click-element scriptlet
Related feedback: https://github.com/uBlockOrigin/uAssets/discussions/30340
This commit is contained in:
parent
04dbfa556b
commit
f9bb6d7f7e
1 changed files with 3 additions and 0 deletions
|
|
@ -2197,6 +2197,9 @@ function trustedClickElement(
|
|||
if ( typeof steps[i-1] !== 'string' ) { continue; }
|
||||
steps.splice(i, 0, clickDelay);
|
||||
}
|
||||
if ( steps.length === 1 && delay !== '' ) {
|
||||
steps.unshift(clickDelay);
|
||||
}
|
||||
if ( typeof steps.at(-1) !== 'number' ) {
|
||||
steps.push(10000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue