Auto click bonus points on Twitch.tv

Auto clicking "Click to claim a bonus" under the chat

// ==UserScript==
// @name         Auto click bonus points on Twitch.tv
// @namespace    https://greasyfork.org/users/124677
// @version      0.9.2
// @description  Auto clicking "Click to claim a bonus" under the chat
// @author       Pabli
// @match        https://www.twitch.tv/*
// @run-at       document-end
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAQVHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZppduM4EoT/4xRzBGyJ5ThY3+sbzPHnS5CyLZVc3eUeqyxaFAkkcomIBMus//61zX/4ibVYEyWXVFOy/MQaq2/8Uez1cx2djef9/Mj9FZ+fzpsw7i88pwLHcH1M676+cV4+b8jxPt+fz5t8D+TLPdD9xWPAoDN7/pi3kfdAwV/n3f3ZVH/90dKX5dy/pV4rCfc1r59jxhlTGC9441dwwZ53f10UsCLU0Hh3593rhSHwtz9nQii/+s98uO6NAx/ue/UfX7h7+R/uuAZ6LCu9+Ok+7+S9/46Xvlrk/H2J//zihLo7b7/+fPHf3rPsva7VtZgM7kr3oh5LPH9xYced4dyWeGV+hb/zeVVexTY7iNpkqd3YzofqPB7fLrrpmttuneNwAxOjXz5z9H7gaz1XQvbVjxOUqC+3fTbEZ4ZCPAaRC5z2H7a4M2/V+ZisMPN0XOkdgxHL55d5PfHT19NAe2vAnVNnjstX2OXV4ZihkdN3riIgbt8+leNfZ66Dff3RwAYiKMfNhQU2268hurjP3AonzsGK4dJor3pxed4D4CLmFowhu6OzyQVxydnsfXYOPxbi07Dch+g7EXBixE+s9DGERHCK17m5J7tzrRd/nQZeCISEFDKhoYAIVowSE/VWSKFmJEgUkSRZilRpKaSYJKWUk+JUyyHHLDnlnEuuuZVQYpGSSi6l1NKqrwEYE1NTzbXUWltj0hYbYzWub5zovoceu/TUcy+99jZInxGHjDTyKKOONv0MEwgwM808y6yzLbdIpRWXrLTyKquutsm1HXbcstPOu+y620fU7qg+R+01cr+Pmru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==/UserScript==

const button = '.claimable-bonus__icon';
var onMutate = function(mutationsList) {
	mutationsList.forEach(mutation => {
		if(document.querySelector(button)) document.querySelector(button).click();
	})
}
var observer = new MutationObserver(onMutate);
observer.observe(document.body, {childList: true, subtree: true});