From f2cb865ae5c443a9eb086805e270a1859f65ca72 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 11 Aug 2023 02:54:29 +0400 Subject: [PATCH] Upload script itself. --- Auto-claimer for VK Play Live.user.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Auto-claimer for VK Play Live.user.js diff --git a/Auto-claimer for VK Play Live.user.js b/Auto-claimer for VK Play Live.user.js new file mode 100644 index 0000000..6eccac5 --- /dev/null +++ b/Auto-claimer for VK Play Live.user.js @@ -0,0 +1,22 @@ +// ==UserScript== +// @name Auto-claimer for VK Play Live +// @namespace arav.su +// @match *://vkplay.live/* +// @grant none +// @version 0.1 +// @author Alexander "Arav" Andreev +// @homepageURL https://git.arav.su/Arav/auto-claimer-vkpl +// @downloadURL https://git.arav.su/Arav/auto-claimer-vkpl/src/branch/master/Auto-claimer%20for%20VK%20Play%20Live.user.js +// @description A script to claim +50 bonuses on VK Play Live +// ==/UserScript== + +const defaultOptions = {subtree: true, childList: true}; + +(new MutationObserver(() => { + const b = document.querySelector("button[class^=PointActions_buttonBonus]"); + if(b != null) { + b.click(); + console.log("Claimed!"); + } +})).observe(document.querySelector("div[class^=StreamChatFooter_root]"), defaultOptions); +