timer-override

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: "timeout", "interval", or "both" (default).

no

callbackFunc

Pass "noop" to replace the callback with a no-operation function instead of just changing the delay.

no

stackNeedle

Space-separated strings or regexes that must appear in the call stack for the override to apply.

no

Filter Examples

Filter

Result

timer-override 1 5000

Makes any setTimeout/setInterval with a 5000 ms delay fire in 1 ms instead.

timer-override 1 preventAdsFromClosing

Fires matching timers in 1 ms if their callback contains preventAdsFromClosing.

timer-override 1000000 checkIfAdsAreHidden

Delays matching timers to effectively never fire.

timer-override 5000 checkIfAdsAreHidden noop

Replaces the callback with a no-op for matching timers.