Auto-Click YouTube Comment "Read more" Buttons

Automatically clicks "Read more" buttons

// ==UserScript==
// @name         Auto-Click YouTube Comment "Read more" Buttons
// @version      1.0
// @description  Automatically clicks "Read more" buttons
// @icon         https://i.imgur.com/oUCcSbW.png
// @author       Misspent & OpenAI
// @namespace    https://chatbot.theb.ai
// @match        *.youtube.com/*
// @license      MIT
// @grant        none
// ==/UserScript==



(function() {
    'use strict';

    function clickCommentButtons() {
        let buttons = document.querySelectorAll('#more .more-button'); // Or just "#more"
        for (let i = 0; i < buttons.length; i++) {
            if (!buttons[i].classList.contains('clicked')) {
                buttons[i].click();
                buttons[i].classList.add('clicked');
                console.log('%cSuccessfully clicked "Read More" button.', 'background-color: black; color: green; font-weight: bold;');
            }
        }
    }

    setInterval(clickCommentButtons, 1000);
})();