Обновить script.js

This commit is contained in:
Tina Pavlenko 2025-11-16 15:29:40 +00:00
parent a193f4d6b0
commit 05fcb4c61b

View file

@ -18,7 +18,7 @@
}
await delay(150);
}
// fallback: глобальная кнопка по тексту
const global = Array.from(document.querySelectorAll('button, tp-yt-paper-button')).find(el=>(el.textContent||'').toLowerCase().includes('отказаться от подписки') || (el.textContent||'').toLowerCase().includes('отписаться'));
if(global){ try{ global.click(); return true; }catch(e){console.warn(e);} }
return false;