diff --git a/script.js b/script.js index 9302289..d6965c9 100644 --- a/script.js +++ b/script.js @@ -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;