<commit_before>// not tested (account is needed)

keySocket.init(
    "tidal",
    {
        "play-pause": function () {
            var playButton = document.querySelector('button.play-controls__play');
            var pauseButton = document.querySelector('button.play-controls__pause');
            if (playButton.offsetParent !== null) {
                keySocket.simulateClick(playButton);
            } else {
                keySocket.simulateClick(pauseButton);
            }
        },
        "prev": "button.play-controls__previous",
        "next": "button.play-controls__next"
        // stop is omitted
    }
);<commit_msg>bugfix: Tidal: changes to accommodate ui changes<commit_after>// Tested on Brave Version 0.61.51 Chromium: 73.0.3683.75 (Official Build) (64-bit)

keySocket.init(
    "tidal",
    {
        "play-pause": function () {
            var playButton = document.querySelectorAll('[data-test=play]')[0];
            var pauseButton = document.querySelectorAll('[data-test=pause]')[0];
            if (playButton) {
                keySocket.simulateClick(playButton);             
            } else {
                keySocket.simulateClick(pauseButton);
            }
        },
        "prev": "[data-test=previous]",
        "next": "[data-test=next]"
        // stop is omitted
    }
);
{'fraction_non_alphanumeric': 0.13257575757575757, 'fraction_numerical': 0.013636363636363636, 'mean_word_length': 2.029816513761468, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4864621', 'n_tokens_mistral': 383, 'n_tokens_neox': 368, 'n_words': 68}