Description
Changes the behaviour of setTimeout and setInterval calls on a page. It can make timers fire sooner or much later than intended, or disable the callback entirely — useful for defusing ad-detection timers or forcing time-sensitive ad logic to behave differently.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
timerValue |
New timer delay in milliseconds. |
yes |
|
needle |
Only override calls whose parameters (callback source or delay) match this string or regex. |
no |
|
mode |
Which timer type to override: |
no |
|
callbackFunc |
Pass |
no |
|
stackNeedle |
Space-separated strings or regexes that must appear in the call stack for the override to apply. |
no |
Filter Examples
|
Filter |
Result |
|---|---|
|
|
Makes any |
|
|
Fires matching timers in 1 ms if their callback contains preventAdsFromClosing. |
|
|
Delays matching timers to effectively never fire. |
|
|
Replaces the callback with a no-op for matching timers. |