YouTube Background Playback - Kiwi Browser

Enable YouTube background playback in Kiwi.

< Valutazione su YouTube Background Playback - Kiwi Browser

Recensione: Bene - lo script funziona

§
Pubblicato: 14/09/2025

After below modify, this works great on other mobile browser like via browser and x browser.

On these browser which use android system webview, the userjs injection is too late, so youtube page already register the event listener. So I modify this:

window.addEventListener('visibilitychange', e => e.stopImmediatePropagation(), true);

To this:

window.addEventListener('visibilitychange', e => {
  e.stopImmediatePropagation();
  setTimeout(() => document.querySelector('video').play(), 2000);
}, true);

It restart play after 2 secs of visibilitychange.

This change is tricky, just for fun.

hacker09Autore
§
Pubblicato: 18/09/2025

Thanks!

Pubblica risposta

Accedi per pubblicare una risposta.