2023-08-11 02:54:29 +04:00
|
|
|
// ==UserScript==
|
|
|
|
// @name Auto-claimer for VK Play Live
|
|
|
|
// @namespace arav.su
|
|
|
|
// @match *://vkplay.live/*
|
|
|
|
// @grant none
|
|
|
|
// @version 0.1
|
|
|
|
// @author Alexander "Arav" Andreev <me@arav.su>
|
|
|
|
// @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
|
2023-08-11 02:58:23 +04:00
|
|
|
// @updateURL https://git.arav.su/Arav/auto-claimer-vkpl/src/branch/master/Auto-claimer%20for%20VK%20Play%20Live.user.js
|
2023-08-11 02:54:29 +04:00
|
|
|
// @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);
|
|
|
|
|