YouTube auto claim channel points from Truffle.TV

YouTube auto claim channel points from Truffle.TV (formerly known as Mogul.TV)

// ==UserScript==
// @name         YouTube auto claim channel points from Truffle.TV
// @namespace    https://greasyfork.org/users/124677-pabli
// @version      0.1
// @description  YouTube auto claim channel points from Truffle.TV (formerly known as Mogul.TV)
// @author       Pabli
// @license      MIT
// @match        https://www.youtube.com/watch*
// @match        *.spore.build/*
// @match        https://ludwig.social/*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAFeklEQVRIiXVWS4wVRRQ9t7r6896bAeaNEDDgYCQQxIgQP8wEEhOCmLgAP4SNgIJbE11AXKG4EljoxrhQwkcXGgyCiYoSEpwgEUcjGgYECWFCEDIwP4bpea+ruq+L6urPA2qSedVVt+7/nnup+7ckYAQxggR+zL6GH8OP4Wl4ml0NV8NVkJpdBanhKnYUZARHsxNBKHYUhIKjmCIIBaGY7H/EEESwiwHkXwQufaV3nJKyoU4pmM1F/sBuBdg+AgFgsowYZC8ygWAmTr+IAc6UILNh+4QtjcB9FqFkgX1JJfUyk4jpbgImBkRuKQOgghqcW0CccWQC2PzkIij9a9GRCSYGDFDJxa2kmaDCvmRsQS1rffohzQEnMGErv2MAzHBcWfXhxXAjSAU3goigJjhRypBxrgEZRsJKkrnOREUZxkHCEW1Vatyc7Dtz/MqFX8LxIZGgvdK5cHb3krkrp9dq4W3NiG0kUl+kDgIDkMY3VNaeASRwfccDeo/sPXFk5+iNC0WCHwn1Bxa83L117RNbkthRUdM+y7NIMAignr7EjxEkptbYM1Wm0CaFq5JDOzf39+6H48mgncoa6OgOVLPn8Y3vrN7jKKnChlBwFEgxKZBioUEKIvUKMYjZBlo4wnFxaPfr/b37ZbXuGu5EOgp1FIKIANdrk7X6qb8P7Pphs+vAEY4RnNWJ2dk6YAIoc1RlCvqO7Ok/cUBW62RrXavJWTMXzpq5UKvJLKSyWj959vPDf33WHrhZbuRZRBB5SnKaaY4r7gw3T3+5C8LLu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7Tt9nWcwrnQGE/wGrQeWRANGdogAAAABJRU5ErkJggg==
// @grant        none
// ==/UserScript==

const button = '.claim.is-visible';
function click() {
  if (document.querySelector(button)) document.querySelector(button).click();
  setTimeout(click, Math.random() * 5000);
}
click()