it's a hidden feature of youtube;
webbrain already takes care of it but it's gotta be in dev mode
so the suggestion action button should take care of it too, switch to dev mode (aka enable js)
and perhaps write an adapter for weaker models to run this:
{
"code": "return (()=>{ const v=document.querySelector('video'); if(!v) return {found:false};\n // ensure loop stays on even if YouTube resets it\n if(!window._ytLoopInterval){\n window._ytLoopInterval = setInterval(()=>{ if(!v.loop) v.loop=true; }, 1000);\n // also handle ended via YouTube player API if available\n v.addEventListener('ended', ()=>{ v.currentTime=0; v.play().catch(()=>{}); });\n // try YouTube player API loop\n try{\n const player = document.querySelector('#movie_player');\n if(player && typeof player.setLoop === 'function') player.setLoop(true);\n }catch(e){}\n }\n return {found:true, loop:v.loop, intervalSet: !!window._ytLoopInterval, paused:v.paused, duration:v.duration};\n})();"
}
Result
{"success":true}
it's a hidden feature of youtube;
webbrain already takes care of it but it's gotta be in dev mode
so the suggestion action button should take care of it too, switch to dev mode (aka enable js)
and perhaps write an adapter for weaker models to run this:
Result
{"success":true}