Greasy Fork is available in English.

YouTube - Stay Active and Play Forever

Tired of Youtube pausing playback asking you to click 'yes' to continue playing? This script will make the popup never appear, music will never stop. Never pause, never inactive, never worry. The script will keep you active and keep playing music FOREVER. Enables playing in background on mobile.

Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn

  • v3.1.1 2023/09/23
  • v3.1.0 2022/02/18

    made the code even shorter

  • v3.0.0 2022/02/17

    no longer resumes playback when paused (this interfered with system/browser controls), now it's a stay active approach. Script name changed to reflect that. Also bow enables background play on mobile.

  • v2.1.1 2022/02/04
  • v2.1.0 2022/02/04
  • v2.1.0 2022/02/04

    cleaned up code a bit, added mobile browser support

  • v2.0.0 2022/02/03
  • v2.0.0 2022/02/03

    no longer checks every second for the playing state, instantly starts playing when it gets paused, on/off button removed (i might return it at some point)

  • v1.6.3 2021/05/06
  • v1.6.2 2021/03/17

    prevent toggle when typing

  • v1.6.1 2021/03/17
  • v1.6.0 2021/03/06
  • v1.6.0 2021/03/06 renamed to indicate global youtube.com support, not just music.youtube.com
  • v1.6.0 2021/03/06 support for the main www.youtube.com domain
  • v1.5.1 2020/02/04
  • v1.5 2020/02/04 Added user pause check, so the script doesn't auto-continue playback (until checker is restarted or playback is unpaused)
  • v1.4.2 2020/01/19 updated button title to show the hotkey
  • v1.4.1 2019/10/10
  • v1.4 2019/10/07 1.3-1.4, fixed some firefox related bugs. Did some code optimizations. Added 'autostart' variable, set to true to have checker ON by default (beware of autoplay policy)
  • v1.3 2019/10/05
  • v1.2 2019/10/05
  • v1.2 2019/10/05
  • v1.1 2019/09/22
  • v1.1 2019/09/22
  • v1.1 2019/09/22 added a button complementary to the hotkey 'X'
  • v1.0 2019/09/22
  • v0.1 2019/09/21