Show all contributions decorrespondent.nl pages

Clicks buttons like 'Lees meer' on decorrespondent.nl, to see all comments in all threads.

// ==UserScript==
// @name        Show all contributions decorrespondent.nl pages
// @namespace   https://greasyfork.org/users/1047370
// @description Clicks buttons like 'Lees meer' on decorrespondent.nl, to see all comments in all threads.
// @include     https://decorrespondent.nl/*
// @match       https://decorrespondent.nl/*
// @version     0.1
// @author      Marnix Klooster <[email protected]>
// @copyright   public domain
// @license     public domain
// @homepage    https://greasyfork.org/scripts/551075
// @grant       none
// ==/UserScript==

(function() {
    var theInterval = null;
    var lastClickedButton = null;

    function start() {
        if (theInterval) {
            console.log(`SOMETHING WENT WRONG.  Ignoring this call to start().`);
            return;
        }

        theInterval = setInterval(function() {
            // click any 'Leer meer' etc. button in sight...
            for (const button of document.querySelectorAll(
                [
                    '.Comment__expandButton',
                    '.CommentsListExpand',
                ].join(','))) {
                console.log(`Clicking the button marked "${button.innerText}"...`);
                button.click();
            }
        }, 1000);
    }

    start();
})();